informatica:iot:home_assistant
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:iot:home_assistant [2023/10/01 08:48] – jose | informatica:iot:home_assistant [2024/08/16 23:02] (current) – jose | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ====== Instalación ====== | ====== Instalación ====== | ||
| + | ===== Docker Supervised ===== | ||
| + | https:// | ||
| + | |||
| + | No está soportada para Raspian, solo para Debian | ||
| + | |||
| + | |||
| ===== Docker ===== | ===== Docker ===== | ||
| Mapeaomos con / | Mapeaomos con / | ||
| Line 128: | Line 134: | ||
| Para poder subir ficheros, instalamos el addon de samba | Para poder subir ficheros, instalamos el addon de samba | ||
| + | |||
| + | ===== Raspberry ===== | ||
| + | Descargamos la ISO | ||
| + | |||
| + | Para configurar nginx: | ||
| + | < | ||
| + | server { | ||
| + | server_name | ||
| + | client_max_body_size 20M; | ||
| + | proxy_buffering off; | ||
| + | |||
| + | location / { | ||
| + | proxy_pass http:// | ||
| + | proxy_set_header Host $host; | ||
| + | proxy_set_header X-Real-IP $remote_addr; | ||
| + | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
| + | proxy_set_header X-Forwarded-Proto $scheme; | ||
| + | proxy_buffering off; | ||
| + | proxy_set_header Upgrade $http_upgrade; | ||
| + | proxy_set_header Connection " | ||
| + | } | ||
| + | |||
| + | # Opcional: redirecciona HTTP a HTTPS si tienes SSL configurado | ||
| + | if ($scheme != " | ||
| + | return 301 https:// | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | En home assistant instalamos el add-on "file editor" | ||
| + | < | ||
| + | http: | ||
| + | use_x_forwarded_for: | ||
| + | trusted_proxies: | ||
| + | - 192.168.1.200 | ||
| + | </ | ||
| + | |||
| ====== MQTT ====== | ====== MQTT ====== | ||
| Line 248: | Line 291: | ||
| - | Seleccionamos Other. Abrimos el cubo y apretamos el botón de link hasta que se apague la luz azul. Después de unos 10 segundos, se ha emparejado y nos aparece esto en la pantalla. Pulsamos Ready | + | Seleccionamos Other. Abrimos el cubo y apretamos el botón de link hasta que se apague la luz azul, primero parpadea pero se apaga en seguida. Después de unos 10 segundos, se ha emparejado y nos aparece esto en la pantalla. Pulsamos Ready |
| {{: | {{: | ||
| Line 298: | Line 341: | ||
| </ | </ | ||
| - | Son sensores | + | Son sensores |
| - | Para sabes la MAC lanzamos el comando | + | Para sabes la MAC lanzamos el comando |
| + | bluetoothctl scan on | ||
| < | < | ||
| $ bluetoothctl | $ bluetoothctl | ||
| - | Agent registered | + | Discovery started |
| - | [DEL] Device 56: | + | [CHG] Device 56: |
| - | [DEL] Device C4: | + | [NEW] Device C4: |
| - | [DEL] Device B8: | + | [NEW] Device B8: |
| - | [bluetooth]# | + | |
| </ | </ | ||
informatica/iot/home_assistant.1696150122.txt.gz · Last modified: by jose
