Install deCONZ 2.05.00 beta

Any docs that cover how to install deconz-2.05.00-qt5.deb?

I’m following https://github.com/dresden-elektronik/deconz-rest-plugin

But it only covers the install for 2.04.99.

I was able to get the 2.05.00 installed, but at this step of the install

 cd deconz-rest-plugin
 git checkout -b mybranch V2_04_99

I to changed it to

git checkout -b mybranch V2_05_00

I got this error:

pi@raspberrypi:~/deconz-rest-plugin $ git checkout -b mybranch V2_05_00
fatal: Cannot update paths and switch to branch 'mybranch' at the same time.
Did you intend to checkout 'V2_05_00' which can not be resolved as commit?
pi@raspberrypi:~/deconz-rest-plugin $

So I used 2.04.99 per the site. It went, but I know it’s wrong.

Now, trying the next step

pi@raspberrypi:~/deconz-rest-plugin $ sudo qmake && make -j2
make -f Makefile.Release
make[1]: Entering directory '/home/pi/deconz-rest-plugin'
/usr/lib/arm-linux-gnueabihf/qt5/bin/uic de_web_widget.ui -o ui_de_web_widget.h
g++ -c -pipe -Wno-attributes -Wall -Wno-attributes -O2 -std=gnu++11 -Wall -W -D_REENTRANT -fPIC -DDECONZ_DLLSPEC=Q_DECL_IMPORT -DARCH_ARM -DARCH_ARMV7 -DUSE_WEBSOCKETS -DGW_SW_VERSION=\"2.04.99\" -DGW_API_VERSION=\"1.0.4\" -DGIT_COMMMIT=\"94e1f195fdc707689ea7726ee36eb47378da7f61\" -DGW_MIN_RPI_FW_VERSION=0x26190500 -DGW_MIN_DERFUSB23E0X_FW_VERSION=0x22030300 -DGW_DEFAULT_NAME=\"deCONZ-GW\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SERIALPORT_LIB -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../.. -I../../common -isystem /usr/include/arm-linux-gnueabihf/qt5 -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWidgets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtGui -isystem /usr/include/arm-linux-gnueabihf/qt5/QtSerialPort -isystem /usr/include/arm-linux-gnueabihf/qt5/QtWebSockets -isystem /usr/include/arm-linux-gnueabihf/qt5/QtNetwork -isystem /usr/include/arm-linux-gnueabihf/qt5/QtCore -Irelease -I. -I/usr/lib/arm-linux-gnueabihf/qt5/mkspecs/linux-g++ -o release/authentification.o authentification.cpp
Could not create output file
Makefile.Release:394: recipe for target 'ui_de_web_widget.h' failed
make[1]: *** [ui_de_web_widget.h] Error 1
make[1]: *** Waiting for unfinished jobs....
Assembler messages:
Fatal error: can't create release/authentification.o: Permission denied
In file included from authentification.cpp:13:0:
de_web_plugin_private.h:24:20: fatal error: deconz.h: No such file or directory
 #include <deconz.h>
                    ^
compilation terminated.
Makefile.Release:421: recipe for target 'release/authentification.o' failed
make[1]: *** [release/authentification.o] Error 2
make[1]: Leaving directory '/home/pi/deconz-rest-plugin'
Makefile:38: recipe for target 'release' failed
make: *** [release] Error 2
pi@raspberrypi:~/deconz-rest-plugin $

I’m happy to wipe this and reinstall if I did this totally wrong.

Thanks!

Don’t worry about the second part of the install, that’s only if you want to test the latest commits to the master branch. Not really a production-worthy practice in my view.

All you need to do is:
sudo dpkg -i deconz-2.05.00-qt5.deb
sudo apt-get install -f

That will install the deb and correct the missing dependencies.

Then do:

sudo systemctl enable deconz
sudo systemctl start deconz

And deconz will start and also start on reboot.

1 Like

@marthocoo I couldn’t find any list of improvements for the 2.05. Do you know of any changes?

There is a change for the xiaomi wireless Buttons. Now reports separate event for button pressed, released, double, triple and quadruple press. Link

