deCONZ - Official thread

New deCONZ Docker image is pushed - should be up shortly. Bumps to 2.05.67 and fixes the problem with flashing firmware on RPi 4.

4 Likes

i am running HassOS with deconz addon
i have a verry easy setup, just some xiaomi motion sensors and some osram plus

this week i had to restart 2 x times Hassio, my pirs and powerplugs were not working anymore
in hassio log, i couldnt see any issue
seems deconz was disconnected with Hassio, strange
first i tried restarting deconz, that didnt help, restarting hassio did the trick

how can i investigate this next times it occurs? where do i need to look for?

Enable debug for deconz integration and you should get more details

Ok, a step closer… I have not enabled debug yet, but I think what’s wrong, don’t know why it happens though…

I loaded phosxon, I was still able to turn on Osram plugs on/off , so that’s good.
In my Lovelace I have buttons, all my osrams were on, I could turn them off, but the state didn’t change…

So went to the states overview page (no Lovelace)
I can turn off/on he switch there with no issues at all, but the state doesn’t change, it stays on…
So that’s why my xiaomi pir sensors are not working either… Probably deconz is not able to change the state to " motion detected " , therefore my automations doesnt kick in…

In screenshot below, stated page you see the switch “zolder” turning off/on is no issue, it turns off/on, but the state stays on


How does deconz handle state? With a curl?

Indeed , my pir sensors are detecting, in phosxon I see the state changing to motion detected, but the states doesnt go through hassio…
If I restart hassio it’s fine…

I see some issues on GitHub about ssl changes from 96 to 97, and that curl and other stuff is not working anymore without proper ssl certificates…

So maybe deconz is having issues also setting up a connection

Gonna enable debug logs later

If the state reverts back to previous state after a few seconds it usually means that the web socket connection is not setup correctly.

Deconz integration neither uses curl nor ssl certificates

But it doesn’t change to previous state, the state doesn’t change at all…

Is there a socket in 2 directions? Because turning on/off is no issue… It just the state isn’t changing

Enable debug as @Robban suggested

yes, enabled debug, restarted , so waiting now untill its an issue again, so for test, when i now change an plug from phoscon, i see in debug log now this, it works now, but i see unsupported event, not sure if thats normal

2019-08-28 08:30:36 DEBUG (MainThread) [pydeconz.websocket] Websocket data: {"e":"changed","id":"6","r":"lights","state":{"alert":null,"on":false,"reachable":true},"t":"event","uniqueid":"7c:b0:3e:aa:0a:02:8f:cb-03"}
2019-08-28 08:30:36 DEBUG (MainThread) [pydeconz] Unsupported event {'e': 'changed', 'id': '65520', 'r': 'groups', 'state': {'all_on': False, 'any_on': True}, 't': 'event'}
2019-08-28 08:30:36 DEBUG (MainThread) [pydeconz.websocket] Websocket data: {"e":"changed","id":"65520","r":"groups","state":{"all_on":false,"any_on":true},"t":"event"}
2019-08-28 08:30:36 DEBUG (MainThread) [pydeconz.websocket] Websocket data: {"e":"changed","id":"1","r":"groups","state":{"all_on":false,"any_on":true},"t":"event"}

@pergola.fabio that’s is weird

That is a typical event that handles updates and is definitely supported

https://github.com/Kane610/deconz/blob/5ce3c80e6afd6553f9b6d0d823cf252d05521dbb/pydeconz/init.py#L184

Yeah well, first time I enabled debug, so don’t know if that’s also before…
But I restarted hassio, so I need to wait a few hours untill issue occurres again, at the moment all is running now

Thanks for the suggestion, I tried to create log enabling the debug but I had an error using it, I copied exacly what was written in the docs but it continue to file, so I tried in a different way:

  1. disconnect and close the deconz APP
  2. disconnect the Conbee stick from raspberry
  3. remove the deconz integration in HA
  4. shutdown the Rasbian
  5. connect the Conbee stick
  6. Restart Rasbian
  7. check that the App deconz start and is connected
  8. integrate again the deconz in HA

After al this steps it works, probably there was some corruption in the old deconz integration.

Thanks again for the support!!!

ok, it happened again
there is no info in debug anymore

last debug log was from around 20:07 :

