home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.72k stars 30.45k forks source link

I can't upgrade deconz from 3.8 to 5.1 integration appears always empty. #31263

Closed eskimos2000 closed 4 years ago

eskimos2000 commented 4 years ago

I am trying to upgrade deconz addon from 3.8 to 5.1 and I have followed all troubleshooting on deconz addon no luck. I am getting this integration after the update always empty. I tried to uninstall deconz restart HA install again, integration is discovered but after I integrate (which is giving Success message) it is always empty.

This is my log after upgrade: Config entry for deconz not ready yet. Retrying in 80 seconds. 12:07 PM config_entries.py (WARNING) - message first occurred at 12:06 PM and shows up 2 times Error connecting to deCONZ gateway at 172.30.33.0 12:07 PM components/deconz/gateway.py (ERROR) - message first occurred at 12:04 PM and shows up 6 times Config entry for deconz not ready yet. Retrying in 40 seconds. 12:05 PM config_entries.py (WARNING) Config entry for deconz not ready yet. Retrying in 20 seconds. 12:04 PM config_entries.py (WARNING) Config entry for deconz not ready yet. Retrying in 10 seconds. 12:04 PM config_entries.py (WARNING) Config entry for deconz not ready yet. Retrying in 5 seconds. 12:04 PM config_entries.py (WARNING) Exception occurred: 12:00 PM /usr/local/lib/python3.7/site-packages/zeroconf/__init__.py (WARNING) - message first occurred at 11:51 AM and shows up 3 times

This is log from HA with deconz debug on after HA restart: 2020-01-29 12:04:07 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:04:17 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:04:17 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 5 seconds. 2020-01-29 12:04:23 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:04:33 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:04:33 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 10 seconds. 2020-01-29 12:04:44 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:04:54 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:04:54 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 20 seconds. 2020-01-29 12:05:15 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:05:25 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:05:25 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 40 seconds. 2020-01-29 12:06:06 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:06:16 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:06:16 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 80 seconds. 2020-01-29 12:07:37 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:07:47 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:07:47 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 80 seconds. 2020-01-29 12:09:08 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:09:18 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:09:18 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 80 seconds. 2020-01-29 12:10:39 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:10:49 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:10:49 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 80 seconds. 2020-01-29 12:12:10 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:12:20 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:12:20 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 80 seconds. 2020-01-29 12:13:41 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:13:51 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:13:51 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 80 seconds. 2020-01-29 12:15:12 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:15:22 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:15:22 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 80 seconds. 2020-01-29 12:16:43 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:16:53 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:16:53 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 80 seconds. 2020-01-29 12:18:14 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:18:24 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:18:24 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 80 seconds. 2020-01-29 12:19:45 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:19:55 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:19:55 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 80 seconds. 2020-01-29 12:21:16 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:21:26 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:21:26 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 80 seconds. 2020-01-29 12:22:47 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:22:57 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:22:57 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 80 seconds. 2020-01-29 12:24:18 DEBUG (MainThread) [pydeconz.gateway] Sending "get" "None" to "172.30.33.0 " 2020-01-29 12:24:28 ERROR (MainThread) [homeassistant.components.deconz] Error connecting to deCONZ gateway at 172.30.33.0 2020-01-29 12:24:28 WARNING (MainThread) [homeassistant.config_entries] Config entry for deconz not ready yet. Retrying in 80 seconds.

