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

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

Moderator: leecollings

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 »

Lol, good to know @salopette, I m not courageous enought to install it to test.

And yep you can install deconz on another machine than the domoticz one > https://www.phoscon.de/en/conbee2/install
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 »

Thorgal789 wrote: Wednesday 25 March 2020 16:33 Lol, good to know @salopette, I m not courageous enought to install it to test.

And yep you can install deconz on another machine than the domoticz one > https://www.phoscon.de/en/conbee2/install
Thanks!
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 »

@Thorgal789

I was behaving strangely in the log of Domoticz.
If I e.g. other switches / sensors from Deconz appear in the log.

But they have nothing to do with the circuit.
Are also not used in the Blokly script.
Attachments
sshot-4.jpg
sshot-4.jpg (189.7 KiB) Viewed 2228 times
sshot-2.jpg
sshot-2.jpg (172.26 KiB) Viewed 2228 times
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,where have you this panel ?
It's dzevent logging ? It's something from new version ?
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 »

That when I look at the protocol from the motion detector.
I only mentioned it because lately the lights have not been switched off properly or not at all.

If someone leaves the bathroom, it should be off after 30-40 seconds, but it doesn't always happen.

I have in sonoff with tasmota and hue motion.
Attachments
sshot-5.jpg
sshot-5.jpg (115.32 KiB) Viewed 2218 times
sshot-4.jpg
sshot-4.jpg (172.12 KiB) Viewed 2218 times
sshot-2.jpg
sshot-2.jpg (24.11 KiB) Viewed 2218 times
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 »

I don't have the "Benutzer" part on my log ... It's not because you have enabled some log in domoticz (I had same when enable dzevent logging) ?

Your script seem good for me.
The only problem I m seeing is if you press a button in same time the sensor go to "off", you will trigger the first or second "if" so you can't reach the 4th to turn off bulb, ybut you realy need to be unlucky to have this situation.

The 4 "lights" stay "on" or only some of them ?
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 »

I have now deactivated DzVents log, and created 2 different scripts, one for movement and one for switch.
Let's see what happens next!
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 »

So the difference was because of DZevent log (IDK if there is an option for Blocky) ?

The 4 "lights" stay "on" or only some of them ?
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 »

I could not test it today because it is only home in the evening.
All lights remained on, so only the 3 that were switched via motion
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 »

So just for information I have pulled a new version, with some cosmetic amelioration but this version solve a critic bug that can crash domoticz, if you have a Xiaomi plug with consumption activated.
Hilus
Posts: 7
Joined: Sunday 11 August 2019 21:12
Target OS: Windows
Domoticz version:
Contact:

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

Post by Hilus »

Has anyone used the daylight 'sensor' provided with the deconz software? In Domoticz it is showing up as a switch, not as a sensor.
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 »

Yep, I use only the daylight field, to set a switch on or off, if it's day > "on" else "off".

You need to tweak it ?
Hilus
Posts: 7
Joined: Sunday 11 August 2019 21:12
Target OS: Windows
Domoticz version:
Contact:

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

Post by Hilus »

So it has to be used with a blockly script? Would it be possible there to use it with the different types of astronomical / nautical sunset / golden hour etc as described in the link (from HA, but referring to the use of the deconz daylight sensor) below? Well, possibly not really much more useful than the possibilities provided within domoticz itself.

https://www.home-assistant.io/integrati ... onz/#light

Sorry for al noobish questions :? ;)
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 can use it like you want, sensor or switch is same.
I m using only the daylight value, because I thought it was the only usefull information (and easier to use), you want to use the sunlight phases for something ?

Do you know a domoticz widget where I can use in same time an on/off value and another filed for sunlight phases ? Because I prefer avoid the cration of 2 devices just for it.

If you want I can send this value to "level value", so it will be invisible, but you can use it in your script, but it will be a numeric value ?
Hilus
Posts: 7
Joined: Sunday 11 August 2019 21:12
Target OS: Windows
Domoticz version:
Contact:

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

Post by Hilus »

I now use 'sun down' minus around 40 minutes to turn the lights on at twilight. Possably a setting for 'twilight' or 'start sundown' would be easier tot find the right time to turn on the lights when it gets darker outside.

But I bought a light sensor yesterday. I think that will be more practical to use.
capitalT
Posts: 11
Joined: Thursday 30 May 2019 9:51
Target OS: Linux
Domoticz version:
Contact:

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

Post by capitalT »

Thorgal789 wrote: Friday 15 February 2019 18:05 For API, deconz mimic hue API , their objective is Philips Hue applications to work unaltered with deCONZ.
Is that true? I have not found any apps other then Hue Essentials (and all4hue supposedly) that work with the deConz bridge. You know any others that work?
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 »

Yep, https://github.com/dresden-elektronik/d ... patibility
And no, I haven't the list of supported application, I have see someone make the try, perhaps in this topic, but nothing official and up to date.
I haven't tried myself, but there is other person that use it with alexa or harmony (with native hue support)
nitpicker
Posts: 69
Joined: Tuesday 29 July 2014 10:05
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Contact:

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

Post by nitpicker »

I have something I need some help with:

In the deCONZ app I see the ConbeeII and my 'voordeur' sensor (not connected with a line, it was though when I created it).

A bit from the error log of Domoticz:
2020-06-22 09:35:25.486 Error: (deCONZ) Connexion problem (3) with Gateway, check your API key, or Use Request lib > V2.4.2
2020-06-22 09:35:35.399 Error: (deCONZ) Wrong startup, retrying !!
2020-06-22 09:35:45.476 Error: (deCONZ) Wrong startup, retrying !!
2020-06-22 09:35:55.435 Error: (deCONZ) Wrong startup, retrying !!

But when I open the front door (sensor voordeur) it give me the status open and closed (just like it is), but it is showing almost everytime in red.
User avatar
bitjeverkeerd
Posts: 30
Joined: Monday 13 April 2015 20:39
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

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

Post by bitjeverkeerd »

Since I reinstalled my system with the latest stable Domoticz version (2020.2), and the latest deConz version (2.05.77)
and have updated the conbee usb firmware to version 26580700 i have the following problem.

With the 5-button Ikea remote (firmware 2.3.014), a long press of the Left (L <) or a long press of the Right (L>) are no longer detected correctly. Domoticz then displays (<) and (>). Is this a known problem from the plugin or is it caused in deConz?

Long press of the Up (L+) and Down (L-) button are still correctly detected.
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, @nitpicker, have you got your api key ? Using API_KEY.py ?
If yes can you try the command

Code: Select all

sudo -H pip3 install requests
To check if you have the lib request correctly installed on your system.

@bitjeverkeerd IDK, you can check in your log (level "debug log only"), when you press the button you will have as buttonevent return 4001 and 5001 for long press and 4002 5002 for short press (for < and >).
But on my side with older remote, deconz version 77, I haven't problem, wich one plugin version have you ?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest