deCONZ - Official thread

Hi everyone
When setting up Deconz see the internal given ip adress of my Conbee 2 stick (i guess)

When using deconz to log into the GUI inside HA, i see the same address

But after a reboot or two, the integration fails to connect (Settings\Devices and Services)
And when i check the IP address it differs from the address given to the device upon fort setup. Often only by plus or minus 1 on the last digit.

To remedy this i remove the integration, and re-add the integration again. Annoying.

-Can i fix this?!
:joy:

Hey, I hope this is the right place to ask. I recently had my Conbee II soft-brick my HA install. It seems like this has happened to other people, but I decided to plug it in to my PC, and to do a firmware update, all good. HA is now booting fine, however all my devices are missing. I have never done a backup in Phoscon, so I do not have a .dat file to import. I do however have a backup of my HA install from before it started acting up. Is it possible to extract the devices from that or am I SOL?

The address you’re using is a docker address and its not static, you can change the address to be the machine address instead and it should stop breaking on reboots.

Could you please advice on how to achieve that? :heart_eyes:

How are you running Home Assistant and deCONZ?

Guys, look here: Fix IP / AutoUpdate for Deconz with Conbee II

You have to manually change the ip address to “core-deconz” in file /config/.storage/core.config_entries

Since i done that the issue is fixed for me.

PS.: Would be nice if this can be set correctly during installation!? Any hint’s where we can make a ticket for this?

Good luck

unRaid\VM\HA 2022.8.4 Supervisor 2022.08.3
unRaid\USB-connected Conbee 2\pass through to VM\HA

DEVLINKS: >-
  /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2401527-if00
  /dev/serial/by-path/pci-0000:00:07.0-usb-0:2:1.0
DEVNAME: /dev/ttyACM0
DEVPATH: /devices/pci0000:00/0000:00:07.0/usb2/2-2/2-2:1.0/tty/ttyACM0
ID_BUS: usb
ID_MODEL: ConBee_II
ID_MODEL_ENC: ConBee\x20II
ID_MODEL_ID: '0030'
ID_PATH: pci-0000:00:07.0-usb-0:2:1.0
ID_PATH_TAG: pci-0000_00_07_0-usb-0_2_1_0
ID_REVISION: '0100'
ID_SERIAL: dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2401527
ID_SERIAL_SHORT: DE2401527
ID_TYPE: generic
ID_USB_DRIVER: cdc_acm
ID_USB_INTERFACES: ':020201:0a0000:'
ID_USB_INTERFACE_NUM: '00'
ID_VENDOR: dresden_elektronik_ingenieurtechnik_GmbH
ID_VENDOR_ENC: dresden\x20elektronik\x20ingenieurtechnik\x20GmbH
ID_VENDOR_ID: 1cf1
MAJOR: '166'
MINOR: '0'
SUBSYSTEM: tty
TAGS: ':systemd:'
USEC_INITIALIZED: '1350548'

@KaherdinTristan see my answer above!

Are you running the deConz addon?

Follow these instructions deCONZ - Official thread - #3232 by pOpY from Popy

Yes. Deconz as add-on in HA.

@pOpY and @Robban
These are the relevant entries into my HA VM “…\config.storage\core.config_entries”
What can I remove? I’m NOT using ZHA integration btw.

{
  "version": 1,
  "minor_version": 1,
  "key": "core.config_entries",
  "data": {
    "entries": [
      {
        "entry_id": "[Redacted 29 aplha-numeric values]dca2",
        "version": 1,
        "domain": "hassio",
        "title": "Supervisor",
        "data": {},
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "system",
        "unique_id": "hassio",
        "disabled_by": null
      },

[...]

{
        "entry_id": "[Redacted 25 aplha-numeric values]...8a88fb2",
        "version": 3,
        "domain": "zha",
        "title": "ConBee II - /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2401527-if00, s/n: DE2401527 - dresden elektronik ingenieurtechnik GmbH - 1CF1:0030",
        "data": {
          "device": {
            "path": "/dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2401527-if00"
          }
        },
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "ignore",
        "unique_id": "[REDACTED 002]_dresden elektronik ingenieurtechnik GmbH_ConBee II",
        "disabled_by": null
      },
      {
        "entry_id": "[Redacted 25 aplha-numeric values]...ebfe659",
        "version": 1,
        "domain": "deconz",
        "title": "deCONZ",
        "data": {
          "host": "core-deconz",
          "port": 40850,
          "api_key": "[Redacted 9 alpha-numeric values]...84"
        },
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "ignore",
        "unique_id": "[Redacted 10 alpha-numeric values]...4F8",
        "disabled_by": null
      },
[...]
{
        "entry_id": "[Redacted 25 alpha-numeric values]...e47a9f0f",
        "version": 1,
        "domain": "deconz",
        "title": "[Redacted 8 alpha-numeric values]...94F8",
        "data": {
          "host": "172.30.33.3",
          "port": 40850,
          "api_key": "[Redacted 8 alpha-numeric values]...63"
        },
        "options": {
          "master": true,
          "allow_clip_sensor": true,
          "allow_deconz_groups": true,
          "allow_new_devices": true
        },
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "user",
        "unique_id": null,
        "disabled_by": null
      },
[...]

I cannot understand why there are still integrations that do not allow changing essential configurations via either UI or yaml. Hacking json files is horrible and risky.

For Deconz chaning IP, and API key should be part of the config settings. It is OK that you have to restart HA afterwards.

1 Like

Superduper-Ticket-making-page

I am using the deconz ha addon and it works like a charm. I have one issue and i could not find a solution or i am to stupid to understand. So maybe you could push me in the right direction.

I use some socket switch that are able to measue power etc. Unfortunately deconz does not read these value and so homeassistant did not get these value. I learned that with a ddf file in deconz this could be solved, but i find no way to provide the file to deconz addon.

The socket switches are _TZ3000_gjnozsaz

You can, you need to use the deCONZ application through VNC.
A better option would probably be to raise a device request at Issues · dresden-elektronik/deconz-rest-plugin · GitHub (first check if there isn’t one already).

@Kars Thanks for the advice. I will defnitly try the device request option. Actual there is only an issue with the device and the solution is described.

The addon offer the deconz app access with vnc, but i did not find any way to upload a ddf file

1 Like

I do have those switches and it took a couple of times to be added but I didn’t upload any file. Deactivate the auto include in home assistant because it will take more time to add into deconz the power reporting and you won’t have power reporting in home assistant

If you have a faulty api key a reconfigure flow should be available to repair the integration.

Running a new flow should update existing settings if the unique id matches.

Might be some additional error that could be considered as a trigger a reconfigure.

Regarding addons I’ve never been involved in those but none the less they generate support issues for me.

Change the ip address of the host entry to “core-deconz”.
It should look like:

“host”: “core-deconz”,

Save the file and restart HA, it should now connect also on restarts/updates…

1 Like