Meu home assistant parou de funcionar de novo

ola a todos, realmente preciso de ajuda com o HA.

eu tinha instalado aqui a versão anterior do HA.
houve uma queda de energia na alimentação da raspiberry pi 3B+ e o sistema não deu boot mais.
Geralmente, este tipo de coisa corrompe o cartão sd.
Eu tinha 3 lâmpadas e 1 câmera. um sistema bem simples apenas para testes.

Então resolvi instalar a ultima versão do ha para ficar atualizado. lembrando que tinha guardao em outro local os arquivos de configuração.

a instalação do HA acontece normalmente, mas as alãmpadas não aparecem na visão geral do HA.

olhando o log do mqtt, da para perceber que as lâmpadas estão se conectando ao broker, mas pararece que o HA não se conecta ao broker.

Acredito que o problema possa ser incompatibilidade do meu arquivo de configuration.yaml, que funcionava na versão antiga, mas não na atual.

alguém pode me ajudar a descobrir este mistério?

o log do sistema é este

19-07-19 03:12:22 INFO (MainThread) [main] Initialize Hass.io setup
19-07-19 03:12:23 INFO (MainThread) [main] Setup HassIO
19-07-19 03:12:23 INFO (SyncWorker_0) [hassio.docker.supervisor] Attach to Supervisor homeassistant/armv7-hassio-supervisor with version 169
19-07-19 03:12:23 INFO (SyncWorker_0) [hassio.docker.supervisor] Connect Supervisor to Hass.io Network
19-07-19 03:12:24 INFO (SyncWorker_0) [hassio.docker.interface] Cleanup images: [‘homeassistant/armv7-hassio-supervisor:163’]
19-07-19 03:12:25 INFO (MainThread) [hassio.utils.gdbus] Introspect org.freedesktop.systemd1 on /org/freedesktop/systemd1
19-07-19 03:12:25 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.systemd1 - /org/freedesktop/systemd1
19-07-19 03:12:25 INFO (MainThread) [hassio.utils.gdbus] Introspect org.freedesktop.hostname1 on /org/freedesktop/hostname1
19-07-19 03:12:26 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.hostname1 - /org/freedesktop/hostname1
19-07-19 03:12:26 INFO (MainThread) [hassio.utils.gdbus] Introspect de.pengutronix.rauc on /
19-07-19 03:12:26 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: de.pengutronix.rauc - /
19-07-19 03:12:26 INFO (MainThread) [hassio.host.info] Update local host information
19-07-19 03:12:26 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1
19-07-19 03:12:26 INFO (MainThread) [hassio.host.services] Update service information
19-07-19 03:12:26 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1
19-07-19 03:12:27 INFO (MainThread) [hassio.host.apparmor] Load AppArmor Profiles: {‘hassio-supervisor’}
19-07-19 03:12:27 INFO (MainThread) [hassio.host.services] Reload local service hassos-apparmor.service

19-07-19 03:12:27 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ReloadOrRestartUnit on /org/freedesktop/systemd1
19-07-19 03:12:27 INFO (SyncWorker_1) [hassio.docker.interface] Attach to homeassistant/raspberrypi3-homeassistant with version landingpage
19-07-19 03:12:27 INFO (MainThread) [hassio.hassos] Detect HassOS 2.12 on host system
19-07-19 03:12:27 INFO (SyncWorker_2) [hassio.docker.hassos_cli] Found HassOS CLI homeassistant/armv7-hassio-cli with version 11
19-07-19 03:12:27 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/git/a0d7b954 repository
19-07-19 03:12:27 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/core repository
19-07-19 03:12:27 INFO (MainThread) [hassio.store] Load add-ons from store: 59 all - 59 new - 0 remove
19-07-19 03:12:27 INFO (MainThread) [hassio.addons] Found 0 installed add-ons
19-07-19 03:12:27 INFO (MainThread) [hassio.updater] Fetch update data from https://version.home-assistant.io/stable.json
19-07-19 03:12:30 INFO (MainThread) [hassio.snapshots] Found 0 snapshot files
19-07-19 03:12:30 INFO (MainThread) [hassio.discovery] Load 0 messages
19-07-19 03:12:30 INFO (MainThread) [hassio.ingress] Load 0 ingress session
19-07-19 03:12:30 INFO (MainThread) [main] Run Hass.io
19-07-19 03:12:30 INFO (MainThread) [hassio.misc.dns] Start DNS port forwarding for host add-ons

