After update Home Assistant, Error connecting to deCONZ gateway

Can’t tell. Im runnning on HomeassistantOS RP4 64Bit. michaelblight who had the Solution by looking at his config is using Hassos as well, but in a VM.

I’d think it is worth a try. Worst case should be, that after a reboot you can’t control Deconz with HA. Then you just do what you already did - entering the static IP again and reboot again :wink: I would give it a shot :slight_smile:

Unfortunately It dit not work for me.
I tried both “core_deconz” and “addon_core_deconz” in /config/.storage/core.config_entries. Neither worked and had to go back to the IP address.

I uses Glances to see the container name
Glances_containers
If anyone has a suggestion what else to try?

Sorry I used underscore and it should be minus -

Well, like i wrote, thats the Setting that worked for me :wink:

Oh… Shoot I used underscore.
Thanks. Now it works fine

Had the same issue
Found this post and learnd about the location of the core.config_entries.

As my primary system which is a system running for multiple years didn’t had this issue I compaired the core.config_enties files and noticed that the older system had core-deconz defined instead of the ip-address so I replaced it in the newer system and restarted it and all started working like it should.

Wanted to post my solution to help but smartin beat me to it by 41 days :smiley:

2 Likes

I’d just like to add that there’s an easier way to do this with the simple file editor add on (ie Home Assistants own addon) instead of a Home Assistant Community Visual Code Studio Addon. Just go to the Simple File Editor addon’s configuration GUI and remove “.storage” from the ignore patterns section there.

Then you can just browse (from the GUI) to the core.config_entries file, edit and save (after backing up, of course!)

1 Like

You are a life saviour!
Editing the config file worked for me!

Thanks!

2 Likes

Excellent solution.
It worked for me too.
Thank you

Thanks everyone, your advice ("host": "core-deconz") worked for me but it took a few attempts for the change to work.

grep "deconz" -A5 /config/.storage/core.config_entries
grep "172.30.33.0" /config/.storage/core.config_entries
cp /config/.storage/core.config_entries /config/.storage/core.config_entries.bak
sed -i 's/172.30.33.0/core-deconz/' /config/.storage/core.config_entries
diff /config/.storage/core.config_entries /config/.storage/core.config_entries.bak

After a while when I did the diff I would see unrelated access token is refreshed, no need to be alarmed by a difference like that.

Restarting HASS allowed the host address change to kick in and fix the issue. Going to the addons menu > Deconz choosing Restart and integrations menu > Deconz choosing Reload didn’t help. One seemed to revert the core.config_entries change.

This morning I woke up because of two-second power outage, because that caused my TV to turn on. Although a power outage that short should not reboot my Raspberry where my HASS is, seems like the battery in my UPS is dead then. Anyway, this power outage broke (for some reason) my whole zigbee network with this same error “Error connecting to deCONZ gateway”.

Thanks to this thread, I managed to get it fixed again by changing that IP address in core.config_entries to “core-deconz”. Hopefully when the next power outage comes (at least when I replace that battery in the UPS, unless I shut down the HASS properly), this does not change again :slight_smile:

This right here worked for me!!.. Still have absolutely no idea why IP is strange. Been running the HA for 2 years without any problems.
RP4 with deconz

Thank you!
It worked for me too.
After about one year without problem the deconz IP began to change again.
I have used “core-deconz” and it work well, also after reboot

Thanks, I had the same issue after updating to the latest HA Version. Installed the VSC Server Plugin and changed the IP in config_entries to the new one.

This is the way. Worked for me after using core-deconz instead of the new IP.

Hi There, just have the same issue right now. Could you RP4 with HA and Deconz AddOn.
What exactly have you done to solve the issue??
Thanks

The issue is IPs change, but you can change configuration to use a service name which will always point to the new IP, thus requiring no further IP changes in configuration.

My sanity saved, thank you! I tried changing the IP address but it reverted on restarting.
I migrated from a Rpi3 to a Lenovo M600 (VirtualBox), and this was the only real issue I had.

Hey,

I have what I believe is the same issue. Last night I turned off my Home Assistant box for around an hour. After turning it back on my Aqara sensors are failing to update. Within the core_deconz UI they note a last refreshed time of moments before I turned off my Home Assistant box (over 24 hours ago)

I’ve read through the fixes above, both changing the IP and changing the host to “core-deconz”. However, neither appear to be working for me. I fear I might be doing something wrong.

The file I am editing is:

“/config/.storage/core.config_entries”

And the section within that file looks something like this:

      {
        "entry_id": "REDACTED",
        "version": 1,
        "domain": "deconz",
        "title": "REDACTED",
        "data": {
          "host": "172.30.33.0",
          "port": 40850,
          "api_key": "REDACTED"
        },
        "options": {
          "master": true
        },
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "user",
        "unique_id": null,
        "disabled_by": null
      }

After changing the line:

“host”: “172.30.33.0”,

And restarting the box. I get the same results, the devices do NOT connect and it also appears that the IP within the Phoscon view still reads:

Phoscon-GW 172.30.33.0

Any clues what I could be doing wrong?

To add to the above, here is an example of the current state of one of my sensors:


As you can see, it’s not been refreshed for two days now (since the moment I took the Home Assistant box offline for an hour). This is also the case for my other sensors.

In addition to my previous two posts above here is some more information from the core_deconz/dashboard API Information:

1 Like