User Tools

Site Tools


informatica:iot:home_assistant

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
informatica:iot:home_assistant [2023/10/01 11:02] joseinformatica:iot:home_assistant [2024/08/16 23:02] (current) jose
Line 134: 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:
 +<code>
 +    server {
 +        server_name  ha.lobo99.info;
 +        client_max_body_size 20M;
 +        proxy_buffering off;
 +
 +    location / {
 +        proxy_pass http://192.168.1.15:8123;
 +        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 "upgrade";
 +    }
 +
 +    # Opcional: redirecciona HTTP a HTTPS si tienes SSL configurado
 +    if ($scheme != "https") {
 +        return 301 https://$host$request_uri;
 +    }
 +}
 +</code>
 +
 +En home assistant instalamos el add-on "file editor" y modificamos el fichero /homeassistant/configuration.yaml y añadimos
 +<code>
 +http:
 +  use_x_forwarded_for: true
 +  trusted_proxies:
 +    - 192.168.1.200  # IP de tu servidor Nginx
 +</code>
 +
  
 ====== MQTT ====== ====== MQTT ======
Line 304: Line 341:
  
 </code> </code>
-Son sensores blietooth no Zigbee+Son sensores bluetooth no Zigbee
  
-Para sabes la MAC lanzamos el comando bluetoothctl:+Para sabes la MAC lanzamos el comando para scanear: 
 +  bluetoothctl scan on
 <code> <code>
 $ bluetoothctl  $ bluetoothctl 
-Agent registered +Discovery started 
-[DEL] Device 56:60:BB:D0:56:D1 Comedor +[CHG] Device 56:60:BB:D0:56:D1 Comedor 
-[DEL] Device C4:7C:8D:6C:13:75 Flower care +[NEW] Device C4:7C:8D:6C:13:75 Flower care 
-[DEL] Device B8:78:2E:1E:90:2A B8-78-2E-1E-90-2A +[NEW] Device B8:78:2E:1E:90:2A B8-78-2E-1E-90-2A
-[bluetooth]# +
 </code> </code>
  
informatica/iot/home_assistant.1696158126.txt.gz · Last modified: 2023/10/01 11:02 by jose