Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee) Topic is solved

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

User avatar
Sjonnie2017
Posts: 364
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Sjonnie2017 »

Well... it seems deconz isn't running. To give you an idea, I show you the output I get:

pi@RPi3:~ $ sudo netstat -nltup
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 675/vncserver-x11-c
tcp 0 0 0.0.0.0:20877 0.0.0.0:* LISTEN 28484/deCONZ
tcp 0 0 0.0.0.0:5999 0.0.0.0:* LISTEN 632/vncserver-virtu
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 28484/deCONZ
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 11664/lighttpd
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 5387/pihole-FTL
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 4883/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1738/cupsd
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 946/exim4
tcp 0 0 192.168.16.115:2812 0.0.0.0:* LISTEN 581/monit
tcp 0 0 127.0.0.1:4711 0.0.0.0:* LISTEN 5387/pihole-FTL
tcp6 0 0 :::5900 :::* LISTEN 675/vncserver-x11-c
tcp6 0 0 :::5999 :::* LISTEN 632/vncserver-virtu
tcp6 0 0 :::80 :::* LISTEN 11664/lighttpd
tcp6 0 0 :::8082 :::* LISTEN 1661/docker-proxy
tcp6 0 0 :::21 :::* LISTEN 3258/proftpd: (acce
tcp6 0 0 :::53 :::* LISTEN 5387/pihole-FTL
tcp6 0 0 :::22 :::* LISTEN 4883/sshd
tcp6 0 0 ::1:631 :::* LISTEN 1738/cupsd
tcp6 0 0 ::1:25 :::* LISTEN 946/exim4
tcp6 0 0 :::443 :::* LISTEN 17433/domoticz
tcp6 0 0 :::6144 :::* LISTEN 17433/domoticz
tcp6 0 0 :::2080 :::* LISTEN 17433/domoticz
tcp6 0 0 ::1:4711 :::* LISTEN 5387/pihole-FTL
udp 0 0 0.0.0.0:1900 0.0.0.0:* 28484/deCONZ
udp 0 0 0.0.0.0:53731 0.0.0.0:* 379/avahi-daemon: r
udp 0 0 0.0.0.0:53 0.0.0.0:* 5387/pihole-FTL
udp 0 0 0.0.0.0:67 0.0.0.0:* 5387/pihole-FTL
udp 0 0 0.0.0.0:68 0.0.0.0:* 448/dhcpcd
udp 0 0 0.0.0.0:631 0.0.0.0:* 1741/cups-browsed
udp 0 0 0.0.0.0:5353 0.0.0.0:* 379/avahi-daemon: r
udp6 0 0 :::53 :::* 5387/pihole-FTL
udp6 0 0 :::5353 :::* 379/avahi-daemon: r
udp6 0 0 :::41315 :::* 379/avahi-daemon: r

Have you tried to re-install?
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
Thorgal789
Posts: 849
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

You have installed the plugin for domoticz, but not the application
Take a look here https://www.phoscon.de/en/conbee2/install#raspbian
User avatar
DieHappy
Posts: 10
Joined: Wednesday 10 January 2018 18:57
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10717
Location: Netherlands
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by DieHappy »

Thanks for all the help.
I got it working :lol: !!

Witch debug setting is the best to use in domoticz?

Thanks again for all! the help
Thorgal789
Posts: 849
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

For normal use, you can select "none" or "disabled".

If you have problem or need information about a device (eg if you have problem to check wich one button is used by a device), "debug info only" is enought, to have important information.
gemas
Posts: 7
Joined: Saturday 07 October 2017 14:07
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by gemas »

I see in the release notes of version 1.0.11: Adding support for long press on ikea remote. Reparation for Shutter control.
Does anyone knows what this means and how this should work?
I have some Tradfri dimmers and was wondering if long press should work.
https://www.ikea.com/be/nl/p/tradfri-dr ... -70408595/
Thorgal789
Posts: 849
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

The long press was for the round remote.
Do you know the type of this remote on domoticz ? "Tradfri_on/off_switch", if yes, you already have the log press.

How is the widget created in domoticz ? It have B1C|B1L|B2C|B2L as command ?
ottoangel
Posts: 23
Joined: Wednesday 02 March 2016 14:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by ottoangel »

I have connected the Conbee II to my Raspberry Pi. I have followed the instructions on https://phoscon.de/en/conbee2/install#raspbian.

How can I start deCONZ in desktop mode on my rasperry? I have tried rdp and VNC viewer but I can't get it to work.

I can find deCONZ plugin under Hardware.

I have tried the Phoscon App but it never finds the gateway.

2020-02-26 00:09:28.297 (deCONZ) onHeartbeat called
2020-02-26 00:09:28.297 (deCONZ) ### Initialisation > config
2020-02-26 00:09:28.297 (deCONZ) ### Request config
2020-02-26 00:09:28.297 (deCONZ) Send Command /api/1234567890/config/ with None (0 in buffer)
2020-02-26 00:09:28.297 (deCONZ) Making Request : http://127.0.0.1:80/api/1234567890/config/ with params None
2020-02-26 00:09:28.315 Error: (deCONZ) Connexion problem (3) with Gateway, check your API key, or Use Request lib > V2.4.2
RFLink on a Raspberry Pi 2.
Thorgal789
Posts: 849
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

You have a desktop on your raspberry ?
You haven't installed a VNC application ? you are using the build in one, this one enabled with "raspi-config" ?
Nothing happen when you click on the icon ?

To use it in domoicz you need an api key, but you need first making deconz working.

If the phoscon app is working, it mean deconz is working too. So you are perhaps using the headless version atm (and you can use only 1 in same time).

To check wich one version is running

Code: Select all

pi@raspberrypi:~ $ sudo systemctl is-active deconz-gui
active
pi@raspberrypi:~ $ sudo systemctl is-active deconz
inactive

Another thing to do, on phoscon / gateway, check if you have a firmware version displayed https://phoscon.de/en/support#conbee2-connection-issues
User avatar
Sjonnie2017
Posts: 364
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Sjonnie2017 »

ottoangel wrote: Tuesday 25 February 2020 23:46 I have connected the Conbee II to my Raspberry Pi. I have followed the instructions on https://phoscon.de/en/conbee2/install#raspbian.

How can I start deCONZ in desktop mode on my rasperry? I have tried rdp and VNC viewer but I can't get it to work.

I can find deCONZ plugin under Hardware.

I have tried the Phoscon App but it never finds the gateway.

2020-02-26 00:09:28.297 (deCONZ) onHeartbeat called
2020-02-26 00:09:28.297 (deCONZ) ### Initialisation > config
2020-02-26 00:09:28.297 (deCONZ) ### Request config
2020-02-26 00:09:28.297 (deCONZ) Send Command /api/1234567890/config/ with None (0 in buffer)
2020-02-26 00:09:28.297 (deCONZ) Making Request : http://127.0.0.1:80/api/1234567890/config/ with params None
2020-02-26 00:09:28.315 Error: (deCONZ) Connexion problem (3) with Gateway, check your API key, or Use Request lib > V2.4.2
I connect to my Pi through VNC to get to the desktop.

What I use to switch between gui-mode and headless is this:

Activating Headless Version :
sudo systemctl disable deconz-gui
sudo systemctl stop deconz-gui
sudo systemctl enable deconz

sudo systemctl start deconz

Activating GUI version :
sudo systemctl disable deconz
sudo systemctl stop deconz
sudo systemctl enable deconz-gui

You can then either double click the icon on the desktop or use

sudo systemctl start deconz-gui

Works for me :)

