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/09/30 14:38] – old revision restored (2021/03/14 12:22) joseinformatica:iot:home_assistant [2023/10/02 22:21] (current) – [Sensor humedad (Mi Flora)] jose
Line 2: Line 2:
  
 ====== Instalación ====== ====== Instalación ======
 +===== Docker Supervised =====
 +https://www.home-assistant.io/installation/linux#install-home-assistant-supervised
 +
 +No está soportada para Raspian, solo para Debian
 +
 +
 ===== Docker ===== ===== Docker =====
 +Mapeaomos con /dev/ttyACM0 el dispositivo Zigbee USB, en nuestro caso el "Conbee II"
 +  docker run -d --device /dev/ttyACM0:/dev/ttyACM0  --name homeassistant   --privileged   --restart=unless-stopped   -e TZ="Europe/Madrid"   -v /home/ruth/homeassistant:/config   --network=host   ghcr.io/home-assistant/home-assistant:stable
 +
 +Vamos a "Devices & Services"
 +{{:informatica:iot:home_assistant_01.png|}}
 +
 +Y seleccionamos ConBee II para configurarlo
 +
 +{{:informatica:iot:home_assistant_01.png|}}
 +
 +Seleccionamos "Keep radio Settings"
 +{{:informatica:iot:home_assistant_03.png|}}
 +
 +Aparece Success
 +{{:informatica:iot:home_assistant_04.png|}}
 +
 +Y ya nos aparece en "Configured" para poder usarla
 +{{:informatica:iot:home_assistant_05.png|}}
 +
 +===== Docker Antiguo=====
 Fuente: https://github.com/home-assistant/supervised-installer Fuente: https://github.com/home-assistant/supervised-installer
  
Line 9: Line 35:
  
 ==== Habilitar wifi ==== ==== Habilitar wifi ====
-En la pertición boot creamos el fichero wpa_supplicant.conf con los datos de nuestro wifi +  rootfs/etc/wpa_supplicant/wpa_supplicant.conf
-  Partición boot +
- +
-  wpa_supplicant.conf+
 <code> <code>
 country=ES country=ES
Line 96: Line 119:
 {{:informatica:iot:home_07.png|}} {{:informatica:iot:home_07.png|}}
  
-===== Configuración de Wifi e IP fija =====+==== Configuración de Wifi e IP fija ====
 Vamos a Supervisor > System > Host Vamos a Supervisor > System > Host
  
Line 231: Line 254:
  
  
-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
  
 {{:informatica:iot:home_26.png|}} {{:informatica:iot:home_26.png|}}
Line 281: Line 304:
  
 </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.1696084713.txt.gz · Last modified: 2023/09/30 14:38 by jose