Coming back here to update what I did and results got.
Changed Deconz so it ran with debugging:
/usr/bin/deCONZ -platform minimal --http-port=8080 --dbg-aps=2 --dbg-zcl=1 --dbg-info=1
Checked the status with the following command:
journalctl --unit=deconz.service -n 100 --no-pager > /root/button.txt
(This gave me a good amount of data to review)
Within /root/button.txt found entries such as:
Feb 20 18:58:22 HomeAssistant deCONZ[3315]: 18:58:21:853 APS-DATA.indication srcAddr: 0x00158d0002b8b9ae, srcEp: 0x01 dstAddrMode: 2, profile: 0x0104, cluster: 0x0006,$
Feb 20 18:58:22 HomeAssistant deCONZ[3315]: 18:58:21:853 asdu: 181b0a00001001
Feb 20 18:58:22 HomeAssistant deCONZ[3315]: 18:58:21:853 button 1002 Normal release
Next step was to check the API, to do this I went into my .storage/core.config_entries and grabbed the deconz API Key (Shows next to “api_key”: in the deconz section).
Put into the web browser:
http://192.168.1.5:8080/api/021439ATTT/
(021439ATTT would be replaced by the api key)
The browser displays the buttons and their status:
{“battery”:100,“on”:true,“reachable”:true},“ep”:1,“etag”:“3654b973fd0f2eb3bde6991b96b0bec7”,“manufacturername”:“LUMI”,“mode”:1,“modelid”:“lumi.sensor_switch”,“name”:“Smart Switch Test”,“state”:{“buttonevent”:1002,“lastupdated”:“2019-02-20T18:53:46”},“type”:“ZHASwitch”,“uniqueid”:“00:15:8d:00:02:c7:ed:95-01-0006”}}}
When you click a button the button event will update (if a different event and also the lastupdated will update to the time you pressed the button).
This API is the same that Home Assistant looks at and therefore if anything doesn’t update here or isn’t present Home Assistant wont see it.
Looking at my issues I found two / did two things that may have led to it working:
- Changed the time zone on my armbian box to GMT, ensured computer was on GMT and do a reset of the gateway. My conbee was running on EST as my computer is set to that and the Armbian was set to UTC (I believe this was the main part causing the deconz event to not trigger and leading me to believe they were lost)
- Add a switch, check its working. reboot, Add another, check, reboot etc.
All now working even after reboot.
Although this issue has been painful I’m glad I’ve had it as its allowed me to get to grips with how deconz works and how deconz / home assistant interact with each other. Hopefully the write-up can help others in the future!