No I’m not sure what if anything changed in the deCONZ core application, there appear to have been a number of additions to the rest plug-in though, going by the git commit history of the master branch.

OK! That was easy. Thank you.

If you don’t mind, I did have some more questions.

What is the difference between using deCONZ vs.Phoscon?

I couldn’t find a way to add motion sensors to the deCONZ interface, but I could add it to Phoscon.

I added a Hue dimmer in deCONZ and the Hue Motion in Phoscon.

In HASSIO, I only see the switch. How do I get the motion in there?

The web interface at port 80 is the old webapp, Phoscon is the new interface currently in beta. As far as I can tell the difference is mostly cosmetic, but Phoscon may be missing a few features (resetting lights via TouchLink is one I can think of). I prefer using Phoscon as it seemed to be easier to get ie Motion sensors paired. If something isn’t showing up in HA, then I’d suggest to restart deconz (sometimes necessary to get new devices to flow through the rest API) and then Home Assistant. When HA connects to deconz it should pull all of your devices. Be sure to rename the devices in deconz as that name will carry into HA.

For the Dimmer, you should see a battery level entity in HA. Button presses are sent as events in HA, check the HA deconz component docs for example automations using them as triggers.

Hmmm - ok. This is definitely different.

Ok - restarted the PI where deCONZ is running and I still don’t see the motion it in HA.

What’s weird is that I think I’m looking at the motion in deCONZ via Menu -> Daylight Control

It’s showing in a group, but the name of the group is the name I gave the dimmer?

So confused :thinking:

If you don’t see it in hass but got other devices from deconz visible in hass your motion sensor has probably not paired with deconz properly

I have no way to add it to deconz - see the image

It is in Phoscon though

deCONZ will automatically create groups when you add a device like a switch or sensor - you can then add lights to that group and the switch will control them automatically. I leave the groups empty myself so that I can let HA do the processing of button presses and motion events.

Use Phoscon to delete the motion sensor device, then create it again through Phoscon. Another thing I found was that I needed to give the sensor a hard reset at some point (ie take out the batteries and wait a minute or so).

Both the Wireless Light Control webapp and Phoscon do the same thing - add devices to deCONZ. Phoscon is easier imo as it has the menus that walk you through.

Agreed with @Robban though - if it’s not showing up in HA then it probably didn’t add to deCONZ correctly.

I’ve deleted it, re-added it, reset it, pulled batteries, rebooted the Pi.

It gets added to Phoscon just fine. I can add it to groups and create motion rules, etc.

But, it’s not showing in deCONZ or HA.

Don’t worry about the other webapp. Mine doesn’t show there either. This is probably a question for @Robban to troubleshoot on (he’s the dev of the deconz HA component).

Wish I could, but it won’t show in HA either so I can’t really ignore it :joy:

Here’s tests you can do to give @Robban a head start.

Using a rest API client like Postman, try to do a GET on http://yourdeconzip/api/apikey/sensors. Where apikey found in deconz.conf in your config directory. That will return a json object and your sensor should be listed in there. If it is, @Robban will probably want to take a look at the json payload.

If the first test works, next, using a websockets client, connect to your deconz IP. You can use something like this chrome addon: https://chrome.google.com/webstore/detail/smart-websocket-client/omalebghpgejjiaoknljcfmglgbpocdp?utm_source=chrome-app-launcher-info-dialog . Or, if you’re using NodeRed, it has a Websockets node.

Now trigger the motion sensor - does anything come over the websockets connection (should be a json payload)?

My point is it won’t show in the other webapp. There’s a reason Dresden Elektronik is making and pushing the new Phoscon webapp - it’s going to be better and eventually replace the existing one.

Stupid question from me, but you do restart hass when you’ve added new devices?

Where is this config file? Not in Home Assistant directory - at least not in my install.

Understood - I’ll use whatever is necessary.

I don’t want to have so much sprawl and prefer to use one app and that is HASS in the end.

So if I can see it in HASS, I know to just use Phoscon to just add devices going forward.