home assistant - deptno/deptno.github.io GitHub Wiki
home-assistant
μ€μΉ κΈ°λ‘
- kubernetes resource μμ±
- pv
- pvc
- dp
- svc
- ingressroute
- configuration.yaml μ€μ
- http - reverse proxy
- homeassistant - external_url(webhook url νμλλ¬Έ)
- μ€μ -> κΈ°κΈ°μ€μ -> κΈ°κΈ°μΆκ°(smartthings) -> μΈλΆλ§ν¬: ν ν° λ°κΈ
- μ€μ -> κΈ°κΈ°μ€μ -> smartthings -> μΉν url νμΈ -> λ°κΈλ°μ ν ν° μ λ ₯
- google-assistant μ°κ²°
- μ΅μ’
μ μΌλ‘ μ¬μμ κΉμ§ νμ
google home
μ±μμ κΈ°κΈ°μ°κ²°μ ν΅ν΄ ha μ μ°λ - μ€λ§νΈ μ±μ€λ ha λ°μ λΆμ΄μμΌλ―λ‘
google home
μ μ°λλ κ²½μ° ν΄μ ν΄μ€λ€. - μμ±μΈμ ν μ€νΈ
- μ΅μ’
μ μΌλ‘ μ¬μμ κΉμ§ νμ
- homekit bridge μ°κ²°
- ν΄λ³΄λκ° λ§μ§λ§μ iOS μμ μ°κ²°ν λ μλ¬
- μ€μ μ ν¬νΈκ° μλκ±° 보λ ν¬νΈ λ ΈμΆμ΄ μλμ κ·Έλ°κ²μΌλ‘ 보μ΄λλ° svc μμ± ν μ€νΈ νμ
- ν΄λ³΄λκ° λ§μ§λ§μ iOS μμ μ°κ²°ν λ μλ¬
configuration
reverse proxy
μΈλΆ μ κ·Ό νμ©μ μν΄μλ 리λ²μ€ νλ‘μ μ€μ μ΄ νμνλ€.
- (MainThread) [homeassistant.components.http.forwarded] A request from a reverse proxy was received from 10.244.182.150, but your HTTP integration is not set-up for reverse proxies
configuration.yaml
νμΌμ μμ νλ€
http:
use_x_forwarded_for: true
trusted_proxies:
- 10.244.182.0/24
ip_ban_enabled: true
login_attempts_threshold: 5
- https://community.home-assistant.io/t/a-request-from-a-reverse-proxy-was-received-from/314089/4
- https://11q.kr/www/bbs/board.php?bo_table=co3&wr_id=670 νμ€νμ€ νμΈμ νμ§ μμ νμ€νλ μ μ μμ§λ§ pod λ‘κ·Έμ 보면 μ°νλ μμ² ip λ₯Ό trusted_proxies μ μΆκ°νλ©΄ λλ€. μμ λμ€ μ΅μ μ΄ κ΄λ ¨ μ€μ μΌ κ²μΌλ‘ 보μ μ€μ νμλ UI μμ μ¬μμμ ν΄μ€λ€.
external_url
λ²κ·ΈμΈμ§ diary/2023-07-11 νμ§ κΈ°μ€μΌλ‘ μ€μ -> μμ€ν
-> λ€νΈμν¬ μ€μ μΌλ‘ μ΄λνλ©΄ νλ©΄μ μ무κ²λ λ
ΈμΆλμ§ μμλ€.
λ λ€μ ssh λ‘ μ μν΄μ configuration.yaml
μ μ΄κ³ μλ λ΄μ©μ μΆκ°νλ€
homeassistant:
external_url: "https://www.example.com"`
error
403 forbidden
λ‘κ·ΈμΈνλ©΄μμ²΄κ° μλ¨κ³ 403 text κ° λ¨λ κ²½μ°
2023-10-01 11:55:51.173 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/
v1/devices:requestSync failed: 500
2023-10-01 11:56:45.968 ERROR (MainThread) [homeassistant.components.google_assistant.http] Request for https://homegraph.googleapis.com/
v1/devices:reportStateAndNotification failed: 404
- https://developers.google.com/assistant/ca-sunset?hl=ko
- λ§μΉ¨ μλ¬κ° μμ΄μ νΌλμ΄ μμμ§λ§ μ΄κ±΄ μλ κ²μΌλ‘ 보μ
192.168.0.xxx:
banned_at: '2023-09-30T04:33:49.311517+00:00'
ip_bans.yaml
ν΄λΉ λ΄μ©μ μμ νλμ§ ν΄λΉ νμΌμ μμ νλ©΄ λλ€.
- @todo ha κ° μ»¨ν μ΄λλ‘ λ μλ νΈμ€νΈμ ipκ° λ°΄μ΄λμ λ΄λΆμ κ·Όμ΄ λͺ¨λ λ°΄ λ κ²μΌλ‘ 보μΈλ€
Username already exists
μμ λ μ μ λ₯Ό μ¬ μμ±νλ €κ³ νλ €κ³ νλ©΄ μλ¬κ° λλ€
- pv λ‘ μ κ·Όν΄μ λ°μ΄ν°λ₯Ό λͺ¨λ μμ νλ€
cat person # user_id νμΈ
rm frontend.user_data_[user_id] # user μ κ±°
vi auth_provider.homeassistant # ν΄λΉ user μ 보 μ κ±°
grep -r [user_id] . # 리μ€ν
λ νμΌμμ ν΄λΉ μ λ³΄κ° ν¬ν¨λ λ°μ΄ν° μ κ±°
- μ¬λΆν (컨ν μ΄λ μ¬μ€ν) ν μμ±νλ€