I would say weeks
@Filip_Kotian I sense you have not really understood who is who and what is what
Deconz in Home Assistant consists of 3 pieces
The German company Dresden Elektronik who also manufacturer the Conbee sticks release the Deconz software. Part and only part of this is open source and the developers of this make their work not for Home Assistant but also for other solutions. They have their release cycles and are currently in progress with a larger rewrite which should end up making it easier to add code for new devices.
You find this project at GitHub - dresden-elektronik/deconz-rest-plugin: deCONZ REST-API plugin to control ZigBee devices.
Deconz itself can be installed on a Windows host or Linux host. Dresden Elektronik maintains a Raspberry Pi image as well as a Debian/Ubuntu repo… And from here you can choose to use the stable release or the beta branch. And there is a but well maintained Docker version.
Then you have the Home Assistant Deconz integration where the main dev is Robban. This is Python based code that communicates with a Deconz installation. The Deconz that the Integration connects to can run on the same computer as Home Assistant or on a different computer. It is up to you
And finally there is the Deconz addon for Home Assistant. This is a Home Assistant project member that maintains this. This is a Docker image that gets started and run by the Supervisor. We have seen this addon use both stable and beta versions of Deconz depending on the stability.
If you want to not be dependent on when which version of Deconz gets made available in the addon, then simply move your Deconz to a separate machine and install the beta on that. It is easy to move. Just backup the Deconz data in the Phoscon app. Install Deconz on the new machine, and restore the backup on the new machine. And in Home Assistant you remove the addon and remove the integration and add it again pointing to the new server.
The advice someone gave on turning on beta in Home Assistant was wrong. That does not change the Deconz software to beta
Thank you very much for these information. What I would like to achieve is to have home assistant os and deconz installation on rpi4. Mosty I would like to setup rules in phoscon and manage my lights there (I have conbee II)
So I hope I understood everything, there might be a way to add through supervisor also beta version? I need it cause I have some philips hue dimers v2, which are supported only in beta now.
Thank you.
Hi,
Does deCONZ frequently ping the network to check if devices are availible?
Example:
I have three light bulbs that all show up fine with correct state, but suddenly does my wife power them off (Main power). Will deCONZ capture that and change state to off after a little room of time?
If the power is cut to a mains-powered zigbee device, such as a light bulb, you will usually see the entity marked as “unavailable” in home assistant. The speed at which it changes to Unavailable depends on the design of that device and how often deconz checks to see if that device is still available.
Battery zigbee devices can take quite a while to appear as unavailable as they don’t usually report in to deconz very often, in order to extend battery life.
I have some home assistant automations that alert me if a device changes to Unavailable. Its a handy way to know if someone has used one of the old light switches around the house, or if a device has been physically plugged out.
Does anyone know how to explain how to update a Conbee II USB stick (using a PC) in instructions a dummy can understand? I use deCONZ with my HA Pi, but it stopped working.
I found the instructions here.
But I immediately dont understand the instructions. I dont know what the GCFFlasher is or how to “rename the filename accordingly” etc.
I will paypal anyone $5 if they can translate this into steps I can follow.
Ive been trying to fix my deCONZ situation for about a year off and on, spending many hours not getting anywhere. From what Ive read, this firmware update is my best bet.
I made a post on this with more details but I wasnt able to get an answer
they probably are for people deep enough into this stuff to know what they are referring to.
I’m not familiar with these files or what they should be renamed to or what the Flasher is etc.
I’m just someone who uses a basic home assistant setup and had deCONZ working perfectly fine until it stopped working.
On you windows PC
Download the GCCFlasher http://deconz.dresden-elektronik.de/win/GCFFlasher_Win_V3_17.zip
Get the ftd2xx.dll file from the 32bit VCP DDrivers and place it together with the downloaded GCCFLASHER
Download the ConBee II firmware http://deconz.dresden-elektronik.de/deconz-firmware/deCONZ_ConBeeII_0x26720700.bin.GCF
Using a Powershell window (as an Administrator) go to the folder where you downloaded the GCCFLASHER
Plug in the ConBee II into the computer
List all available devices and their COM ports GCFFlasher -l
Replace <PATH>
with what path was printed from GCFFlasher -l
(step 7 in Windows guide)
GCFFlasher -d
-t 60 -f ../firmware/deCONZ_ConBeeII_0x26720700.bin.GCF
According to the guide this should work
Note! I just rewrote the notes from the windows guide to smaller steps, hope this helps. I don’t use Windows so and didn’t write the guide so if something is missing I can’t help.
Thanks so much ! I should be able to try this out tomorrow
Tried to make a firmware update on one of my device. Dont know what i did. But it ended up like this
The devices seems to be online in homeassistant, but do not change state.
Had the conbee 2 connected to a windows pc with deconz. Put it back into the raspberry and now all the links are gone.
Need help!
In terms of updating the firmware, I’m slowly putting the pieces together, but making progress.
- I downloaded the latest deCONZ… .GCF firmware file.
- I downloaded the latest GCFFlasher and unzipped.
- I downloaded version 2.12.28 (32 bit that they link to) of the VCP DDriver , however there is no .dll file.
- I downloaded the latest 32 bit version (2.12.36.4 ) and there is a .dll file in the i386 folder (I just guessed and downloaded this version since the original didnt contain a file called ftd2xx.dll).
- I copied this ftd2xx.dll into the GCFFlasher folder and replaced the original.
- I Shift-Clicked inside this folder to click the option of opening the powershell (but not sure how to open as admin).
- I took out the conbee ii stick for 10 seconds, then inserted and waited 10 seconds.
- I ran the command
.\GCFFlasher -l
which requires the extra.\
. - It prints info on the Conbee.
- I noticed the instructions online for the firmware reference the “COM” part of the print. Mine says COM3 (instead of COM7 like in the example).
- I use paste the code from the instructions into a note editor
GCFFlasher -d COM7 -t 60 -f ../firmware/deCONZ_ConBeeII_0x26720700.bin.GCF
I change the COM7 to COM3, and I also add the .\
before the command, so I have
.\GCFFlasher -d COM3 -t 60 -f ../firmware/deCONZ_ConBeeII_0x26720700.bin.GCF
I paste that into the powershell and hit enter and get these results:
PS C:\Users\grays\Downloads\GCFFlasher_Win_V3_17\GCFFlasher_V3_17> .\GCFFlasher -d COM3 -t 60 -f ../firmware/deCONZ_ConBeeII_0x26720700.bin.GCF
GCFFlasher V3_17 (c) dresden elektronik ingenieurtechnik gmbh
error opening firmware file ../firmware/deCONZ_ConBeeII_0x26720700.bin.GCF
PS C:\Users\grays\Downloads\GCFFlasher_Win_V3_17\GCFFlasher_V3_17>
The two things that could be possible is that the .dll file isnt working (since it did not exist in the zip file they recommended, I had to guess and try another one).
OR I am not in admin mode in the powershell, because I did not see an option to run it in that mode when I Shift-Clicked.
UPDATE: I figured out that if you download the link to the 2.12.28 file in the instructions, it does not come with a ftd2xx.dll file, but if you manually find that file in the VCP drivers, the zip file you download DOES include the ftd2xx.dll file.
However, replacing with this version of .dll file did not change the outcome error when I tried the steps again.
UPDATE 2:
I am now thinking that it is having a problem finding this deconz…GCF file. It is just sitting in my downloads folder and isnt in any “/firmware/” directory.
How is the powershell supposed to know where to find this GCF File? Do I have to place it somewhere manually first?
Remove the …/firmware/ in the command
During the night my deconz integration decided to enter a boot loop, and from what i can gather, it seems to think it wants to upgrade the firmware, but the firmware is upgraded, so it errors out and gets restarted by watchdog. How do i resolve this?
Here’s the lines i managed to extract from the docker log:
10:10:54:001 GW update firmware found: /usr/share/deCONZ/firmware/deCONZ_ConBeeII_0x26660700.bin.GCF
10:10:54:001 GW firmware version: 0x26680700
10:10:54:001 GW firmware version is up to date: 0x26680700
10:10:55:191 ZCL attribute report 0x0017880106490F58 for cluster: 0x0402, ep: 0x02, frame control: 0x08, mfcode: 0x0000
[10:10:59] INFO: Starting VNC server (local/yes)…
2021/11/27 10:10:59 [notice] 314#314: signal 15 (SIGTERM) received from 306, exiting
2021/11/27 10:10:59 [notice] 1441#1441: exiting
2021/11/27 10:10:59 [notice] 1441#1441: exit
In exit
Closing socket listening at 127.0.0.1:5901
2021/11/27 10:10:59 [notice] 314#314: signal 17 (SIGCHLD) received from 1441
2021/11/27 10:10:59 [notice] 314#314: worker process 1441 exited with code 0
2021/11/27 10:10:59 [notice] 314#314: exit
Same for me
WebSocket server settings:
- Listen on 127.0.0.1:5901
- Flash security policy server
- Web server. Web root: /usr/share/novnc
- No SSL/TLS support (no cert file)
- proxying from 127.0.0.1:5901 to 127.0.0.1:5900
[13:10:51] INFO: deCONZ waiting for VNC to start
[13:10:51] INFO: Starting the deCONZ gateway...
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
[13:10:54] INFO: Starting Nginx...
2021/11/27 13:10:54 [notice] 319#319: using the "epoll" event method
2021/11/27 13:10:54 [notice] 319#319: nginx/1.14.2
2021/11/27 13:10:54 [notice] 319#319: OS: Linux 5.10.17-v8
2021/11/27 13:10:54 [notice] 319#319: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2021/11/27 13:10:54 [notice] 319#319: start worker processes
2021/11/27 13:10:54 [notice] 319#319: start worker process 1339
13:10:53:528 HTTP Server listen on address 0.0.0.0, port: 40850, root: /usr/share/deCONZ/webapp/
13:10:53:691 COM: use stable device path /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2421262-if00
13:10:53:752 COM: /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2421262-if00 / serialno: DE2421262, ConBee II
13:10:53:753 ZCLDB init file /data/.local/share/dresden-elektronik/deCONZ/zcldb.txt
13:10:53:915 parent process s6-supervise
13:10:53:915 gw run mode: docker/hassio
13:10:53:915 GW sd-card image version file does not exist: /data/.local/share/dresden-elektronik/deCONZ/gw-version
13:10:53:916 DB sqlite version 3.27.2
13:10:53:918 DB PRAGMA page_count: 53
13:10:53:918 DB PRAGMA page_size: 4096
13:10:53:918 DB PRAGMA freelist_count: 0
13:10:53:918 DB file size 217088 bytes, free pages 0
13:10:53:918 DB PRAGMA user_version: 8
13:10:53:918 DB cleanup
13:10:53:918 DB create temporary views
13:10:53:935 started websocket server at port 8081
13:10:53:938 [INFO] - Found file containing button maps. Parsing data...
13:10:53:948 [INFO] - Button maps loaded.
13:10:53:950 dlg action: Read binding table
13:10:53:950 found node plugin: libde_rest_plugin.so - REST API Plugin
13:10:53:953 found node plugin: libde_signal_plugin.so - Signal Monitor Plugin
13:10:59:382 found node plugin: libstd_otau_plugin.so - STD OTAU Plugin
13:10:59:512 LightNode 1: Configuration tool 1 added
13:10:59:517 LightNode 18: Soggiorno-Angolo added
13:10:59:523 LightNode 17: Ingresso-secondario added
13:10:59:525 LightNode 8: Cucina-prolunga added
13:10:59:527 LightNode 16: Ingresso-principale added
13:10:59:528 SensorNode 100 set node 0x00158d000678e307
13:10:59:529 SensorNode 101 set node 0x00158d000678e307
13:10:59:529 SensorNode 102 set node 0x00158d000678e307
13:10:59:531 LightNode 3: Soggiorno-principale added
13:10:59:532 SensorNode 92 set node 0x00158d0006c58c56
13:10:59:532 SensorNode 93 set node 0x00158d0006c58c56
13:10:59:535 LightNode 2: Bagnetto-principale added
13:10:59:536 LightNode 15: Consumption awareness device 15 added
13:10:59:536 SensorNode 68 set node 0x0004740000a16612
13:10:59:537 SensorNode 69 set node 0x0004740000a16612
13:10:59:539 LightNode 7: Bagno-specchio added
13:10:59:540 LightNode 11: Camera-principale added
13:10:59:542 SensorNode 112 set node 0x00158d0006694e53
13:10:59:542 SensorNode 113 set node 0x00158d0006694e53
13:10:59:542 SensorNode 114 set node 0x00158d0006694e53
13:10:59:544 LightNode 5: Cucina-principale added
13:10:59:545 SensorNode 106 set node 0x00158d00068b398a
13:10:59:545 SensorNode 107 set node 0x00158d00068b398a
13:10:59:545 SensorNode 108 set node 0x00158d00068b398a
13:10:59:547 LightNode 14: Terrazzo added
13:10:59:549 LightNode 6: Bagno-principale added
13:10:59:550 LightNode 12: Camera-comodino1 added
13:10:59:552 SensorNode 87 set node 0x00158d00068b4074
13:10:59:552 SensorNode 88 set node 0x00158d00068b4074
13:10:59:552 SensorNode 89 set node 0x00158d00068b4074
13:10:59:906 New websocket 172.30.32.1:59950 (state: 3)
13:11:00:624 COM: /dev/serial/by-id/usb-dresden_elektronik_ingenieurtechnik_GmbH_ConBee_II_DE2421262-if00 / serialno: DE2421262, ConBee II
13:11:02:269 Device firmware version 0x26660700 ConBee II
13:11:02:271 unlocked max nodes: 512
13:11:02:289 Device protocol version: 0x010C
13:11:02:345 Current channel 11
13:11:02:349 CTRL got nwk update id 1
13:11:02:352 CTRL ANT_CTRL 0x03
13:11:02:365 Device protocol version: 0x010C
13:11:02:393 CTRL ANT_CTRL 0x03
13:11:02:406 ZCL attribute report 0x0004740000A16612 for cluster: 0x0B04, ep: 0x01, frame control: 0x18, mfcode: 0x0000
13:11:02:409 ZCL attribute report 0x0004740000A16612 for cluster: 0x0B04, ep: 0x01, frame control: 0x18, mfcode: 0x0000
13:11:02:412 ZCL attribute report 0x0004740000A16612 for cluster: 0x0B04, ep: 0x01, frame control: 0x18, mfcode: 0x0000
[13:11:04] INFO: Successfully send discovery information to Home Assistant.
13:11:05:989 drop request to zombie (rx = 0)
13:11:09:765 GW update firmware found: /usr/share/deCONZ/firmware/deCONZ_ConBeeII_0x26660700.bin.GCF
13:11:09:766 GW firmware version: 0x26660700
13:11:09:766 GW firmware version is up to date: 0x26660700
[13:11:15] INFO: Starting VNC server (local/yes)...
In exit
Closing socket listening at 127.0.0.1:5901
2021/11/27 13:11:15 [notice] 319#319: signal 15 (SIGTERM) received from 309, exiting
2021/11/27 13:11:15 [notice] 1339#1339: exiting
2021/11/27 13:11:15 [notice] 1339#1339: exit
2021/11/27 13:11:15 [notice] 319#319: signal 17 (SIGCHLD) received from 1339
2021/11/27 13:11:15 [notice] 319#319: worker process 1339 exited with code 0
2021/11/27 13:11:15 [notice] 319#319: exit
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
That’s actually the deConz (add-on I presume) application
Thank you!
I was finally able to update the firmware. I’ll need to see if that fixed my deconz situation tomorrow
And to anyone finding this bc they had issues knowing what to do for these steps, you remove that firmware part of the path but you also have to put the GCF file in the GCFFlasher directory.
And you may also need to use the .\ at the start of the shell lines you paste, along some other details I wrote above.
Hi,
my HA is sometimes not showing the real value from Deconz.
Here is an example: look at the line Current Temperature Setpoint in Deconz Thermostat Cluster Attributes
and in HA near Auto in bold
Any Idea ?
The integration reports what is sent from the rest api plugin. Have you looked what is sent from deconz over websocket?
I don’t know what is a websocket ! How can I do that ?