This is log after device restart: 20-01-29 00:50:42 INFO (MainThread) [__main__] Initialize Hass.io setup 20-01-29 00:50:42 INFO (SyncWorker_0) [hassio.docker.supervisor] Attach to Supervisor homeassistant/armhf-hassio-supervisor with version 195 20-01-29 00:50:43 ERROR (MainThread) [hassio.supervisor] Supervisor does not run in Privileged mode. Hassio runs with limited functionality! 20-01-29 00:50:43 INFO (MainThread) [__main__] Setup HassIO 20-01-29 00:50:43 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.systemd1 - /org/freedesktop/systemd1 20-01-29 00:50:43 INFO (MainThread) [hassio.utils.gdbus] Connect to dbus: org.freedesktop.hostname1 - /org/freedesktop/hostname1 20-01-29 00:50:43 WARNING (MainThread) [hassio.dbus.rauc] Host has no rauc support. OTA updates have been disabled. 20-01-29 00:50:43 WARNING (MainThread) [hassio.dbus.nmi_dns] No DnsManager support on the host. Local DNS functions have been disabled. 20-01-29 00:50:43 INFO (MainThread) [hassio.host.info] Update local host information 20-01-29 00:50:43 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.DBus.Properties.GetAll on /org/freedesktop/hostname1 20-01-29 00:50:43 INFO (MainThread) [hassio.host.services] Update service information 20-01-29 00:50:43 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ListUnits on /org/freedesktop/systemd1 20-01-29 00:50:44 INFO (MainThread) [hassio.host.apparmor] Load AppArmor Profiles: {'hassio-supervisor'} 20-01-29 00:50:44 INFO (MainThread) [hassio.host.services] Reload local service hassio-apparmor.service 20-01-29 00:50:44 INFO (MainThread) [hassio.utils.gdbus] Call org.freedesktop.systemd1.Manager.ReloadOrRestartUnit on /org/freedesktop/systemd1 20-01-29 00:50:44 INFO (SyncWorker_1) [hassio.docker.interface] Attach to homeassistant/armhf-hassio-dns with version 1 20-01-29 00:50:46 INFO (MainThread) [hassio.misc.forwarder] Start DNS port forwarding to 172.30.32.3 20-01-29 00:50:46 INFO (MainThread) [hassio.dns] Start CoreDNS plugin 20-01-29 00:50:46 INFO (SyncWorker_1) [hassio.docker.interface] Clean hassio_dns application 20-01-29 00:50:51 INFO (SyncWorker_1) [hassio.docker.dns] Start DNS homeassistant/armhf-hassio-dns with version 1 - 172.30.32.3 20-01-29 00:50:52 INFO (SyncWorker_5) [hassio.docker.interface] Attach to homeassistant/odroid-xu-homeassistant with version 0.104.3 20-01-29 00:50:57 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/core repository 20-01-29 00:50:57 INFO (MainThread) [hassio.store.git] Load add-on /data/addons/git/a0d7b954 repository 20-01-29 00:50:57 INFO (MainThread) [hassio.store] Load add-ons from store: 63 all - 63 new - 0 remove 20-01-29 00:50:57 INFO (MainThread) [hassio.addons] Found 4 installed add-ons 20-01-29 00:50:57 INFO (SyncWorker_0) [hassio.docker.interface] Attach to homeassistant/armv7-addon-configurator with version 4.2 20-01-29 00:50:57 INFO (SyncWorker_4) [hassio.docker.interface] Attach to homeassistant/armv7-addon-duckdns with version 1.10 20-01-29 00:50:57 INFO (SyncWorker_9) [hassio.docker.interface] Attach to hassioaddons/adb-armv7 with version 0.5.6 20-01-29 00:50:57 INFO (SyncWorker_11) [hassio.docker.interface] Attach to homeassistant/armhf-addon-deconz with version 5.1 20-01-29 00:50:57 INFO (MainThread) [hassio.updater] Fetch update data from https://version.home-assistant.io/stable.json 20-01-29 00:50:59 INFO (MainThread) [hassio.snapshots] Found 3 snapshot files 20-01-29 00:50:59 INFO (MainThread) [hassio.discovery] Load 1 messages 20-01-29 00:50:59 INFO (MainThread) [hassio.ingress] Load 0 ingress session 20-01-29 00:50:59 INFO (MainThread) [hassio.secrets] Load Home Assistant secrets: 1 20-01-29 00:50:59 INFO (MainThread) [__main__] Run Hass.io 20-01-29 00:50:59 INFO (MainThread) [hassio.api] Start API on 172.30.32.2 20-01-29 00:50:59 INFO (MainThread) [hassio.addons] Phase 'initialize' start 0 add-ons 20-01-29 00:50:59 INFO (MainThread) [hassio.addons] Phase 'system' start 1 add-ons 20-01-29 00:51:02 INFO (SyncWorker_13) [hassio.docker.addon] Start Docker add-on homeassistant/armhf-addon-deconz with version 5.1 20-01-29 00:51:07 INFO (MainThread) [hassio.addons] Phase 'services' start 2 add-ons 20-01-29 00:51:07 ERROR (MainThread) [hassio.addons.addon] Add-on core_duckdns have wrong options: Missing required option 'token'. Got {'lets_encrypt': {'accept_terms': False, 'certfile': 'fullchain.pem', 'keyfile': 'privkey.pem'}, 'token': None, 'domains': [None], 'seconds': 300} 20-01-29 00:51:11 INFO (SyncWorker_0) [hassio.docker.addon] Start Docker add-on hassioaddons/adb-armv7 with version 0.5.6 20-01-29 00:51:11 ERROR (MainThread) [asyncio] Task exception was never retrieved future: <Task finished coro=<Addon.start() done, defined at /usr/src/hassio/hassio/addons/addon.py:463> exception=AddonsError()> Traceback (most recent call last): File "/usr/src/hassio/hassio/addons/addon.py", line 474, in start await self.write_options() File "/usr/src/hassio/hassio/addons/addon.py", line 372, in write_options raise AddonsError() hassio.exceptions.AddonsError 20-01-29 00:51:12 INFO (MainThread) [hassio.api.security] /host/info access from a0d7b954_adb 20-01-29 00:51:15 INFO (MainThread) [hassio.discovery] Send discovery to Home Assistant deconz from core_deconz 20-01-29 00:51:15 ERROR (MainThread) [hassio.homeassistant] Error on call http://172.30.32.1:8123/api/: Cannot connect to host 172.30.32.1:8123 ssl:None [Connection refused] 20-01-29 00:51:15 INFO (MainThread) [hassio.discovery] Discovery e7ed9fdeb49347c08888a551fc4da574 mesage ignore 20-01-29 00:51:16 INFO (SyncWorker_19) [hassio.docker.interface] Start homeassistant/odroid-xu-homeassistant 20-01-29 00:51:42 INFO (MainThread) [hassio.homeassistant] Detect a running Home Assistant instance 20-01-29 00:51:42 INFO (MainThread) [hassio.addons] Phase 'application' start 1 add-ons 20-01-29 00:51:45 INFO (SyncWorker_11) [hassio.docker.addon] Start Docker add-on homeassistant/armv7-addon-configurator with version 4.2 20-01-29 00:51:50 INFO (MainThread) [hassio.tasks] All core tasks are scheduled 20-01-29 00:51:50 INFO (MainThread) [hassio.core] Hass.io is up and running

I have noticed that old addon has config:

`

Container Host Description
5900/tcp   deCONZ graphical desktop via VNC
80/tcp   deCONZ API backend
8080/tcp   deCONZ WebSocket Server

`

A bit different to the new one. Maybe this is the problem, but I am a noob. No other warnings

Please help I am stuck in the old addon version and can't move on.

frenck commented 4 years ago

Which Home Assistant version are you on?

probot-home-assistant[bot] commented 4 years ago

Hey there @kane610, mind taking a look at this issue as its been labeled with a integration (deconz) you are listed as a codeowner for? Thanks!

Kane610 commented 4 years ago

@frenck I think this is more appropriately assigned to you

eskimos2000 commented 4 years ago

Latest 0.104.3

eskimos2000 commented 4 years ago

I have just notice that there is change how gateway IP is discovered on phoscan app. Before the upgrade I have my local ip after the upgrade there is that deconz ip so maybe there is something into it. Screenshot attached. 2020-02-01

Kane610 commented 4 years ago

Ok so probably the address is updated but the add-on doesn't update the host address in the integration

eskimos2000 commented 4 years ago

So how can I fix it? I do not want to be stack on deconz 3.8 forever.

eskimos2000 commented 4 years ago

Help please, please. I am stuck in that 3.8.