Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee) Topic is solved
Moderator: leecollings
-
- Posts: 815
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)
Hello,
To resume, You need to use a Dresden Elektronik gateway, a Raspbee (Plug-On Module for raspberry, around 32$ on Amazon), or Conbee (USB key, around 40$ on Amazon, and the deCONZ software. This universal gateway support lot of Zigbee devices, XIAOMI, Heiman , IKEA, PHILIPS, ect ..., official compatibility list https://github.com/dresden-elektronik/d ... ed-Devices
You can use their GUI, for maintenance, support, look at traffic, set attributes, manage router, ect ....
You can use their Web app, for devices management, pairing, groups, update firmware ect ...
You can use too some android application like Hue essential compatible with deconz ... https://play.google.com/store/apps/dev? ... 5643453779
And use this plugin to bridge between the deCONZ server and domoticz. The plugin have now a Frontend for some actions (thx to @JayPearlman). To use it, just go in "Custom"/"DeCONZ".
Easy to use, plug'n'play, just plug the key (install driver if needed), install the application and all is working. nothing to tinker, no more thing to install, no text editor needed for config...
You can make your scenario in Domoticz but in Phoscon too, all scenes from Phoscon will be imported in Domoticz.
There is some other options, like an headless mode, or a native working mode with alexa.
Their application is realy complete, In fact you can use it without domoticz, you can for exemple set or shedule event.
It have full support for group, and OTA.
Their new site just for Conbee and Raspbee : Cle USB Zigbee Conbee
The deconz-rest-plugin Github : Here you will found lasted files/firmwares and support : https://github.com/dresden-elektronik/d ... est-plugin
The deconz discord : https://discord.gg/QFhTxqN
******************************************************************
Plugin Url : Plugin deCONZ for domoticz
******************************************************************
If you have more questions ...
To resume, You need to use a Dresden Elektronik gateway, a Raspbee (Plug-On Module for raspberry, around 32$ on Amazon), or Conbee (USB key, around 40$ on Amazon, and the deCONZ software. This universal gateway support lot of Zigbee devices, XIAOMI, Heiman , IKEA, PHILIPS, ect ..., official compatibility list https://github.com/dresden-elektronik/d ... ed-Devices
You can use their GUI, for maintenance, support, look at traffic, set attributes, manage router, ect ....
You can use their Web app, for devices management, pairing, groups, update firmware ect ...
You can use too some android application like Hue essential compatible with deconz ... https://play.google.com/store/apps/dev? ... 5643453779
And use this plugin to bridge between the deCONZ server and domoticz. The plugin have now a Frontend for some actions (thx to @JayPearlman). To use it, just go in "Custom"/"DeCONZ".
Easy to use, plug'n'play, just plug the key (install driver if needed), install the application and all is working. nothing to tinker, no more thing to install, no text editor needed for config...
You can make your scenario in Domoticz but in Phoscon too, all scenes from Phoscon will be imported in Domoticz.
There is some other options, like an headless mode, or a native working mode with alexa.
Their application is realy complete, In fact you can use it without domoticz, you can for exemple set or shedule event.
It have full support for group, and OTA.
Their new site just for Conbee and Raspbee : Cle USB Zigbee Conbee
The deconz-rest-plugin Github : Here you will found lasted files/firmwares and support : https://github.com/dresden-elektronik/d ... est-plugin
The deconz discord : https://discord.gg/QFhTxqN
******************************************************************
Plugin Url : Plugin deCONZ for domoticz
******************************************************************
If you have more questions ...
Last edited by Thorgal789 on Saturday 18 February 2023 15:30, edited 21 times in total.
Re: Python Zigbee plugin to give, deCONZ bridge
Hi,
I have been looking for this for a long time an easy way to get IKEA lights to work with Domoticz!
So have been trying out your plugin for a few days with a Conbee stick and so far it has been working good.
But why do you set the default state for lights to off?
For example if I have a dimmable light connected to a normal lightswitch and switches it on, the light starts is turned on but then immidiatly is turned off and I have to pick up the app to turn it on again.
I have been looking for this for a long time an easy way to get IKEA lights to work with Domoticz!
So have been trying out your plugin for a few days with a Conbee stick and so far it has been working good.
But why do you set the default state for lights to off?
For example if I have a dimmable light connected to a normal lightswitch and switches it on, the light starts is turned on but then immidiatly is turned off and I have to pick up the app to turn it on again.
-
- Posts: 815
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: Python Zigbee plugin to give, deCONZ bridge
Long story ^^, but it s changed now.
1 - When you turn power off then on , all ikea bulb turn on, no realy good if you have a total power off when you are away.
2 - When an ikea bulb join the network, you don't receive information about it's state, you need to ask yourself.
3 - Bulb don't memorise last state on my side, if I cut the power, all is reseted.
So it was my first solution. When deconz detect a "discover device" if the device is a bulb, I turned them off directly. But later I had a device that make a "discovery device" randomly, not full discovery (so not a DC I think) but enought for deCONZ send me the notification and turn off the light.
So now the new method (still on test, so not fully on github) set the device to off on new discovery, but only if the device haven't send request during the last 10s.
So if you turn it 2 times in less than 10s, it will stay on, but you will see it at "off" in domoticz if your device not send sate information.
ATM it work at home, but not a realy good solution, on my future tests, I will send on every "new discovery" request in "blind mode" with the current setting in domoticz, so event if the device don't send information, it will be resynchronized with domoticz.
I have too some problems with switch, but your problem is exactly mine ATM ^^, so I m trying several solution to find the better.
You can disable this fonction whith setting this line in comment
1 - When you turn power off then on , all ikea bulb turn on, no realy good if you have a total power off when you are away.
2 - When an ikea bulb join the network, you don't receive information about it's state, you need to ask yourself.
3 - Bulb don't memorise last state on my side, if I cut the power, all is reseted.
So it was my first solution. When deconz detect a "discover device" if the device is a bulb, I turned them off directly. But later I had a device that make a "discovery device" randomly, not full discovery (so not a DC I think) but enought for deCONZ send me the notification and turn off the light.
So now the new method (still on test, so not fully on github) set the device to off on new discovery, but only if the device haven't send request during the last 10s.
So if you turn it 2 times in less than 10s, it will stay on, but you will see it at "off" in domoticz if your device not send sate information.
ATM it work at home, but not a realy good solution, on my future tests, I will send on every "new discovery" request in "blind mode" with the current setting in domoticz, so event if the device don't send information, it will be resynchronized with domoticz.
I have too some problems with switch, but your problem is exactly mine ATM ^^, so I m trying several solution to find the better.
You can disable this fonction whith setting this line in comment
Code: Select all
self.SetDeviceDefautState(IEEE,_Data['r'])
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: Python Zigbee plugin to give, deCONZ bridge
thx for your plugin.
I finally try it today, and i'm facing a error :
Python Deconz) Classic Data : {'1': {'type': 'Extended color light', 'ctmax': 0, 'etag': '303bacae7f147508b897eb938a0e95bf', 'manufacturername': 'Feibit Inc co.', 'swversion': '1.0.2', 'uniqueid': '00:12:4b:00:14:af:7f:6a-0b', 'name': 'Jiawen', 'hascolor': True, 'modelid': 'FB56-ZCW08KU1.1', 'state': {'hue': 10240, 'alert': 'none', 'effect': 'none', 'on': True, 'reachable': True, 'sat': 162, 'xy': [0.433646, 0.404173], 'bri': 69, 'ct': 164, 'colormode': 'xy'}, 'ctmin': 0}, '2': {'name': 'Light 2', 'etag': 'f0c863c2a7b61babfb83cd22c5a31661', 'manufacturername': 'Unknown', 'swversion': None, 'uniqueid': '00:15:8d:00:01:2a:47:fd-02', 'state': {'alert': 'none', 'on': False, 'reachable': True}, 'type': 'Smart plug', 'modelid': None, 'hascolor': False}}
2018-11-25 18:18:48.833 (Python Deconz) ### Device > 1 Name:Jiawen Type:Extended color light Details:{'hue': 10240, 'alert': 'none', 'effect': 'none', 'on': True, 'reachable': True, 'sat': 162, 'xy': [0.433646, 0.404173], 'bri': 69, 'ct': 164, 'colormode': 'xy'}
2018-11-25 18:18:48.833 (Python Deconz) ### Device > 2 Name:Light 2 Type:Smart plug Details:{'alert': 'none', 'on': False, 'reachable': True}
2018-11-25 18:18:48.830 Error: JSON Protocol: Parse Error on 'HTTP/1.1 200 OK
2018-11-25 18:18:48.830 Access-Control-Allow-Origin: *
2018-11-25 18:18:48.830 Content-Type: application/json; charset=utf-8
2018-11-25 18:18:48.830 Content-Length:661
2018-11-25 18:18:48.830 ETag:"d80ede4b54311473bebbb3e264f2e7e9"
2018-11-25 18:18:48.830
2018-11-25 18:18:48.830 {"1":{"ctmax":0,"ctmin":0,"etag":"303bacae7f147508b897eb938a0e95bf","hascolor":true,"manufacturername":"Feibit Inc co.","modelid":"FB56-ZCW08KU1.1","name":"Jiawen","state":{"alert":"none","bri":69,"colormode":"xy","ct":164,"effect":"none","hue":10240,"on":true,"reachable":true,"sat":162,"xy":[0.433646,0.404173]},"swversion":"1.0.2","type":"Extended color light","uniqueid":"00:12:4b:00:14:af:7f:6a-0b"},"2":{"etag":"f0c863c2a7b61babfb83cd22c5a31661","hascolor":false,"manufacturername":"Unknown","modelid":null,"name":"Light 2","state":{"alert":"none","on":false,"reachable":true},"swversion":null,"type":"Smart plug","uniqueid":"00:15:8d:00:01:2a:47:fd-02"}}'
2018-11-25 18:18:48.834 Error: (Python Deconz) 'onMessage' failed 'TypeError':'argument of type 'NoneType' is not iterable'.
2018-11-25 18:18:48.834 Error: (Python Deconz) ----> Line 640 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function onMessage
2018-11-25 18:18:48.834 Error: (Python Deconz) ----> Line 171 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function onMessage
2018-11-25 18:18:48.834 Error: (Python Deconz) ----> Line 356 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function NormalConnexion
any idee to solve it ?
I finally try it today, and i'm facing a error :
Python Deconz) Classic Data : {'1': {'type': 'Extended color light', 'ctmax': 0, 'etag': '303bacae7f147508b897eb938a0e95bf', 'manufacturername': 'Feibit Inc co.', 'swversion': '1.0.2', 'uniqueid': '00:12:4b:00:14:af:7f:6a-0b', 'name': 'Jiawen', 'hascolor': True, 'modelid': 'FB56-ZCW08KU1.1', 'state': {'hue': 10240, 'alert': 'none', 'effect': 'none', 'on': True, 'reachable': True, 'sat': 162, 'xy': [0.433646, 0.404173], 'bri': 69, 'ct': 164, 'colormode': 'xy'}, 'ctmin': 0}, '2': {'name': 'Light 2', 'etag': 'f0c863c2a7b61babfb83cd22c5a31661', 'manufacturername': 'Unknown', 'swversion': None, 'uniqueid': '00:15:8d:00:01:2a:47:fd-02', 'state': {'alert': 'none', 'on': False, 'reachable': True}, 'type': 'Smart plug', 'modelid': None, 'hascolor': False}}
2018-11-25 18:18:48.833 (Python Deconz) ### Device > 1 Name:Jiawen Type:Extended color light Details:{'hue': 10240, 'alert': 'none', 'effect': 'none', 'on': True, 'reachable': True, 'sat': 162, 'xy': [0.433646, 0.404173], 'bri': 69, 'ct': 164, 'colormode': 'xy'}
2018-11-25 18:18:48.833 (Python Deconz) ### Device > 2 Name:Light 2 Type:Smart plug Details:{'alert': 'none', 'on': False, 'reachable': True}
2018-11-25 18:18:48.830 Error: JSON Protocol: Parse Error on 'HTTP/1.1 200 OK
2018-11-25 18:18:48.830 Access-Control-Allow-Origin: *
2018-11-25 18:18:48.830 Content-Type: application/json; charset=utf-8
2018-11-25 18:18:48.830 Content-Length:661
2018-11-25 18:18:48.830 ETag:"d80ede4b54311473bebbb3e264f2e7e9"
2018-11-25 18:18:48.830
2018-11-25 18:18:48.830 {"1":{"ctmax":0,"ctmin":0,"etag":"303bacae7f147508b897eb938a0e95bf","hascolor":true,"manufacturername":"Feibit Inc co.","modelid":"FB56-ZCW08KU1.1","name":"Jiawen","state":{"alert":"none","bri":69,"colormode":"xy","ct":164,"effect":"none","hue":10240,"on":true,"reachable":true,"sat":162,"xy":[0.433646,0.404173]},"swversion":"1.0.2","type":"Extended color light","uniqueid":"00:12:4b:00:14:af:7f:6a-0b"},"2":{"etag":"f0c863c2a7b61babfb83cd22c5a31661","hascolor":false,"manufacturername":"Unknown","modelid":null,"name":"Light 2","state":{"alert":"none","on":false,"reachable":true},"swversion":null,"type":"Smart plug","uniqueid":"00:15:8d:00:01:2a:47:fd-02"}}'
2018-11-25 18:18:48.834 Error: (Python Deconz) 'onMessage' failed 'TypeError':'argument of type 'NoneType' is not iterable'.
2018-11-25 18:18:48.834 Error: (Python Deconz) ----> Line 640 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function onMessage
2018-11-25 18:18:48.834 Error: (Python Deconz) ----> Line 171 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function onMessage
2018-11-25 18:18:48.834 Error: (Python Deconz) ----> Line 356 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function NormalConnexion
any idee to solve it ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: Python Zigbee plugin to give, deCONZ bridge
thx for your plugin.
I finally try it today, and i'm facing a error :
any idee to solve it ?
I finally try it today, and i'm facing a error :
Code: Select all
Python Deconz) Classic Data : {'1': {'type': 'Extended color light', 'ctmax': 0, 'etag': '303bacae7f147508b897eb938a0e95bf', 'manufacturername': 'Feibit Inc co.', 'swversion': '1.0.2', 'uniqueid': '00:12:4b:00:14:af:7f:6a-0b', 'name': 'Jiawen', 'hascolor': True, 'modelid': 'FB56-ZCW08KU1.1', 'state': {'hue': 10240, 'alert': 'none', 'effect': 'none', 'on': True, 'reachable': True, 'sat': 162, 'xy': [0.433646, 0.404173], 'bri': 69, 'ct': 164, 'colormode': 'xy'}, 'ctmin': 0}, '2': {'name': 'Light 2', 'etag': 'f0c863c2a7b61babfb83cd22c5a31661', 'manufacturername': 'Unknown', 'swversion': None, 'uniqueid': '00:15:8d:00:01:2a:47:fd-02', 'state': {'alert': 'none', 'on': False, 'reachable': True}, 'type': 'Smart plug', 'modelid': None, 'hascolor': False}}
2018-11-25 18:18:48.833 (Python Deconz) ### Device > 1 Name:Jiawen Type:Extended color light Details:{'hue': 10240, 'alert': 'none', 'effect': 'none', 'on': True, 'reachable': True, 'sat': 162, 'xy': [0.433646, 0.404173], 'bri': 69, 'ct': 164, 'colormode': 'xy'}
2018-11-25 18:18:48.833 (Python Deconz) ### Device > 2 Name:Light 2 Type:Smart plug Details:{'alert': 'none', 'on': False, 'reachable': True}
2018-11-25 18:18:48.830 Error: JSON Protocol: Parse Error on 'HTTP/1.1 200 OK
2018-11-25 18:18:48.830 Access-Control-Allow-Origin: *
2018-11-25 18:18:48.830 Content-Type: application/json; charset=utf-8
2018-11-25 18:18:48.830 Content-Length:661
2018-11-25 18:18:48.830 ETag:"d80ede4b54311473bebbb3e264f2e7e9"
2018-11-25 18:18:48.830
2018-11-25 18:18:48.830 {"1":{"ctmax":0,"ctmin":0,"etag":"303bacae7f147508b897eb938a0e95bf","hascolor":true,"manufacturername":"Feibit Inc co.","modelid":"FB56-ZCW08KU1.1","name":"Jiawen","state":{"alert":"none","bri":69,"colormode":"xy","ct":164,"effect":"none","hue":10240,"on":true,"reachable":true,"sat":162,"xy":[0.433646,0.404173]},"swversion":"1.0.2","type":"Extended color light","uniqueid":"00:12:4b:00:14:af:7f:6a-0b"},"2":{"etag":"f0c863c2a7b61babfb83cd22c5a31661","hascolor":false,"manufacturername":"Unknown","modelid":null,"name":"Light 2","state":{"alert":"none","on":false,"reachable":true},"swversion":null,"type":"Smart plug","uniqueid":"00:15:8d:00:01:2a:47:fd-02"}}'
2018-11-25 18:18:48.834 Error: (Python Deconz) 'onMessage' failed 'TypeError':'argument of type 'NoneType' is not iterable'.
2018-11-25 18:18:48.834 Error: (Python Deconz) ----> Line 640 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function onMessage
2018-11-25 18:18:48.834 Error: (Python Deconz) ----> Line 171 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function onMessage
2018-11-25 18:18:48.834 Error: (Python Deconz) ----> Line 356 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function NormalConnexion
any idee to solve it ?
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 815
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: Python Zigbee plugin to give, deCONZ bridge
Yep, my bad. The yesterday update have make 60% of the code unusable. Was sure about code, bad idea.
I think ATM, your problem is solved too, you can try with the online version.
Sorry for that. But IDK what is your device ?
{"etag":"f0c863c2a7b61babfb83cd22c5a31661","hascolor":false,"manufacturername":"Unknown","modelid":null,"name":"Light 2","state":{"alert":"none","on":false,"reachable":true},"swversion":null,"type":"Smart plug","uniqueid":"00:15:8d:00:01:2a:47:fd-02"}}'
Realy few informations ? not supported by deCONZ yet ?
I think ATM, your problem is solved too, you can try with the online version.
Sorry for that. But IDK what is your device ?
{"etag":"f0c863c2a7b61babfb83cd22c5a31661","hascolor":false,"manufacturername":"Unknown","modelid":null,"name":"Light 2","state":{"alert":"none","on":false,"reachable":true},"swversion":null,"type":"Smart plug","uniqueid":"00:15:8d:00:01:2a:47:fd-02"}}'
Realy few informations ? not supported by deCONZ yet ?
-
- Posts: 3
- Joined: Thursday 29 November 2018 17:15
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)
Thanks for the great work!
I have a SmartThings hub in another house and now I'm evaluating Domoticz, HA and possible HS and OpenHAB as well in other house since I'm curious and had some HW like z-stick laying around. I also happen to have alot of IKEA Trådfri lights and have a good experience of them from the ST house (good quality vs price)!
So naturally I wanted to get IKEA trådfri to work in whatever controller I tried. Generally speaking everything worked in HA, even with IKEA gateway but it's a pain to work with HA (IMHO) as soon as I want to do some automation or just add something completely new. I feel like I can do something in Domoticz in just a few minutes compared to couple hours on HA.
Now I'm running a Domoticz docker on Unraid and have Aeotec z-stick, Connbee and RFXtrx433XL connected. I first tried to get IKEA plugin running in other docker but ran into various problem. So now with Connbee and this excellent plugin I was able to connect my IKEA lights directly and so far everything seems to work.
If it wasn't for this I think I would have ended up with something else but now I will give Domoticz a serious run! So thanks again!
I have a SmartThings hub in another house and now I'm evaluating Domoticz, HA and possible HS and OpenHAB as well in other house since I'm curious and had some HW like z-stick laying around. I also happen to have alot of IKEA Trådfri lights and have a good experience of them from the ST house (good quality vs price)!
So naturally I wanted to get IKEA trådfri to work in whatever controller I tried. Generally speaking everything worked in HA, even with IKEA gateway but it's a pain to work with HA (IMHO) as soon as I want to do some automation or just add something completely new. I feel like I can do something in Domoticz in just a few minutes compared to couple hours on HA.
Now I'm running a Domoticz docker on Unraid and have Aeotec z-stick, Connbee and RFXtrx433XL connected. I first tried to get IKEA plugin running in other docker but ran into various problem. So now with Connbee and this excellent plugin I was able to connect my IKEA lights directly and so far everything seems to work.
If it wasn't for this I think I would have ended up with something else but now I will give Domoticz a serious run! So thanks again!
-
- Posts: 815
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)
NP, but you can thank the deCONZ team, the plugin is just a bridge, all the job is made by their application.
I m exactly like you, I had some problem but their team is so active, fix come quickly. Every month you have new hardware/functionnality/fix, it s realy a project to follow.
I m exactly like you, I had some problem but their team is so active, fix come quickly. Every month you have new hardware/functionnality/fix, it s realy a project to follow.
Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)
After update and reboot of my raspberry and deconz rest api the following error message happend:
2018-12-13 12:00:44.220 (conbee) onMessage called
2018-12-13 12:00:44.221 (conbee) Pushing 'DisconnectDirective' on to queue
2018-12-13 12:00:44.221 (conbee) Classic Data : {}
2018-12-13 12:00:44.221 (conbee) Processing 'DisconnectDirective' message
2018-12-13 12:00:44.221 (conbee) Disconnect directive received for '172.16.22.226:80'.
2018-12-13 12:00:44.221 (conbee) Handling disconnect, socket (172.16.22.226:80) is connected
2018-12-13 12:00:44.221 (conbee) Queued asyncronous read aborted (172.16.22.226:80).
2018-12-13 12:00:44.221 (conbee) Pushing 'DisconnectedEvent' on to queue
2018-12-13 12:00:44.271 (conbee) Processing 'DisconnectedEvent' message
2018-12-13 12:00:44.271 (conbee) Disconnect event received for '172.16.22.226:80'.
2018-12-13 12:00:44.272 (conbee) Pushing 'onDisconnectCallback' on to queue
2018-12-13 12:00:44.272 (conbee) Processing 'onDisconnectCallback' message
2018-12-13 12:00:44.272 (conbee) Calling message handler 'onDisconnect'.
2018-12-13 12:00:44.221 Error: (conbee) 'onMessage' failed 'StopIteration'.
2018-12-13 12:00:44.221 Error: (conbee) ----> Line 665 in /home/dahl/domoticz/plugins/Domoticz-deCONZ/plugin.py, function onMessage
2018-12-13 12:00:44.221 Error: (conbee) ----> Line 180 in /home/dahl/domoticz/plugins/Domoticz-deCONZ/plugin.py, function onMessage
2018-12-13 12:00:44.221 Error: (conbee) ----> Line 459 in /home/dahl/domoticz/plugins/Domoticz-deCONZ/plugin.py, function NormalConnexion
Tried to reboot / re add / update the plugin but nothing work.
2018-12-13 12:00:44.220 (conbee) onMessage called
2018-12-13 12:00:44.221 (conbee) Pushing 'DisconnectDirective' on to queue
2018-12-13 12:00:44.221 (conbee) Classic Data : {}
2018-12-13 12:00:44.221 (conbee) Processing 'DisconnectDirective' message
2018-12-13 12:00:44.221 (conbee) Disconnect directive received for '172.16.22.226:80'.
2018-12-13 12:00:44.221 (conbee) Handling disconnect, socket (172.16.22.226:80) is connected
2018-12-13 12:00:44.221 (conbee) Queued asyncronous read aborted (172.16.22.226:80).
2018-12-13 12:00:44.221 (conbee) Pushing 'DisconnectedEvent' on to queue
2018-12-13 12:00:44.271 (conbee) Processing 'DisconnectedEvent' message
2018-12-13 12:00:44.271 (conbee) Disconnect event received for '172.16.22.226:80'.
2018-12-13 12:00:44.272 (conbee) Pushing 'onDisconnectCallback' on to queue
2018-12-13 12:00:44.272 (conbee) Processing 'onDisconnectCallback' message
2018-12-13 12:00:44.272 (conbee) Calling message handler 'onDisconnect'.
2018-12-13 12:00:44.221 Error: (conbee) 'onMessage' failed 'StopIteration'.
2018-12-13 12:00:44.221 Error: (conbee) ----> Line 665 in /home/dahl/domoticz/plugins/Domoticz-deCONZ/plugin.py, function onMessage
2018-12-13 12:00:44.221 Error: (conbee) ----> Line 180 in /home/dahl/domoticz/plugins/Domoticz-deCONZ/plugin.py, function onMessage
2018-12-13 12:00:44.221 Error: (conbee) ----> Line 459 in /home/dahl/domoticz/plugins/Domoticz-deCONZ/plugin.py, function NormalConnexion
Tried to reboot / re add / update the plugin but nothing work.
Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)
After recompile of deconz rest plugin, and, copy of the .so file it started to work again
-
- Posts: 815
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)
Hu, I rly don't understand what happened.
You have this error because the json response was empty, but I can't explain why, neither why the recomplilation have changed something, perhaps an old version ? I m puting a try/exept in code to prevent this script blocking, but It's rly strange.
On my side I have never recomplied the plugin, I just install the new version over the older (every 3/4 versions).
Nevermind, thx for finding bug , I hope you will not have more bug with your strip.
You have this error because the json response was empty, but I can't explain why, neither why the recomplilation have changed something, perhaps an old version ? I m puting a try/exept in code to prevent this script blocking, but It's rly strange.
On my side I have never recomplied the plugin, I just install the new version over the older (every 3/4 versions).
Nevermind, thx for finding bug , I hope you will not have more bug with your strip.
-
- Posts: 3
- Joined: Wednesday 19 December 2018 19:36
- Target OS: Windows
- Domoticz version: 4.9700
- Location: Sweden
- Contact:
Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)
@Thorgal789 Hi, I'm recently bought a Conbee Zigbee controller to try it out with Domoticz that I'm currently running on a Win 2012R2 srv. But I'm having problem to get the plugin to show up in the h/w list, at least not under deConz, domoticz Bridge or anything similar.
Domoticz stable ver. 4.9700 running on WinSrv 2012R2
Controllers: Zwave.me UZB1 | Conbee Zigbee
Zwave: Zwave.me - Fibaro - Qbino - Telldus | Zigbee: innr - IKEA trådfri
Controllers: Zwave.me UZB1 | Conbee Zigbee
Zwave: Zwave.me - Fibaro - Qbino - Telldus | Zigbee: innr - IKEA trådfri
-
- Posts: 564
- Joined: Sunday 11 December 2016 13:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)
Does anyone know if its possible to change color from domoticz?
I have Ikea rgb lamp
I have Ikea rgb lamp
-
- Posts: 815
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)
@tjabas, yep, it works with this plugin, temperature color and RGb color. Make a try, you just need 5mn to test it, like I have said on the other topic you have nothing to do, no pair, no setting, all is always done in deconz in your case.
@s4xp, it's called "deCONZ plugin" in hardware. Have you correctly installed it ? If yes you will have a file path like this one
.../domoticz/plugins/deCONZ/plugin.py
IDK if the git command work on windows, but you can just download files and copy them at good place
@s4xp, it's called "deCONZ plugin" in hardware. Have you correctly installed it ? If yes you will have a file path like this one
.../domoticz/plugins/deCONZ/plugin.py
IDK if the git command work on windows, but you can just download files and copy them at good place
-
- Posts: 3
- Joined: Wednesday 19 December 2018 19:36
- Target OS: Windows
- Domoticz version: 4.9700
- Location: Sweden
- Contact:
Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)
Okey, then I can't see it in the h/w list. The plugin.py is downloaded and placed in the exact path as you described "../Domoticz/plugins/deCONZ/plugin.py", together with the API_KEY.py, banned_devices.txt and fonctions.py.Thorgal789 wrote: ↑Thursday 20 December 2018 17:00 @s4xp, it's called "deCONZ plugin" in hardware. Have you correctly installed it ? If yes you will have a file path like this one
.../domoticz/plugins/deCONZ/plugin.py
IDK if the git command work on windows, but you can just download files and copy them at good place
Don't understand why it won't work, but also first time for me working with plugins in Domotics..
Any other ideas?
Domoticz stable ver. 4.9700 running on WinSrv 2012R2
Controllers: Zwave.me UZB1 | Conbee Zigbee
Zwave: Zwave.me - Fibaro - Qbino - Telldus | Zigbee: innr - IKEA trådfri
Controllers: Zwave.me UZB1 | Conbee Zigbee
Zwave: Zwave.me - Fibaro - Qbino - Telldus | Zigbee: innr - IKEA trådfri
-
- Posts: 564
- Joined: Sunday 11 December 2016 13:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)
i have installed it now but i get these error logs:
2018-12-20 21:27:36.172 Status: (deCONZ) Stop directive received.
2018-12-20 21:27:36.255 Status: (deCONZ) onDisconnect called for Name: 'deCONZ_WebSocket', Transport: 'TCP/IP', Protocol: 'None', Address: '192.168.1.119', Port: '8088', Baud: -1, Connected: False
2018-12-20 21:27:36.300 Status: (deCONZ) Exiting work loop.
2018-12-20 21:27:36.372 Status: (deCONZ) Stopping threads.
2018-12-20 21:27:36.372 Status: (deCONZ) Stopped.
2018-12-20 21:27:36.372 Status: (deCONZ) Started.
2018-12-20 21:27:36.545 Status: (deCONZ) Entering work loop.
2018-12-20 21:27:36.545 Status: (deCONZ) Initialized version 1.0.0, author 'Smanar'
2018-12-20 21:27:36.598 Status: (deCONZ) Laucnhing websocket
2018-12-20 21:27:36.256 Error: CConnection_disconnect, disconnection request from 'deCONZ' ignored. Transport does not exist.
And this:
2018-12-20 21:27:46.070 Error: (deCONZ) deCONZ error :{'error': {'address': '/lights', 'type': 1, 'description': 'unauthorized user'}}
2018-12-20 21:27:46.070 Error: (deCONZ): Socket Shutdown Error: 9, Bad file descriptor
And this:
018-12-20 21:30:02.770 (deCONZ) ###### WebSocket Data : {'state': {'on': False}, 'r': 'lights', 't': 'event', 'id': '1', 'e': 'changed', 'uniqueid': '00:0b:57:ff:fe:8a:7c:2f-01'}
2018-12-20 21:30:02.770 (deCONZ) Banned device > 1 (lights)
2018-12-20 21:30:02.771 (deCONZ) ###### WebSocket Data : {'state': {'all_on': False}, 'e': 'changed', 'r': 'groups', 't': 'event', 'id': '1'}
2018-12-20 21:30:02.771 (deCONZ) Banned device > 1 (groups)
2018-12-20 21:30:02.772 (deCONZ) ###### WebSocket Data : {'state': {'any_on': False}, 'e': 'changed', 'r': 'groups', 't': 'event', 'id': '1'}
2018-12-20 21:30:02.772 (deCONZ) Banned device > 1 (groups)
2018-12-20 21:30:03.417 (Aeon zwave) General/kWh (kWh Meter)
2018-12-20 21:30:03.925 (deCONZ) ###### WebSocket Data : {'state': {'on': True}, 'r': 'lights', 't': 'event', 'id': '1', 'e': 'changed', 'uniqueid': '00:0b:57:ff:fe:8a:7c:2f-01'}
2018-12-20 21:30:03.925 (deCONZ) Banned device > 1 (lights)
2018-12-20 21:30:03.925 (deCONZ) ###### WebSocket Data : {'state': {'all_on': True}, 'e': 'changed', 'r': 'groups', 't': 'event', 'id': '1'}
2018-12-20 21:30:03.925 (deCONZ) Banned device > 1 (groups)
2018-12-20 21:30:03.926 (deCONZ) ###### WebSocket Data : {'state': {'any_on': True}, 'e': 'changed', 'r': 'groups', 't': 'event', 'id': '1'}
2018-12-20 21:30:03.926 (deCONZ) Banned device > 1 (groups)
do you have any suggestions?
2018-12-20 21:27:36.172 Status: (deCONZ) Stop directive received.
2018-12-20 21:27:36.255 Status: (deCONZ) onDisconnect called for Name: 'deCONZ_WebSocket', Transport: 'TCP/IP', Protocol: 'None', Address: '192.168.1.119', Port: '8088', Baud: -1, Connected: False
2018-12-20 21:27:36.300 Status: (deCONZ) Exiting work loop.
2018-12-20 21:27:36.372 Status: (deCONZ) Stopping threads.
2018-12-20 21:27:36.372 Status: (deCONZ) Stopped.
2018-12-20 21:27:36.372 Status: (deCONZ) Started.
2018-12-20 21:27:36.545 Status: (deCONZ) Entering work loop.
2018-12-20 21:27:36.545 Status: (deCONZ) Initialized version 1.0.0, author 'Smanar'
2018-12-20 21:27:36.598 Status: (deCONZ) Laucnhing websocket
2018-12-20 21:27:36.256 Error: CConnection_disconnect, disconnection request from 'deCONZ' ignored. Transport does not exist.
And this:
2018-12-20 21:27:46.070 Error: (deCONZ) deCONZ error :{'error': {'address': '/lights', 'type': 1, 'description': 'unauthorized user'}}
2018-12-20 21:27:46.070 Error: (deCONZ): Socket Shutdown Error: 9, Bad file descriptor
And this:
018-12-20 21:30:02.770 (deCONZ) ###### WebSocket Data : {'state': {'on': False}, 'r': 'lights', 't': 'event', 'id': '1', 'e': 'changed', 'uniqueid': '00:0b:57:ff:fe:8a:7c:2f-01'}
2018-12-20 21:30:02.770 (deCONZ) Banned device > 1 (lights)
2018-12-20 21:30:02.771 (deCONZ) ###### WebSocket Data : {'state': {'all_on': False}, 'e': 'changed', 'r': 'groups', 't': 'event', 'id': '1'}
2018-12-20 21:30:02.771 (deCONZ) Banned device > 1 (groups)
2018-12-20 21:30:02.772 (deCONZ) ###### WebSocket Data : {'state': {'any_on': False}, 'e': 'changed', 'r': 'groups', 't': 'event', 'id': '1'}
2018-12-20 21:30:02.772 (deCONZ) Banned device > 1 (groups)
2018-12-20 21:30:03.417 (Aeon zwave) General/kWh (kWh Meter)
2018-12-20 21:30:03.925 (deCONZ) ###### WebSocket Data : {'state': {'on': True}, 'r': 'lights', 't': 'event', 'id': '1', 'e': 'changed', 'uniqueid': '00:0b:57:ff:fe:8a:7c:2f-01'}
2018-12-20 21:30:03.925 (deCONZ) Banned device > 1 (lights)
2018-12-20 21:30:03.925 (deCONZ) ###### WebSocket Data : {'state': {'all_on': True}, 'e': 'changed', 'r': 'groups', 't': 'event', 'id': '1'}
2018-12-20 21:30:03.925 (deCONZ) Banned device > 1 (groups)
2018-12-20 21:30:03.926 (deCONZ) ###### WebSocket Data : {'state': {'any_on': True}, 'e': 'changed', 'r': 'groups', 't': 'event', 'id': '1'}
2018-12-20 21:30:03.926 (deCONZ) Banned device > 1 (groups)
do you have any suggestions?
-
- Posts: 815
- Joined: Wednesday 15 August 2018 14:38
- Target OS: -
- Domoticz version:
- Contact:
Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)
@s4xp, I had a similiar bug on my first instal because of python version on windows. Just take a look at log, just after Domoticz starting, if the problem come from that, it will be on first logs.
@tjabas, you have enter a bad API key.
http://dresden-elektronik.github.io/dec ... uireapikey
or you can use the API_KEY.py file to get one
To check if your api works, you can just take a look in a browser. For exemple
http://{deCONZ_IP:PORT}/api/{API_kEY}/lights
h ttp://192.168.1.1:80/api/36E138295E/lights for me
If you still have description': 'unauthorized user' , still bad key. Other error message aren't important.
@tjabas, you have enter a bad API key.
http://dresden-elektronik.github.io/dec ... uireapikey
or you can use the API_KEY.py file to get one
To check if your api works, you can just take a look in a browser. For exemple
http://{deCONZ_IP:PORT}/api/{API_kEY}/lights
h ttp://192.168.1.1:80/api/36E138295E/lights for me
If you still have description': 'unauthorized user' , still bad key. Other error message aren't important.
-
- Posts: 3
- Joined: Wednesday 19 December 2018 19:36
- Target OS: Windows
- Domoticz version: 4.9700
- Location: Sweden
- Contact:
Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)
@Thorgal789, I've solved it and it was embarrassingly easy.. I forgot to install the Python runtime for my server..
Now I'll start testing it all out!
Now I'll start testing it all out!
Domoticz stable ver. 4.9700 running on WinSrv 2012R2
Controllers: Zwave.me UZB1 | Conbee Zigbee
Zwave: Zwave.me - Fibaro - Qbino - Telldus | Zigbee: innr - IKEA trådfri
Controllers: Zwave.me UZB1 | Conbee Zigbee
Zwave: Zwave.me - Fibaro - Qbino - Telldus | Zigbee: innr - IKEA trådfri
-
- Posts: 564
- Joined: Sunday 11 December 2016 13:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)
Hello!
im running this script and its working great, i get some errors in the log file though,
it says:
2018-12-22 12:00:57.469 Error: EventSystem: Malformed action sequence!
2018-12-22 12:00:57.482 Error: EventSystem: Malformed action sequence!
2018-12-22 12:00:57.488 Error: EventSystem: Malformed action sequence!
2018-12-22 12:05:43.636 Error: (deCONZ) Data : {"e":"changed","id":"2","r":"lights","state":{"reachable":True},"t":"event","uniqueid":"00:0b:57:ff:fe:95:b8:03-01"}t{"e":"changed","id":"3","r":"lights","state":{"reachable":True},"t":"event","uniqueid":"00:0b:57:ff:fe:97:16:80-01"}t{"e":"changed","id":"3","r":"lights","state":{"reachable":True},"t":"event","uniqueid":"00:0b:57:ff:fe:97:16:80-01"}
2018-12-22 12:05:43.636 Error: (deCONZ) Response not JSON format
i get this every time a light has been turned on.
im running this script and its working great, i get some errors in the log file though,
it says:
2018-12-22 12:00:57.469 Error: EventSystem: Malformed action sequence!
2018-12-22 12:00:57.482 Error: EventSystem: Malformed action sequence!
2018-12-22 12:00:57.488 Error: EventSystem: Malformed action sequence!
2018-12-22 12:05:43.636 Error: (deCONZ) Data : {"e":"changed","id":"2","r":"lights","state":{"reachable":True},"t":"event","uniqueid":"00:0b:57:ff:fe:95:b8:03-01"}t{"e":"changed","id":"3","r":"lights","state":{"reachable":True},"t":"event","uniqueid":"00:0b:57:ff:fe:97:16:80-01"}t{"e":"changed","id":"3","r":"lights","state":{"reachable":True},"t":"event","uniqueid":"00:0b:57:ff:fe:97:16:80-01"}
2018-12-22 12:05:43.636 Error: (deCONZ) Response not JSON format
i get this every time a light has been turned on.
-
- Posts: 564
- Joined: Sunday 11 December 2016 13:51
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Python Zigbee plugin, deCONZ bridge (Using Conbee or Raspbee)
i tried that an i got a humongous amount of data, so i guess it works?Thorgal789 wrote: ↑Friday 21 December 2018 15:42 @s4xp, I had a similiar bug on my first instal because of python version on windows. Just take a look at log, just after Domoticz starting, if the problem come from that, it will be on first logs.
@tjabas, you have enter a bad API key.
http://dresden-elektronik.github.io/dec ... uireapikey
or you can use the API_KEY.py file to get one
To check if your api works, you can just take a look in a browser. For exemple
http://{deCONZ_IP:PORT}/api/{API_kEY}/lights
h ttp://192.168.1.1:80/api/36E138295E/lights for me
If you still have description': 'unauthorized user' , still bad key. Other error message aren't important.
Who is online
Users browsing this forum: No registered users and 0 guests