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 [2021/03/13 16:07] – jose | informatica:iot:home_assistant [2024/08/16 23:02] (current) – jose | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | https:// | ||
+ | |||
====== Instalación ====== | ====== Instalación ====== | ||
+ | ===== Docker Supervised ===== | ||
+ | https:// | ||
+ | |||
+ | No está soportada para Raspian, solo para Debian | ||
+ | |||
+ | |||
===== Docker ===== | ===== Docker ===== | ||
+ | Mapeaomos con / | ||
+ | docker run -d --device / | ||
+ | |||
+ | Vamos a " | ||
+ | {{: | ||
+ | |||
+ | Y seleccionamos ConBee II para configurarlo | ||
+ | |||
+ | {{: | ||
+ | |||
+ | Seleccionamos "Keep radio Settings" | ||
+ | {{: | ||
+ | |||
+ | Aparece Success | ||
+ | {{: | ||
+ | |||
+ | Y ya nos aparece en " | ||
+ | {{: | ||
+ | |||
+ | ===== Docker Antiguo===== | ||
Fuente: https:// | Fuente: https:// | ||
Line 7: | Line 35: | ||
==== Habilitar wifi ==== | ==== Habilitar wifi ==== | ||
- | En la pertición boot creamos el fichero | + | rootfs/etc/wpa_supplicant/wpa_supplicant.conf |
- | Partición boot | + | |
- | + | ||
- | | + | |
< | < | ||
country=ES | country=ES | ||
Line 93: | Line 118: | ||
{{: | {{: | ||
+ | |||
+ | ==== Configuración de Wifi e IP fija ==== | ||
+ | Vamos a Supervisor > System > Host | ||
+ | |||
Para poder editar ficheros de configuración, | Para poder editar ficheros de configuración, | ||
Line 105: | 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 ====== | ||
+ | |||
====== Spotify ====== | ====== Spotify ====== | ||
Line 222: | 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 267: | Line 336: | ||
3 - C4: | 3 - C4: | ||
4 - C4: | 4 - C4: | ||
+ | 5 - C4: | ||
+ | 6 - C4: | ||
+ | |||
+ | |||
</ | </ | ||
- | Vamos a deCONZ > Phoscon > Sensors > Add New Sensors > Other | + | Son sensores bluetooth no Zigbee |
- | + | ||
- | Ponemos el sensor muy cerca del Gateway para buscarlo | + | |
- | + | ||
- | {{: | + | |
- | + | ||
- | Cuando lo encuentre, nos pondrá Sensor Ready | + | |
- | + | ||
- | {{: | + | |
- | 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]# | + | |
</ | </ | ||
Line 292: | Line 357: | ||
Añadimos lo siguiente en configuration.yml: | Añadimos lo siguiente en configuration.yml: | ||
< | < | ||
- | sensor: | + | sensor: |
- | - platform: miflora | + | - platform: miflora |
- | mac: " | + | mac: " |
- | name: Flower 2 | + | name: Flower 2 |
- | force_update: | + | force_update: |
- | # median: 3 | + | # median: 3 |
- | monitored_conditions: | + | monitored_conditions: |
- | - moisture | + | - moisture |
- | - light | + | - light |
- | - temperature | + | - temperature |
- | - conductivity | + | - conductivity |
- | - battery | + | - battery |
scan_interval: | scan_interval: | ||
</ | </ |
informatica/iot/home_assistant.1615651620.txt.gz · Last modified: 2021/03/13 16:07 by jose