Greetz,

Sjonnie
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
ottoangel
Posts: 23
Joined: Wednesday 02 March 2016 14:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by ottoangel »

Deconz was not running. Now I managed to start it (headless). I manged to create a api key.
Trying to start gui version doesn't work. It only says activating when I run sudo systemctl is-active deconz-gui.

I have tried to activate the desktop using "raspi-config" and also VNC.
Which icon do you mean?
VNC says "cannot curently show the desktop".
RFLink on a Raspberry Pi 2.
Thorgal789
Posts: 849
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

ottoangel wrote: Thursday 27 February 2020 12:29 Deconz was not running. Now I managed to start it (headless). I manged to create a api key.
Trying to start gui version doesn't work. It only says activating when I run sudo systemctl is-active deconz-gui.

I have tried to activate the desktop using "raspi-config" and also VNC.
Which icon do you mean?
VNC says "cannot curently show the desktop".
The icon is on Menu > Programming > deCONZ
But there is some compatibility problem, you need to use the native VNC (this one activated with "raspi-config") cf https://github.com/dresden-elektronik/d ... ssues/1405
ottoangel
Posts: 23
Joined: Wednesday 02 March 2016 14:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by ottoangel »

Thorgal789 wrote: Thursday 27 February 2020 16:43
The icon is on Menu > Programming > deCONZ
But there is some compatibility problem, you need to use the native VNC (this one activated with "raspi-config") cf https://github.com/dresden-elektronik/d ... ssues/1405
I can't even get to the gui. Vnc won't show it.
RFLink on a Raspberry Pi 2.
Thorgal789
Posts: 849
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

ottoangel wrote: Friday 28 February 2020 7:59 I can't even get to the gui. Vnc won't show it.
Have you a Desktop on your raspbian ? because on the link you have used there is a way with a pre-configured SD card (without Desktop) and for the other you can choose yourself your OS (Desktop or headless).