2019-08-28 19:59:09 DEBUG (MainThread) [pydeconz.websocket] Websocket data: {"e":"changed","id":"17","r":"sensors","state":{"lastupdated":"2019-08-28T17:59:09","presence":false},"t":"event","uniqueid":"00:15:8d:00:03:05:8f:d4-01-0406"}
2019-08-28 20:03:04 DEBUG (MainThread) [pydeconz.websocket] Websocket data: {"config":{"alert":"none","battery":47,"group":"14613","on":true,"reachable":true},"e":"changed","id":"4","r":"sensors","t":"event","uniqueid":"00:0d:6f:ff:fe:25:c1:d9-01-1000"}
2019-08-28 20:07:23 DEBUG (MainThread) [pydeconz.websocket] Websocket data: {"e":"changed","id":"2","r":"sensors","state":{"dark":false,"daylight":false,"lastupdated":"2019-08-28T18:07:23","status":180},"t":"event","uniqueid":"00:21:2e:ff:ff:02:a4:80-01"}

above looks normal, so i arrived home now at around 23:20

nothing is working anymore from deconz
so when i walk before a xiaomi motion, sensor, it detects motion, i see that in phoscon, but nothing happens in Hassio, also no debug

when i turn on/off a switch from phoscon, also no debug in hassio
when i turn on/off a switch from hassio, it works, it actually turn on/off the switch, then in debug i see this:

2019-08-28 23:15:18 DEBUG (MainThread) [pydeconz.utils] Sending {'data': '{"on": true}'} to http://172.30.32.1:40850/api/7E45CBF224/lights/6/state
2019-08-28 23:15:18 DEBUG (MainThread) [pydeconz.utils] HTTP request response: [{'success': {'/lights/6/state/on': True}}]

so above looks good
so its just the state direction from deconz to hassio thats seems to be an issue

when i press the hardware button on my osram, deconz sees it, also when i walk before a motion sensor, so below is a copy paste from log from dezconz addon

23:26:59:254 ZCL attribute report 0x7CB03EAA0A0284DC for cluster 0x0006, ep 0x03
23:27:03:449 Current channel 25
23:27:03:481 Device TTL 6300 s flags: 0x7
23:27:32:414 no button map for: lumi.sensor_motion.aq2 ep: 0x01 cl: 0x0400 cmd: 0x0A pl[0]: 000
23:27:32:415 ZCL attribute report 0x00158D00036678FA for cluster 0x0400, ep 0x01
23:27:32:462 no button map for: lumi.sensor_motion.aq2 ep: 0x01 cl: 0x0406 cmd: 0x0A pl[0]: 000
23:27:32:464 ZCL attribute report 0x00158D00036678FA for cluster 0x0406, ep 0x01
23:27:32:882 Set sensor check interval to 100 milliseconds
23:28:03:445 Current channel 25
23:28:03:477 Device TTL 6240 s flags: 0x7
23:28:03:643 Announced to internet
23:28:13:949 0x7CB03EAA0A028FCB onOff 1 --> 0
23:28:13:950 ZCL attribute report 0x7CB03EAA0A028FCB for cluster 0x0006, ep 0x03
23:28:23:604 0x7CB03EAA0A028FCB onOff 0 --> 1
23:28:23:605 ZCL attribute report 0x7CB03EAA0A028FCB for cluster 0x0006, ep 0x03
23:28:29:896 no button map for: lumi.sensor_motion.aq2 ep: 0x01 cl: 0x0400 cmd: 0x0A pl[0]: 000
23:28:29:897 ZCL attribute report 0x00158D0002EDA792 for cluster 0x0400, ep 0x01
23:28:29:928 no button map for: lumi.sensor_motion.aq2 ep: 0x01 cl: 0x0406 cmd: 0x0A pl[0]: 000
23:28:29:929 ZCL attribute report 0x00158D0002EDA792 for cluster 0x0406, ep 0x01

no idea whats wrong, any1 can help me?
i always needs to restart hassio again

Hi, the Tradrfri outlets are showing in the Lights section (as sockets) of Phoscon as:

Vendor IKEA of Sweden
Model TRÅDFRI control outlet
Version 1.4.020

Also have a smartthings outlet (shows as a light), again in the Lights section showing as:

Vendor CentraLite
Model 3200-Sgb
Version ����������������

And an Aqara relay module (shows as a light):

Vendor LUMI
Model lumi.relay.c2acn01
Version

And finally a CC2531 Flashed as a Router (Shows as a light, but the onboard LED does work as the light):

Vendor LUMI
Model lumi.router
Version 2018-09-26

Can you share the type as well? You’d need to enable debug per integration documentation and then check in the logs.

I am running the Marthoc Docker image - can somebody help me on how to add Ikea plugs to the network.
According the supported device list, those should be able to add to the network.

add it as a light

unfortunately that doesnt work - do you have any advise on how to?

Not sure if this is a browser issue on my end or a real bug, but what are the two options supposed to be in the deCONZ integration configuration page when you click the gear? (Configuration > Integrations > deCONZ… > Gear icon on the top right)

Mine shows up like this:
42%20PM

I’ts a bug

1 Like