19-07-19 03:12:30 INFO (MainThread) [hassio.api] Start API on 172.30.32.2
19-07-19 03:12:30 INFO (MainThread) [hassio.addons] Phase ‘initialize’ start 0 add-ons
19-07-19 03:12:30 INFO (MainThread) [hassio.addons] Phase ‘system’ start 0 add-ons
19-07-19 03:12:30 INFO (MainThread) [hassio.addons] Phase ‘services’ start 0 add-ons
19-07-19 03:12:30 INFO (SyncWorker_5) [hassio.docker.interface] Restart homeassistant/raspberrypi3-homeassistant
19-07-19 03:12:36 INFO (MainThread) [hassio.homeassistant] Detect a running Home Assistant instance
19-07-19 03:12:36 INFO (MainThread) [hassio.addons] Phase ‘application’ start 0 add-ons
19-07-19 03:12:36 INFO (MainThread) [hassio.tasks] All core tasks are scheduled
19-07-19 03:12:36 INFO (MainThread) [hassio.core] Hass.io is up and running
19-07-19 03:12:36 INFO (MainThread) [hassio.homeassistant] Setup Home Assistant
19-07-19 03:12:36 INFO (SyncWorker_0) [hassio.docker.interface] Pull image homeassistant/raspberrypi3-homeassistant tag 0.96.1.
19-07-19 03:19:19 INFO (SyncWorker_0) [hassio.docker.interface] Tag image homeassistant/raspberrypi3-homeassistant with version 0.96.1 as latest
19-07-19 03:19:19 INFO (MainThread) [hassio.homeassistant] Home Assistant docker now installed
19-07-19 03:19:19 INFO (MainThread) [hassio.homeassistant] Start Home Assistant
19-07-19 03:19:19 INFO (SyncWorker_19) [hassio.docker.interface] Stop homeassistant application
19-07-19 03:19:21 INFO (SyncWorker_19) [hassio.docker.interface] Clean homeassistant application

19-07-19 03:19:22 INFO (SyncWorker_19) [hassio.docker.homeassistant] Start homeassistant homeassistant/raspberrypi3-homeassistant with version 0.96.1
19-07-19 03:19:42 INFO (MainThread) [hassio.homeassistant] Detect a running Home Assistant instance
19-07-19 03:19:42 INFO (SyncWorker_4) [hassio.docker.interface] Cleanup images: [‘homeassistant/raspberrypi3-homeassistant:landingpage’]
19-07-19 03:33:40 INFO (MainThread) [hassio.addons] Create Home Assistant add-on data folder /data/addons/data/core_configurator
19-07-19 03:33:40 INFO (SyncWorker_19) [hassio.docker.interface] Pull image homeassistant/armv7-addon-configurator tag 3.4.
19-07-19 03:34:44 INFO (SyncWorker_19) [hassio.docker.interface] Tag image homeassistant/armv7-addon-configurator with version 3.4 as latest
19-07-19 03:37:30 INFO (SyncWorker_4) [hassio.docker.addon] Start Docker add-on homeassistant/armv7-addon-configurator with version 3.4
19-07-19 03:37:49 INFO (MainThread) [hassio.addons] Create Home Assistant add-on data folder /data/addons/data/core_mosquitto
19-07-19 03:37:49 INFO (SyncWorker_11) [hassio.docker.interface] Pull image homeassistant/armv7-addon-mosquitto tag 5.0.

19-07-19 03:38:02 INFO (SyncWorker_11) [hassio.docker.interface] Tag image homeassistant/armv7-addon-mosquitto with version 5.0 as latest
19-07-19 03:38:31 INFO (SyncWorker_12) [hassio.docker.addon] Start Docker add-on homeassistant/armv7-addon-mosquitto with version 5.0
19-07-19 03:38:33 INFO (MainThread) [hassio.services.modules.mqtt] Set core_mosquitto as service provider for mqtt
19-07-19 03:38:33 INFO (MainThread) [hassio.discovery] Send discovery to Home Assistant mqtt from core_mosquitto
19-07-19 03:38:33 INFO (MainThread) [hassio.homeassistant] Updated Home Assistant API token
19-07-19 03:38:33 INFO (MainThread) [hassio.discovery] Discovery 37b9fcf6b0234ec6b21fd94ba79be3ec message send
19-07-19 03:45:29 INFO (SyncWorker_12) [hassio.docker.interface] Restart homeassistant/raspberrypi3-homeassistant
19-07-19 03:45:52 INFO (MainThread) [hassio.homeassistant] Detect a running Home Assistant instance
19-07-19 03:54:10 INFO (SyncWorker_0) [hassio.docker.interface] Restart homeassistant/raspberrypi3-homeassistant
19-07-19 03:54:37 INFO (MainThread) [hassio.homeassistant] Detect a running Home Assistant instance

Que lâmpadas são? Tens o discovery ativo ?

Já resolvi. Exitem muitas mudanças de uma versão para outra do HA.
nesta versão atual, depois de instalarmos o mosquitto broker, devemos ativá-lo na aba de integrações. É necessário também ativar o modo avançado na aba perfil, para que a checagem de configuração fique disponível. O HA é muito bom, mas ainda não esta maduro o suficiente.
Vou continuar estudando aqui.
obrigado.

com relação as lâmpadas, são de led comuns, iotizei elas inicialmente com módulos SonOff, que fui escrevendo o firmware até que ficou do meu gosto, atualmente uso placas que eu mesmo projetei usando o C.I esp8266, para a placa ficar mais compacta. segue fotos.

as que eu montei coloquei algumas nas caixas dos interruptores e outras na propria lâmpada.

1 Like