If you already have a Desktop, try again "raspi-config" "Advanced Options" "Resolution" and if you have "defaut", try another setting.

Have you tried to connect the rapsberry to a hdmi display to test ?
User avatar
Sjonnie2017
Posts: 364
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Sjonnie2017 »

Hi Thorgal,

If I may be so bold :) The new version of the DECONZ-REST-PLUGIN now correctly identifies my Heiman smoke sensors as such. Maybe you have read the post from SwoopX (https://github.com/dresden-elektronik/d ... -594530553) maybe not (that's why I am posting it :mrgreen: )

Would it be possible to modify your plug-in/connector to have the sensors correctly identified in Domoticz as well? They are now still being seen as switch.

By the way: I have removed the sensors from Domoticz and updated the plugin but they still show up as switches.

TIA

Greetz,

Sjonnie
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
Thorgal789
Posts: 849
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

Hello,
I think the API code may change again, SwoopX is on it.

Can you give me the sensor JSON pls ? You know how to find it (using a web browser) ?
Something like

Code: Select all

http://192.168.1.1/api/31578AB557/sensors/ID
I need the complete one, with device type.

And you want wich one widget instead of the switch, the alarm one ? like for fire and water ?

BTW, I m reading the deconz issuer it seem you have that in the JSON

Code: Select all

"type":"ZHAFire"
So the widget can't be a switch ? Have you try to delete the device and include it again ? Or have you include them after the update ?
ottoangel
Posts: 23
Joined: Wednesday 02 March 2016 14:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.4834
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by ottoangel »

Thorgal789 wrote: Friday 28 February 2020 18:37
ottoangel wrote: Friday 28 February 2020 7:59 I can't even get to the gui. Vnc won't show it.
Have you a Desktop on your raspbian ? because on the link you have used there is a way with a pre-configured SD card (without Desktop) and for the other you can choose yourself your OS (Desktop or headless).

If you already have a Desktop, try again "raspi-config" "Advanced Options" "Resolution" and if you have "defaut", try another setting.

Have you tried to connect the rapsberry to a hdmi display to test ?
Feeling stupid. I did not have any desktop. I guess I had the light version. Did not remeber that, kind of stupid that raspi-config shows it is possible to boot into desktop when it's not installed. I managed to upgrade to a desktop verison so now it works.

What do I need to but to get it to work with xiaomi and Ikea trådfri?
RFLink on a Raspberry Pi 2.
Thorgal789
Posts: 849
Joined: Wednesday 15 August 2018 14:38
Target OS: -
Domoticz version:
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Thorgal789 »

ottoangel wrote: Thursday 05 March 2020 2:22 What do I need to but to get it to work with xiaomi and Ikea trådfri?
Nothing more ^^.

Here you have the working mode for Phoscon https://phoscon.de/en/app/doc

You can use it for
- include device
- make group
- manage device
- Make scenario

And after the plugin will synchronise phoscon with domoticz.

You can use Phoscon to associate switch with bulb but domoticz is easier and more powerfull to do that.
User avatar
Sjonnie2017
Posts: 364
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by Sjonnie2017 »

Thorgal789 wrote: Wednesday 04 March 2020 19:56 Hello,
I think the API code may change again, SwoopX is on it.

Can you give me the sensor JSON pls ? You know how to find it (using a web browser) ?
Something like

Code: Select all

http://192.168.1.1/api/31578AB557/sensors/ID
I need the complete one, with device type.

And you want wich one widget instead of the switch, the alarm one ? like for fire and water ?

BTW, I m reading the deconz issuer it seem you have that in the JSON

Code: Select all

"type":"ZHAFire"
So the widget can't be a switch ? Have you try to delete the device and include it again ? Or have you include them after the update ?
Hi Thorgal,

I can't get you the sensor JSON the way you suggested. My PiHole installation is messing that up. I couldn't find the correct way to get the reading. My Domoticz installation is on port 2080 but when I issue

Code: Select all

http://192.168.16.115:2080/api/<my api key I use for your plugin>/sensors/ID
I get an error.

I did manage to retrieve a JSON from the database (section: DeviceStatus) which I will send to you through PM. Hope that is sufficient.

Alarm would be my "widget" of choice. A smoke alarm is in fact an alarm ;)

I had removed the sensors and then updated your plugin. After that I added the devices to Domoticz. They still showed up as switches.

Greetz,

Sjonnie
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
User avatar
DewGew
Posts: 581
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by DewGew »

I recently bought myself a conbee stick. I haven't installed anyting yet.
Does this plugin support domoticz latest beta (2020.1.11835)?
Is it possible to install deconz in another machine?
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
salopette
Posts: 187
Joined: Tuesday 07 March 2017 21:03
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Germany
Contact:

Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)

Post by salopette »

Yes, it works. I also have a PI with Domoticz and a ConbeeII only.
Works very well!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest