Smanar / Domoticz-deCONZ

deCONZ plugin for Domoticz (Zigbee application)
GNU General Public License v3.0
36 stars 26 forks source link

Error with plugin.py and fonctions #3

Closed stefan1957 closed 5 years ago

stefan1957 commented 5 years ago

Hi, Thx for your plugin. Can you tell me what's going wrong in Domoticz with your plugin. I can see all the devices from DeCONZ in Domoticz but they don't react

2019-01-19 15:36:15.006 Error: (Sensoren) 'onMessage' failed 'ZeroDivisionError':'integer division or modulo by zero'. 2019-01-19 15:36:15.007 Error: (Sensoren) ----> Line 704 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function onMessage 2019-01-19 15:36:15.007 Error: (Sensoren) ----> Line 191 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function onMessage 2019-01-19 15:36:15.007 Error: (Sensoren) ----> Line 502 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function NormalConnexion 2019-01-19 15:36:15.007 Error: (Sensoren) ----> Line 390 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function InitDeconz 2019-01-19 15:36:15.007 Error: (Sensoren) ----> Line 198 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/fonctions.py', function ProcessAllState 2019-01-19 15:36:15.007 Error: (Sensoren) ----> Line 268 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/fonctions.py', function ReturnUpdateValue

Thx in advance Gr Stefan

Smanar commented 5 years ago

Hello, can you give me the line with ct and zero value, if you can ?

 2019-01-19 18:26:20.436 (deCONZ) ### Device > 5 Name:Motion Sensor Type:ZHAPresence Details:{'presence': False, 'lastupdated': '2019-01-19T16:56:52'}
2019-01-19 18:26:20.436 (deCONZ) ### Update device (deCONZ - Motion Sensor) : {'BatteryLevel': 100, 'sValue': 'Off', 'nValue': 0} 

Something like that but with 'ct':0 or 'ct':false

I have already updated the code (so it will work on your system now, I think), but your situation have something strange and theses lines will be helpfull for me.

stefan1957 commented 5 years ago

Hello,

something like this?

2019-01-19 19:02:48.287 (DeConz Plugin) ### Request lights

2019-01-19 19:02:48.288 (DeConz Plugin) Send Command /api/xxxxxxxxx/lights/ with None

2019-01-19 19:02:48.339 (DeConz Plugin) onConnect called

2019-01-19 19:02:48.339 (DeConz Plugin) onConnect called

2019-01-19 19:02:48.423 (DeConz Plugin) Classic Data : {'34': {'modelid': 'TRADFRI transformer 30W', 'type': 'Dimmable light', 'hascolor': False, 'state': {'bri': 71, 'on': True, 'alert': 'none', 'reachable': True}, 'manufacturername': 'IKEA of Sweden', 'etag': '368ba74e2d488741034e9106543606d2', 'swversion': '1.2.245', 'name': 'Keukenspot', 'uniqueid': '00:0b:57:ff:fe:84:48:19-01'}, '21': {'modelid': 'LWB006', 'type': 'Dimmable light', 'hascolor': False, 'state': {'bri': 137, 'on': False, 'alert': 'none', 'reachable': True}, 'manufacturername': 'Philips', 'etag': '1b6b856323742d711b5340e00f2c149f', 'swversion': '5.105.0.21169', 'name': 'Logeer Kamer', 'uniqueid': '00:17:88:01:10:58:a6:66-0b'}, '33': {'modelid': 'SmartPlug', 'type': 'Smart plug', 'hascolor': False, 'state': {'on': False, 'alert': 'none', 'reachable': True}, 'manufacturername': 'Heiman', 'etag': '1b6b856323742d711b5340e00f2c149f', 'swversion': '2017.9.14', 'name': 'Spotjes schuur', 'uniqueid': '00:0d:6f:00:0d:3d:9b:99-01'}, '30': {'modelid': 'Plug 01', 'type': 'On/Off plug-in unit', 'hascolor': False, 'state': {'on': False, 'alert': 'none', 'reachable': True}, 'manufacturername': 'OSRAM', 'etag': '455b260560c557e966d801d2f933b437', 'swversion': 'V1.04.12', 'name': 'Lamp Bed', 'uniqueid': '84:18:26:00:00:0d:a7:b8-03'}, '3': {'modelid': 'TRADFRI bulb GU10 WS 400lm', 'ctmax': 454, 'hascolor': True, 'state': {'on': False, 'colormode': 'ct', 'ct': 454, 'reachable': True, 'bri': 254, 'alert': 'none'}, 'manufacturername': 'IKEA of Sweden', 'etag': '1b6b856323742d711b5340e00f2c149f', 'swversion': '1.2.217', 'name': 'Vijver', 'type': 'Color temperature light', 'ctmin': 250, 'uniqueid': '00:0b:57:ff:fe:e1:b0:54-01'}, '5': {'modelid': 'TRADFRI bulb GU10 W 400lm', 'type': 'Dimmable light', 'hascolor': False, 'state': {'bri': 152, 'on': False, 'alert': 'none', 'reachable': True}, 'manufacturername': 'IKEA of Sweden', 'etag': '66abbe71799dafb0c8243b7d35d145f7', 'swversion': '1.2.214', 'name': 'Keuken buiten', 'uniqueid': '00:0b:57:ff:fe:be:cb:19-01'}, '6': {'modelid': 'HML006', 'ctmax': 454, 'hascolor': True, 'state': {'on': False, 'colormode': 'ct', 'ct': 400, 'reachable': True, 'bri': 254, 'alert': 'none'}, 'manufacturername': 'Philips', 'etag': '1b6b856323742d711b5340e00f2c149f', 'swversion': '5.38.1.14169', 'name': 'Stoel', 'type': 'Color temperature light', 'ctmin': 153, 'uniqueid': '00:17:88:01:00:e3:e5:98-0b'}, '2': {'modelid': 'TRADFRI bulb GU10 WS 400lm', 'ctmax': 454, 'hascolor': True, 'state': {'on': False, 'colormode': 'ct', 'ct': 454, 'reachable': True, 'bri': 157, 'alert': 'none'}, 'manufacturername': 'IKEA of Sweden', 'etag': '1b6b856323742d711b5340e00f2c149f', 'swversion': '1.2.217', 'name': 'Schuur', 'type': 'Color temperature light', 'ctmin': 250, 'uniqueid': '00:0b:57:ff:fe:e9:0d:13-01'}, '8': {'modelid': 'HML006', 'ctmax': 454, 'hascolor': True, 'state': {'on': False, 'colormode': 'ct', 'ct': 400, 'reachable': True, 'bri': 254, 'alert': 'none'}, 'manufacturername': 'Philips', 'etag': '1b6b856323742d711b5340e00f2c149f', 'swversion': '5.38.1.14169', 'name': 'Prullenbak', 'type': 'Color temperature light', 'ctmin': 153, 'uniqueid': '00:17:88:01:10:55:76:fc-0b'}, '9': {'modelid': 'HML006', 'ctmax': 454, 'hascolor': True, 'state': {'on': False, 'colormode': 'ct', 'ct': 400, 'reachable': True, 'bri': 254, 'alert': 'none'}, 'manufacturername': 'Philips', 'etag': '1b6b856323742d711b5340e00f2c149f', 'swversion': '5.38.1.14169', 'name': 'Plant', 'type': 'Color temperature light', 'ctmin': 153, 'uniqueid': '00:17:88:01:10:37:e4:9a-0b'}, '35': {'modelid': 'SmartPlug', 'type': 'Smart plug', 'hascolor': False, 'state': {'on': True, 'alert': 'none', 'reachable': True}, 'manufacturername': 'Heiman', 'etag': '1b6b856323742d711b5340e00f2c149f', 'swversion': '2017.9.14', 'name': 'Versterker', 'uniqueid': '00:0d:6f:00:0d:3d:74:1b-01'}, '4': {'modelid': 'TRADFRI bulb GU10 W 400lm', 'type': 'Dimmable light', 'hascolor': False, 'state': {'bri': 254, 'on': False, 'alert': 'none', 'reachable': True}, 'manufacturername': 'IKEA of Sweden', 'etag': '9967e1ac1a6f6ce7e2966cc4e9920493', 'swversion': '1.2.214', 'name': 'CV', 'uniqueid': '00:0b:57:ff:fe:c0:c1:38-01'}, '29': {'modelid': 'Plug 01', 'type': 'On/Off plug-in unit', 'hascolor': False, 'state': {'on': False, 'alert': 'none', 'reachable': True}, 'manufacturername': 'OSRAM', 'etag': 'e37806ae743032a2eaab3e62afd2bbe0', 'swversion': 'V1.04.12', 'name': 'Schuifdeur Kast', 'uniqueid': '84:18:26:00:00:0d:6f:f1-03'}, '10': {'modelid': 'HML006', 'ctmax': 454, 'hascolor': True, 'state': {'on': False, 'colormode': 'ct', 'ct': 400, 'reachable': True, 'bri': 53, 'alert': 'none'}, 'manufacturername': 'Philips', 'etag': 'b3ee9645d738978ef4b3672d334470e7', 'swversion': '5.38.1.14169', 'name': 'Deur', 'type': 'Color temperature light', 'ctmin': 153, 'uniqueid': '00:17:88:01:10:37:e3:bc-0b'}, '31': {'modelid': 'TRADFRI bulb E27 CWS opal 600lm', 'ctmax': 454, 'hascolor': True, 'state': {'on': False, 'colormode': 'xy', 'sat': 0, 'xy': [0.669986, 0.325296], 'hue': 0, 'bri': 69, 'effect': 'none', 'reachable': True, 'alert': 'none'}, 'manufacturername': 'IKEA of Sweden', 'etag': 'debd4e848fab920e926ffd81e58794d4', 'swversion': '1.3.002', 'name': 'Slaapkamer Kleur', 'type': 'Color light', 'ctmin': 250, 'uniqueid': '90:fd:9f:ff:fe:21:e4:10-01'}, '18': {'modelid': 'GL-C-008', 'ctmax': 0, 'hascolor': True, 'state': {'on': True, 'colormode': 'xy', 'ct': 0, 'xy': [0.316595, 0.315492], 'hue': 35328, 'bri': 28, 'effect': 'none', 'reachable': True, 'alert': 'none', 'sat': 24}, 'manufacturername': 'GLEDOPTO', 'etag': '368ba74e2d488741034e9106543606d2', 'swversion': '1.0.6', 'name': 'Keukenstrip', 'type': 'Extended color light', 'ctmin': 0, 'uniqueid': '00:12:4b:00:1b:91:ec:dd-0b'}, '11': {'modelid': 'HML006', 'ctmax': 454, 'hascolor': True, 'state': {'on': False, 'colormode': 'ct', 'ct': 388, 'reachable': True, 'bri': 254, 'alert': 'none'}, 'manufacturername': 'Philips', 'etag': '1b6b856323742d711b5340e00f2c149f', 'swversion': '5.38.1.14169', 'name': 'Schilderij', 'type': 'Color temperature light', 'ctmin': 153, 'uniqueid': '00:17:88:01:00:e3:e5:c3-0b'}, '32': {'modelid': 'FLOALT pane

2019-01-19 19:02:48.423 (DeConz Plugin) ### Device > 34 Name:Keukenspot Type:Dimmable light Details:{'bri': 71, 'on': True, 'alert': 'none', 'reachable': True}

2019-01-19 19:02:48.423 (DeConz Plugin) ### Update device (DeConz Plugin - Keukenspot) : {'sValue': '27', 'nValue': 1}

2019-01-19 19:02:48.429 (DeConz Plugin) ### Device > 21 Name:Logeer Kamer Type:Dimmable light Details:{'bri': 137, 'on': False, 'alert': 'none', 'reachable': True}

2019-01-19 19:02:48.429 (DeConz Plugin) ### Update device (DeConz Plugin - Logeer Kamer) : {'sValue': '53', 'nValue': 0}

2019-01-19 19:02:48.435 (DeConz Plugin) ### Device > 33 Name:Spotjes schuur Type:Smart plug Details:{'on': False, 'alert': 'none', 'reachable': True}

2019-01-19 19:02:48.435 (DeConz Plugin) ### Update device (DeConz Plugin - Spotjes schuur) : {'sValue': 'off', 'nValue': 0}

2019-01-19 19:02:48.440 (DeConz Plugin) ### Device > 30 Name:Lamp Bed Type:On/Off plug-in unit Details:{'on': False, 'alert': 'none', 'reachable': True}

2019-01-19 19:02:48.440 (DeConz Plugin) ### Update device (DeConz Plugin - Lamp Bed) : {'sValue': 'off', 'nValue': 0}

2019-01-19 19:02:48.445 (DeConz Plugin) ### Device > 3 Name:Vijver Type:Color temperature light Details:{'on': False, 'colormode': 'ct', 'ct': 454, 'reachable': True, 'bri': 254, 'alert': 'none'}

2019-01-19 19:02:48.446 (DeConz Plugin) ### Update device (DeConz Plugin - Vijver) : {'sValue': '99', 'nValue': 0, 'Color': '{"ct":228,"t":0,"ww":0}'}

2019-01-19 19:02:48.451 (DeConz Plugin) ### Device > 5 Name:Keuken buiten Type:Dimmable light Details:{'bri': 152, 'on': False, 'alert': 'none', 'reachable': True}

2019-01-19 19:02:48.452 (DeConz Plugin) ### Update device (DeConz Plugin - Keuken buiten) : {'sValue': '59', 'nValue': 0}

2019-01-19 19:02:48.457 (DeConz Plugin) ### Device > 6 Name:Stoel Type:Color temperature light Details:{'on': False, 'colormode': 'ct', 'ct': 400, 'reachable': True, 'bri': 254, 'alert': 'none'}

2019-01-19 19:02:48.458 (DeConz Plugin) ### Update device (DeConz Plugin - Stoel) : {'sValue': '99', 'nValue': 0, 'Color': '{"ct":212,"t":0,"ww":0}'}

2019-01-19 19:02:48.463 (DeConz Plugin) ### Device > 2 Name:Schuur Type:Color temperature light Details:{'on': False, 'colormode': 'ct', 'ct': 454, 'reachable': True, 'bri': 157, 'alert': 'none'}

2019-01-19 19:02:48.464 (DeConz Plugin) ### Update device (DeConz Plugin - Schuur) : {'sValue': '61', 'nValue': 0, 'Color': '{"ct":228,"t":0,"ww":0}'}

2019-01-19 19:02:48.469 (DeConz Plugin) ### Device > 8 Name:Prullenbak Type:Color temperature light Details:{'on': False, 'colormode': 'ct', 'ct': 400, 'reachable': True, 'bri': 254, 'alert': 'none'}

2019-01-19 19:02:48.470 (DeConz Plugin) ### Update device (DeConz Plugin - Prullenbak) : {'sValue': '99', 'nValue': 0, 'Color': '{"ct":212,"t":0,"ww":0}'}

2019-01-19 19:02:48.475 (DeConz Plugin) ### Device > 9 Name:Plant Type:Color temperature light Details:{'on': False, 'colormode': 'ct', 'ct': 400, 'reachable': True, 'bri': 254, 'alert': 'none'}

2019-01-19 19:02:48.476 (DeConz Plugin) ### Update device (DeConz Plugin - Plant) : {'sValue': '99', 'nValue': 0, 'Color': '{"ct":212,"t":0,"ww":0}'}

2019-01-19 19:02:48.481 (DeConz Plugin) ### Device > 35 Name:Versterker Type:Smart plug Details:{'on': True, 'alert': 'none', 'reachable': True}

2019-01-19 19:02:48.482 (DeConz Plugin) ### Update device (DeConz Plugin - Versterker) : {'sValue': 'on', 'nValue': 1}

2019-01-19 19:02:48.487 (DeConz Plugin) ### Device > 4 Name:CV Type:Dimmable light Details:{'bri': 254, 'on': False, 'alert': 'none', 'reachable': True}

2019-01-19 19:02:48.488 (DeConz Plugin) ### Update device (DeConz Plugin - CV) : {'sValue': '99', 'nValue': 0}

2019-01-19 19:02:48.492 (DeConz Plugin) ### Device > 29 Name:Schuifdeur Kast Type:On/Off plug-in unit Details:{'on': False, 'alert': 'none', 'reachable': True}

2019-01-19 19:02:48.492 (DeConz Plugin) ### Update device (DeConz Plugin - Schuifdeur Kast) : {'sValue': 'off', 'nValue': 0}

2019-01-19 19:02:48.494 (DeConz Plugin) ### Device > 10 Name:Deur Type:Color temperature light Details:{'on': False, 'colormode': 'ct', 'ct': 400, 'reachable': True, 'bri': 53, 'alert': 'none'}

2019-01-19 19:02:48.495 (DeConz Plugin) ### Update device (DeConz Plugin - Deur) : {'sValue': '20', 'nValue': 0, 'Color': '{"ct":212,"t":0,"ww":0}'}

2019-01-19 19:02:48.497 (DeConz Plugin) ### Device > 31 Name:Slaapkamer Kleur Type:Color light Details:{'on': False, 'colormode': 'xy', 'sat': 0, 'xy': [0.669986, 0.325296], 'hue': 0, 'bri': 69, 'effect': 'none', 'reachable': True, 'alert': 'none'}

2019-01-19 19:02:48.498 (DeConz Plugin) ### Update device (DeConz Plugin - Slaapkamer Kleur) : {'sValue': '27', 'nValue': 0, 'Color': '{"b":0,"cw":0,"g":75,"m":3,"r":255,"t":0,"ww":0}'}

2019-01-19 19:02:48.501 (DeConz Plugin) ### Device > 18 Name:Keukenstrip Type:Extended color light Details:{'on': True, 'colormode': 'xy', 'ct': 0, 'xy': [0.316595, 0.315492], 'hue': 35328, 'bri': 28, 'effect': 'none', 'reachable': True, 'alert': 'none', 'sat': 24}

2019-01-19 19:02:48.340 Status: (DeConz Plugin) onDisconnect called for Name: 'deCONZ_WebSocket', Transport: 'TCP/IP', Protocol: 'None', Address: '192.168.2.13', Port: '8088', Baud: -1, Connected: False

2019-01-19 19:02:48.288 Error: (DeConz Plugin) WebSocket Disconnected, reconnexion !

2019-01-19 19:02:48.339 Error: (DeConz Plugin) WebSocket connexion error : Name: 'deCONZ_WebSocket', Transport: 'TCP/IP', Protocol: 'None', Address: '192.168.2.13', Port: '8088', Baud: -1, Bytes: 0, Connected: False, Last Seen: 1970-01-01 01:00:00

2019-01-19 19:02:48.339 Error: (DeConz Plugin) Status : 111 Description : Connection refused

2019-01-19 19:02:48.501 Error: (DeConz Plugin) 'onMessage' failed 'ZeroDivisionError':'integer division or modulo by zero'.

2019-01-19 19:02:48.501 Error: (DeConz Plugin) ----> Line 704 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function onMessage

2019-01-19 19:02:48.501 Error: (DeConz Plugin) ----> Line 191 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function onMessage

2019-01-19 19:02:48.501 Error: (DeConz Plugin) ----> Line 502 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function NormalConnexion

2019-01-19 19:02:48.501 Error: (DeConz Plugin) ----> Line 390 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py', function InitDeconz

2019-01-19 19:02:48.501 Error: (DeConz Plugin) ----> Line 198 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/fonctions.py', function ProcessAllState

2019-01-19 19:02:48.502 Error: (DeConz Plugin) ----> Line 268 in '/home/pi/domoticz/plugins/Domoticz-deCONZ/fonctions.py', function ReturnUpdateValue

Stefan Koopman s.koopman@home.nl

Op 19 jan. 2019, om 18:36 heeft Smanar notifications@github.com het volgende geschreven:

Hello, can you give me the line with ct and zero value, if you can ?

2019-01-19 18:26:20.436 (deCONZ) ### Device > 5 Name:Motion Sensor Type:ZHAPresence Details:{'presence': False, 'lastupdated': '2019-01-19T16:56:52'} 2019-01-19 18:26:20.436 (deCONZ) ### Update device (deCONZ - Motion Sensor) : {'BatteryLevel': 100, 'sValue': 'Off', 'nValue': 0} Something like that but with 'ct':0

I have already updated the code (so it will work on your system now, I think), but your situation have something strange and theses lines will be helpfull for me.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Smanar/Domoticz-deCONZ/issues/3#issuecomment-455799572, or mute the thread https://github.com/notifications/unsubscribe-auth/AjUv09W9x3djHpxxTPcmphJnH1LeB1JXks5vE1engaJpZM4aJK0e.

stefan1957 commented 5 years ago

Hello,

Problem solved the WebSocket should be 443 and it is standard on 8088 now everything is working perfect. Thx so far

Stefan Koopman s.koopman@home.nl

Op 19 jan. 2019, om 18:36 heeft Smanar notifications@github.com het volgende geschreven:

Hello, can you give me the line with ct and zero value, if you can ?

2019-01-19 18:26:20.436 (deCONZ) ### Device > 5 Name:Motion Sensor Type:ZHAPresence Details:{'presence': False, 'lastupdated': '2019-01-19T16:56:52'} 2019-01-19 18:26:20.436 (deCONZ) ### Update device (deCONZ - Motion Sensor) : {'BatteryLevel': 100, 'sValue': 'Off', 'nValue': 0} Something like that but with 'ct':0

I have already updated the code (so it will work on your system now, I think), but your situation have something strange and theses lines will be helpfull for me.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Smanar/Domoticz-deCONZ/issues/3#issuecomment-455799572, or mute the thread https://github.com/notifications/unsubscribe-auth/AjUv09W9x3djHpxxTPcmphJnH1LeB1JXks5vE1engaJpZM4aJK0e.

stefan1957 commented 5 years ago

Hello,

FYI Here some lines with a working plugin

2019-01-19 19:26:39.216 Status: (DeConz Plugin) Started.

2019-01-19 19:26:39.385 Status: (DeConz Plugin) Entering work loop.

2019-01-19 19:26:39.386 Status: (DeConz Plugin) Initialized version 1.0.2, author 'Smanar'

2019-01-19 19:26:39.453 Status: (DeConz Plugin) onDisconnect called for Name: 'deCONZ_WebSocket', Transport: 'TCP/IP', Protocol: 'None', Address: '192.168.2.13', Port: '8088', Baud: -1, Connected: False

2019-01-19 19:26:39.453 Error: (DeConz Plugin) WebSocket connexion error : Name: 'deCONZ_WebSocket', Transport: 'TCP/IP', Protocol: 'None', Address: '192.168.2.13', Port: '8088', Baud: -1, Bytes: 0, Connected: False, Last Seen: 1970-01-01 01:00:00

2019-01-19 19:26:39.453 Error: (DeConz Plugin) Status : 111 Description : Connection refused

2019-01-19 19:26:40.485 (Raspberry meterkast) P1 Smart Meter (Stroom)

2019-01-19 19:26:40.492 Python: Changed: ID: 248 Name: Stroom, Type: 250, subType: 1, switchType: 0, s_value: 5470735;2816659;2264386;5410341;210;0, n_value: 0, n_value_string: 5470735;2816659;2264386;5410341;210;0, last_update_string: 2019-01-19 19:26:40

2019-01-19 19:26:40.492 Python: Number of user_variables: 0

2019-01-19 19:26:40.537 Python: Changed: ID: 191 Name: Internal Temperature, Type: 80, subType: 5, switchType: 0, s_value: 48.9, n_value: 0, n_value_string: 48.9, last_update_string: 2019-01-19 19:26:40

2019-01-19 19:26:40.537 Python: Number of user_variables: 0

2019-01-19 19:26:40.546 Python: Changed: ID: 192 Name: CPU_Usage, Type: 243, subType: 6, switchType: 0, s_value: 3.23, n_value: 0, n_value_string: 3.23, last_update_string: 2019-01-19 19:26:40

2019-01-19 19:26:40.546 Python: Number of user_variables: 0

2019-01-19 19:26:49.609 (DeConz Plugin) ### Device > 2 Name:Schuur Type:Color temperature light Details:{'on': False, 'colormode': 'ct', 'ct': 454, 'reachable': True, 'bri': 157, 'alert': 'none'}

2019-01-19 19:26:49.610 (DeConz Plugin) ### Update device (DeConz Plugin - Schuur) : {'sValue': '61', 'nValue': 0, 'Color': '{"ct":228,"t":0,"ww":0}'}

2019-01-19 19:26:49.618 (DeConz Plugin) ### Device > 8 Name:Prullenbak Type:Color temperature light Details:{'on': False, 'colormode': 'ct', 'ct': 400, 'reachable': True, 'bri': 254, 'alert': 'none'}

2019-01-19 19:26:49.619 (DeConz Plugin) ### Update device (DeConz Plugin - Prullenbak) : {'sValue': '99', 'nValue': 0, 'Color': '{"ct":212,"t":0,"ww":0}'}

2019-01-19 19:26:49.625 (DeConz Plugin) ### Device > 9 Name:Plant Type:Color temperature light Details:{'on': False, 'colormode': 'ct', 'ct': 400, 'reachable': True, 'bri': 254, 'alert': 'none'}

2019-01-19 19:26:49.625 (DeConz Plugin) ### Update device (DeConz Plugin - Plant) : {'sValue': '99', 'nValue': 0, 'Color': '{"ct":212,"t":0,"ww":0}'}

2019-01-19 19:26:49.629 (DeConz Plugin) ### Device > 35 Name:Versterker Type:Smart plug Details:{'on': True, 'alert': 'none', 'reachable': True}

2019-01-19 19:26:49.629 (DeConz Plugin) ### Update device (DeConz Plugin - Versterker) : {'sValue': 'on', 'nValue': 1}

2019-01-19 19:26:49.631 (DeConz Plugin) ### Device > 4 Name:CV Type:Dimmable light Details:{'bri': 254, 'on': False, 'alert': 'none', 'reachable': True}

2019-01-19 19:26:49.632 (DeConz Plugin) ### Update device (DeConz Plugin - CV) : {'sValue': '99', 'nValue': 0}

2019-01-19 19:26:49.634 (DeConz Plugin) ### Device > 29 Name:Schuifdeur Kast Type:On/Off plug-in unit Details:{'on': False, 'alert': 'none', 'reachable': True}

2019-01-19 19:26:49.634 (DeConz Plugin) ### Update device (DeConz Plugin - Schuifdeur Kast) : {'sValue': 'off', 'nValue': 0}

2019-01-19 19:26:49.637 (DeConz Plugin) ### Device > 10 Name:Deur Type:Color temperature light Details:{'on': False, 'colormode': 'ct', 'ct': 400, 'reachable': True, 'bri': 53, 'alert': 'none'}

2019-01-19 19:26:49.637 (DeConz Plugin) ### Update device (DeConz Plugin - Deur) : {'sValue': '20', 'nValue': 0, 'Color': '{"ct":212,"t":0,"ww":0}'}

2019-01-19 19:26:49.640 (DeConz Plugin) ### Device > 31 Name:Slaapkamer Kleur Type:Color light Details:{'on': False, 'colormode': 'xy', 'sat': 0, 'xy': [0.669986, 0.325296], 'hue': 0, 'bri': 69, 'effect': 'none', 'reachable': True, 'alert': 'none'}

2019-01-19 19:26:49.641 (DeConz Plugin) ### Update device (DeConz Plugin - Slaapkamer Kleur) : {'sValue': '27', 'nValue': 0, 'Color': '{"b":0,"cw":0,"g":75,"m":3,"r":255,"t":0,"ww":0}'}

2019-01-19 19:26:49.644 (DeConz Plugin) ### Device > 18 Name:Keukenstrip Type:Extended color light Details:{'on': True, 'colormode': 'xy', 'ct': 0, 'xy': [0.316595, 0.315492], 'hue': 35328, 'bri': 28, 'effect': 'none', 'reachable': True, 'alert': 'none', 'sat': 24}

2019-01-19 19:26:49.645 (DeConz Plugin) ### Update device (DeConz Plugin - Keukenstrip) : {'sValue': '10', 'nValue': 1, 'Color': '{"b":255,"cw":0,"g":242,"m":3,"r":244,"t":0,"ww":0}'}

2019-01-19 19:26:49.648 (DeConz Plugin) ### Device > 11 Name:Schilderij Type:Color temperature light Details:{'on': False, 'colormode': 'ct', 'ct': 388, 'reachable': True, 'bri': 254, 'alert': 'none'}

2019-01-19 19:26:49.648 (DeConz Plugin) ### Update device (DeConz Plugin - Schilderij) : {'sValue': '99', 'nValue': 0, 'Color': '{"ct":208,"t":0,"ww":0}'}

2019-01-19 19:26:49.652 (DeConz Plugin) ### Device > 32 Name:Kelderkast Type:Color temperature light Details:{'on': True, 'colormode': 'ct', 'ct': 454, 'reachable': True, 'bri': 5, 'alert': 'none'}

2019-01-19 19:26:49.652 (DeConz Plugin) ### Update device (DeConz Plugin - Kelderkast) : {'sValue': '1', 'nValue': 1, 'Color': '{"ct":228,"t":0,"ww":0}'}

2019-01-19 19:26:49.655 (DeConz Plugin) ### Device > 7 Name:Koelkast Type:Color temperature light Details:{'on': False, 'colormode': 'ct', 'ct': 400, 'reachable': True, 'bri': 254, 'alert': 'none'}

2019-01-19 19:26:49.655 (DeConz Plugin) ### Update device (DeConz Plugin - Koelkast) : {'sValue': '99', 'nValue': 0, 'Color': '{"ct":212,"t":0,"ww":0}'}

2019-01-19 19:26:49.658 (DeConz Plugin) ### Device > 28 Name:Iris Type:Color light Details:{'on': True, 'colormode': 'xy', 'sat': 254, 'xy': [0.138544, 0.0803168], 'hue': 47104, 'bri': 69, 'effect': 'none', 'reachable': True, 'alert': 'none'}

2019-01-19 19:26:49.659 (DeConz Plugin) ### Update device (DeConz Plugin - Iris) : {'sValue': '27', 'nValue': 1, 'Color': '{"b":255,"cw":0,"g":85,"m":3,"r":15,"t":0,"ww":0}'}

2019-01-19 19:26:49.662 (DeConz Plugin) ### Device > 36 Name:Slaapkamer Type:Dimmable light Details:{'bri': 254, 'on': False, 'alert': 'none', 'reachable': True}

2019-01-19 19:26:49.663 (DeConz Plugin) ### Update device (DeConz Plugin - Slaapkamer) : {'sValue': '99', 'nValue': 0}

2019-01-19 19:26:49.666 (DeConz Plugin) ### Device > 20 Name:Streep Type:Extended color light Details:{'on': True, 'colormode': 'ct', 'ct': 488, 'xy': [0.523338, 0.415647], 'hue': 7286, 'bri': 81, 'effect': 'none', 'reachable': True, 'alert': 'none', 'sat': 220}

2019-01-19 19:26:49.666 (DeConz Plugin) ### Update device (DeConz Plugin - Streep) : {'sValue': '31', 'nValue': 1, 'Color': '{"ct":236,"t":0,"ww":0}'}

2019-01-19 19:26:49.669 (DeConz Plugin) ### Request sensors

2019-01-19 19:26:49.669 (DeConz Plugin) Send Command /api/xxxxxxxxxxxx/sensors/ with None

2019-01-19 19:26:49.720 (DeConz Plugin) onConnect called

2019-01-19 19:26:49.794 (DeConz Plugin) Classic Data : {'1': {'modelid': 'PHDL00', 'config': {'on': True, 'sunriseoffset': 30, 'sunsetoffset': -30, 'configured': True}, 'swversion': '1.0', 'state': {'daylight': False, 'lastupdated': '2019-01-19T17:57:28', 'dark': True, 'status': 230}, 'manufacturername': 'Philips', 'etag': '887ac40b22a1ffcbf8f62481a484d0d5', 'name': 'Daylight', 'type': 'Daylight', 'uniqueid': '00:21:2e:ff:ff:00:88:0e-01'}, '12': {'modelid': 'lumi.sensor_magnet.aq2', 'config': {'on': True, 'temperature': 1600, 'reachable': True, 'battery': 95}, 'swversion': '20161128', 'state': {'open': False, 'lastupdated': '2019-01-19T18:06:50'}, 'manufacturername': 'LUMI', 'etag': '2bb0ca9f2b6184e578e492e38b4129da', 'name': 'Kastdeur', 'type': 'ZHAOpenClose', 'ep': 1, 'uniqueid': '00:15:8d:00:01:b1:45:c3-01-0006'}, '19': {'modelid': 'SmartPlug', 'config': {'on': True, 'reachable': True}, 'swversion': '2017.9.14', 'state': {'power': 0, 'voltage': 221, 'current': 0, 'lastupdated': '2019-01-19T18:26:31'}, 'manufacturername': 'Heiman', 'etag': 'a288d07eca912a38bde45c7514b0522c', 'name': 'Verbruik Spotjes Schuur', 'type': 'ZHAPower', 'ep': 1, 'uniqueid': '00:0d:6f:00:0d:3d:9b:99-01-0b04'}, '21': {'modelid': 'XFDPresence', 'config': {'on': True, 'duration': 0, 'reachable': True}, 'swversion': '1.0', 'state': {'presence': False, 'lastupdated': 'none'}, 'manufacturername': 'xfiredesigns', 'etag': '887ac40b22a1ffcbf8f62481a484d0d5', 'name': 'XFDAnybodyHome', 'type': 'CLIPPresence', 'uniqueid': 'CD5F9D10-671C-482F-BF33-D7AB34A7'}, '30': {'modelid': 'PHOSCON_FSM_STATE', 'config': {'on': True, 'reachable': True}, 'swversion': '1.0', 'state': {'lastupdated': '2019-01-19T07:24:48', 'status': 0}, 'manufacturername': 'Phoscon', 'etag': '887ac40b22a1ffcbf8f62481a484d0d5', 'name': 'FSM_STATE WC', 'type': 'CLIPGenericStatus', 'uniqueid': 'fsm-state-1521923408372'}, '18': {'modelid': 'SmartPlug', 'config': {'on': True, 'reachable': True}, 'swversion': '2017.9.14', 'state': {'consumption': 67, 'power': 0, 'lastupdated': '2019-01-19T18:26:43'}, 'manufacturername': 'Heiman', 'etag': 'e1a9e786c61641bf893e9d11dbece7c9', 'name': 'Verbruik Spotjes Schuur', 'type': 'ZHAConsumption', 'ep': 1, 'uniqueid': '00:0d:6f:00:0d:3d:9b:99-01-0702'}, '13': {'modelid': 'SmartPlug', 'config': {'on': True, 'reachable': True}, 'swversion': '2017.9.14', 'state': {'consumption': 6190, 'power': 3, 'lastupdated': '2019-01-19T18:26:18'}, 'manufacturername': 'Heiman', 'etag': '04f1d0e4955d3042f14163bba4b478c6', 'name': 'Consumption 13', 'type': 'ZHAConsumption', 'ep': 1, 'uniqueid': '00:0d:6f:00:0d:3d:74:1b-01-0702'}, '16': {'modelid': 'SmartPlug', 'config': {'on': True, 'reachable': True}, 'swversion': '2017.9.14', 'state': {'power': 3, 'voltage': 223, 'current': 100, 'lastupdated': '2019-01-19T18:26:47'}, 'manufacturername': 'Heiman', 'etag': '047f4fffddaa056d3959d6742d7c667f', 'name': 'Verbruik Versterker', 'type': 'ZHAPower', 'ep': 1, 'uniqueid': '00:0d:6f:00:0d:3d:74:1b-01-0b04'}, '25': {'modelid': 'TRADFRI remote control', 'config': {'group': '62081', 'on': True, 'reachable': True, 'alert': 'select', 'battery': 34}, 'mode': 3, 'state': {'buttonevent': 3003, 'lastupdated': '2019-01-09T21:17:48'}, 'manufacturername': 'IKEA of Sweden', 'etag': 'e0fde850d1b747d413434209c6eb15a2', 'swversion': '1.2.214', 'name': 'Remote control 1', 'type': 'ZHASwitch', 'ep': 1, 'uniqueid': '00:0b:57:ff:fe:e7:b9:94-01-1000'}, '4': {'modelid': 'lumi.sensor_magnet.aq2', 'config': {'on': True, 'temperature': 1300, 'reachable': True, 'battery': 91}, 'swversion': '20161128', 'state': {'open': False, 'lastupdated': '2019-01-19T17:54:02'}, 'manufacturername': 'LUMI', 'etag': '479a19e9620663420948409c16fcaf79', 'name': 'Raam rechts', 'type': 'ZHAOpenClose', 'ep': 1, 'uniqueid': '00:15:8d:00:01:da:d1:95-01-0006'}, '22': {'modelid': 'TRADFRI motion sensor', 'config': {'on': True, 'duration': 32, 'reachable': True, 'group': '37080', 'alert': 'select', 'delay': 60, 'battery': 34}, 'swversion': '1.1.1.1-5.7.2.0', 'state': {'presence': False, 'lastupdated': '2019-01-19T17:41:55', 'dark': True}, 'manufacturername': 'IKEA of Sweden', 'etag': 'f79bb2f639a967d04c0b9a4c1bfec921', 'name': 'Logeerkamer Sensor', 'type': 'ZHAPresence', 'ep': 1, 'uniqueid': '00:0b:57:ff:fe:95:c9:f0-01-1000'}, '9': {'modelid': 'lumi.sensor_magnet.aq2', 'config': {'on': True, 'temperature': 1800, 'reachable': True, 'battery': 100}, 'swversion': '20161128', 'state': {'open': True, 'lastupdated': '2019-01-19T17:52:26'}, 'manufacturername': 'LUMI', 'etag': '83aa52cdfe2f854fce47dab6fe86ca31', 'name': 'Kamerdeur', 'type': 'ZHAOpenClose', 'ep': 1, 'uniqueid': '00:15:8d:00:01:da:d1:c8-01-0006'}, '8': {'modelid': 'lumi.sensor_magnet.aq2', 'config': {'on': True, 'temperature': 2500, 'reachable': True, 'battery': 88}, 'swversion': '20161128', 'state': {'open': False, 'lastupdated': '2019-01-19T18:17:59'}, 'manufacturername': 'LUMI', 'etag': 'da0860f2de2afdf08c2e09c7831de1ae', 'name': 'Deur', 'type': 'ZHAOpenClose', 'ep': 1, 'uniqueid': '00:15:8d:00:01:e4:51:3c-01-0006'}, '24': {'modelid': 'RWL021', 'config': {'group': '8120', 'on': True, 'reachable': True, 'battery': 52}, 'mode': 1, 'state': {'buttonevent': 2003, 'lastupdated': '2019-01-18T16:53:35'}, 'manufacturername': 'Philips', 'etag': '2271b2abbaf355b6303727a367a3f584', 'swversion': '5.45.1.17846', 'name': 'Switch', 'type': 'ZHASwitch', 'ep': 2, 'uniqueid': '00:17:88:01:02:0e:d0:a0-02-fc00'}, '29': {'modelid': 'lumi.sensor_magnet.aq2', 'config': {'on': True, 'temperature': 1700, 'reachable': True, 'battery': 100}, 'swversion': '20161128', 'state': {'open': False, 'lastupdated': '2019-01-19T18:17:05'}, 'manufacturername': 'LUMI', 'etag': '92cf7bc90a475abe52bcfae5ecd8e425', 'name': 'Keukendeur', 'type': 'ZHAOpenClose', 'ep': 1, 'uniqueid': '00:15:8d:00:01:ab:23:dd-01-0006'}, '31': {'modelid': 'PHOSCON_VPIR', 'config': {'on': True, 'duration': 60, 'reachable': True}, 'swversion': '1.0', 'state': {'presence': False, 'lastupdated': '2018-03-24T20:38:30'}, 'manufacturername': 'Phoscon', 'etag': '887ac40b22a1ffcbf8f62481a484d0d5', 'name': 'VPIR WC', 'type': 'CLIPPresence', 'uniqueid': 'vpir-1521923408372'}, '3': {'mode

2019-01-19 19:26:49.794 (DeConz Plugin) ### Device > 1 Name:Daylight Type:Daylight Details:{'daylight': False, 'lastupdated': '2019-01-19T17:57:28', 'dark': True, 'status': 230}

2019-01-19 19:26:49.795 (DeConz Plugin) ### Update device (DeConz Plugin - Daylight) : {'sValue': 'Off', 'nValue': 0}

2019-01-19 19:26:49.797 (DeConz Plugin) ### Device > 12 Name:Kastdeur Type:ZHAOpenClose Details:{'open': False, 'lastupdated': '2019-01-19T18:06:50'}

2019-01-19 19:26:49.798 (DeConz Plugin) ### Update device (DeConz Plugin - Kastdeur) : {'sValue': 'Closed', 'nValue': 0, 'BatteryLevel': 95}

2019-01-19 19:26:49.800 (DeConz Plugin) ### Device > 19 Name:Verbruik Spotjes Schuur Type:ZHAPower Details:{'power': 0, 'voltage': 221, 'current': 0, 'lastupdated': '2019-01-19T18:26:31'}

2019-01-19 19:26:49.801 (DeConz Plugin) ### Update device (DeConz Plugin - Verbruik Spotjes Schuur) : {'sValue': '0', 'nValue': 0}

2019-01-19 19:26:49.802 (DeConz Plugin) ### Device > 21 Name:XFDAnybodyHome Type:CLIPPresence Details:{'presence': False, 'lastupdated': 'none'}

2019-01-19 19:26:49.803 (DeConz Plugin) ### Device > 30 Name:FSM_STATE WC Type:CLIPGenericStatus Details:{'lastupdated': '2019-01-19T07:24:48', 'status': 0}

2019-01-19 19:26:49.803 (DeConz Plugin) ### Device > 18 Name:Verbruik Spotjes Schuur Type:ZHAConsumption Details:{'consumption': 67, 'power': 0, 'lastupdated': '2019-01-19T18:26:43'}

2019-01-19 19:26:49.803 (DeConz Plugin) ### Update device (DeConz Plugin - Verbruik Spotjes Schuur) : {'sValue': '0', 'nValue': 0}

2019-01-19 19:26:49.805 (DeConz Plugin) ### Device > 13 Name:Consumption 13 Type:ZHAConsumption Details:{'consumption': 6190, 'power': 3, 'lastupdated': '2019-01-19T18:26:18'}

2019-01-19 19:26:49.806 (DeConz Plugin) ### Update device (DeConz Plugin - Consumption 13) : {'sValue': '3', 'nValue': 0}

2019-01-19 19:26:49.808 (DeConz Plugin) ### Device > 16 Name:Verbruik Versterker Type:ZHAPower Details:{'power': 3, 'voltage': 223, 'current': 100, 'lastupdated': '2019-01-19T18:26:47'}

2019-01-19 19:26:49.808 (DeConz Plugin) ### Update device (DeConz Plugin - Verbruik Versterker) : {'sValue': '100', 'nValue': 0}

2019-01-19 19:26:49.810 (DeConz Plugin) ### Device > 25 Name:Remote control 1 Type:ZHASwitch Details:{'buttonevent': 3003, 'lastupdated': '2019-01-09T21:17:48'}

2019-01-19 19:26:49.810 (DeConz Plugin) ### Update device (DeConz Plugin - Remote control 1) : {'sValue': 'Off', 'nValue': 0, 'BatteryLevel': 34}

2019-01-19 19:26:49.813 (DeConz Plugin) ### Device > 4 Name:Raam rechts Type:ZHAOpenClose Details:{'open': False, 'lastupdated': '2019-01-19T17:54:02'}

2019-01-19 19:26:49.813 (DeConz Plugin) ### Update device (DeConz Plugin - Raam rechts) : {'sValue': 'Closed', 'nValue': 0, 'BatteryLevel': 91}

2019-01-19 19:26:49.816 (DeConz Plugin) ### Device > 22 Name:Logeerkamer Sensor Type:ZHAPresence Details:{'presence': False, 'lastupdated': '2019-01-19T17:41:55', 'dark': True}

2019-01-19 19:26:49.816 (DeConz Plugin) ### Update device (DeConz Plugin - Logeerkamer Sensor) : {'sValue': 'Off', 'nValue': 0, 'BatteryLevel': 34}

2019-01-19 19:26:49.819 (DeConz Plugin) ### Device > 9 Name:Kamerdeur Type:ZHAOpenClose Details:{'open': True, 'lastupdated': '2019-01-19T17:52:26'}

2019-01-19 19:26:49.819 (DeConz Plugin) ### Update device (DeConz Plugin - Kamerdeur) : {'sValue': 'Open', 'nValue': 1, 'BatteryLevel': 100}

2019-01-19 19:26:49.822 (DeConz Plugin) ### Device > 8 Name:Deur Type:ZHAOpenClose Details:{'open': False, 'lastupdated': '2019-01-19T18:17:59'}

2019-01-19 19:26:49.823 (DeConz Plugin) ### Update device (DeConz Plugin - Deur) : {'sValue': 'Closed', 'nValue': 0, 'BatteryLevel': 88}

2019-01-19 19:26:49.825 (DeConz Plugin) ### Device > 24 Name:Switch Type:ZHASwitch Details:{'buttonevent': 2003, 'lastupdated': '2019-01-18T16:53:35'}

2019-01-19 19:26:49.825 (DeConz Plugin) ### Update device (DeConz Plugin - Switch) : {'sValue': 'Off', 'nValue': 0, 'BatteryLevel': 52}

2019-01-19 19:26:49.828 (DeConz Plugin) ### Device > 29 Name:Keukendeur Type:ZHAOpenClose Details:{'open': False, 'lastupdated': '2019-01-19T18:17:05'}

2019-01-19 19:26:49.828 (DeConz Plugin) ### Update device (DeConz Plugin - Keukendeur) : {'sValue': 'Closed', 'nValue': 0, 'BatteryLevel': 100}

2019-01-19 19:26:49.831 (DeConz Plugin) ### Device > 31 Name:VPIR WC Type:CLIPPresence Details:{'presence': False, 'lastupdated': '2018-03-24T20:38:30'}

2019-01-19 19:26:49.831 (DeConz Plugin) ### Device > 3 Name:Voordeur Type:ZHAOpenClose Details:{'open': False, 'lastupdated': '2019-01-19T18:04:07'}

2019-01-19 19:26:49.832 (DeConz Plugin) ### Update device (DeConz Plugin - Voordeur) : {'sValue': 'Closed', 'nValue': 0, 'BatteryLevel': 100}

2019-01-19 19:26:49.834 (DeConz Plugin) ### Device > 5 Name:Raam links Type:ZHAOpenClose Details:{'open': False, 'lastupdated': '2019-01-19T17:42:39'}

2019-01-19 19:26:49.834 (DeConz Plugin) ### Update device (DeConz Plugin - Raam links) : {'sValue': 'Closed', 'nValue': 0, 'BatteryLevel': 95}

2019-01-19 19:26:49.837 (DeConz Plugin) ### Device > 26 Name:Motion CV Type:ZHAPresence Details:{'presence': False, 'lastupdated': '2019-01-19T18:22:58'}

2019-01-19 19:26:49.837 (DeConz Plugin) ### Update device (DeConz Plugin - Motion CV) : {'sValue': 'Off', 'nValue': 0, 'BatteryLevel': 100}

2019-01-19 19:26:49.840 (DeConz Plugin) ### Device > 10 Name:Motion CV Type:ZHALightLevel Details:{'daylight': False, 'lux': 3, 'lastupdated': '2019-01-19T18:22:58', 'dark': True, 'lightlevel': 4772}

2019-01-19 19:26:49.840 (DeConz Plugin) ### Update device (DeConz Plugin - Motion CV) : {'sValue': 'Off', 'nValue': 0, 'BatteryLevel': 100}

2019-01-19 19:26:49.842 (DeConz Plugin) ### Device > 15 Name:Remote control 2 Type:ZHASwitch Details:{'buttonevent': 2002, 'lastupdated': '2019-01-19T05:55:44'}

2019-01-19 19:26:49.843 (DeConz Plugin) ### Update device (DeConz Plugin - Remote control 2) : {'sValue': 'Off', 'nValue': 0, 'BatteryLevel': 60}

2019-01-19 19:26:49.845 (DeConz Plugin) ### Device > 20 Name:New user Type:CLIPPresence Details:{'presence': False, 'lastupdated': 'none'}

2019-01-19 19:26:49.846 (DeConz Plugin) ### Device > 28 Name:Lekkage Type:ZHAWater Details:{'tampered': False, 'water': False, 'lowbattery': False, 'lastupdated': '2019-01-19T17:38:40'}

2019-01-19 19:26:49.846 (DeConz Plugin) ### Update device (DeConz Plugin - Lekkage) : {'sValue': '', 'nValue': 0, 'BatteryLevel': 100}

2019-01-19 19:26:49.848 (DeConz Plugin) ### Device > 6 Name:Schuurdeur Type:ZHAOpenClose Details:{'open': False, 'lastupdated': '2019-01-19T17:38:32'}

2019-01-19 19:26:49.848 (DeConz Plugin) ### Update device (DeConz Plugin - Schuurdeur) : {'sValue': 'Closed', 'nValue': 0, 'BatteryLevel': 88}

2019-01-19 19:26:49.851 (DeConz Plugin) ### Request Groups

2019-01-19 19:26:49.851 (DeConz Plugin) Send Command /api/xxxxxxxxxxxx/groups/ with None

2019-01-19 19:26:49.952 (DeConz Plugin) onConnect called

2019-01-19 19:26:49.475 Status: (DeConz Plugin) onDisconnect called for Name: 'deCONZ_WebSocket', Transport: 'TCP/IP', Protocol: 'None', Address: '192.168.2.13', Port: '8088', Baud: -1, Connected: False

2019-01-19 19:26:49.423 Error: (DeConz Plugin) WebSocket Disconnected, reconnexion !

2019-01-19 19:26:49.474 Error: (DeConz Plugin) WebSocket connexion error : Name: 'deCONZ_WebSocket', Transport: 'TCP/IP', Protocol: 'None', Address: '192.168.2.13', Port: '8088', Baud: -1, Bytes: 0, Connected: False, Last Seen: 1970-01-01 01:00:00

2019-01-19 19:26:49.474 Error: (DeConz Plugin) Status : 111 Description : Connection refused

2019-01-19 19:26:49.803 Error: (DeConz Plugin) Unknow device type CLIPPresence

2019-01-19 19:26:49.803 Error: (DeConz Plugin) Unknow device type CLIPGenericStatus

2019-01-19 19:26:49.831 Error: (DeConz Plugin) Unknow device type CLIPPresence

2019-01-19 19:26:49.846 Error: (DeConz Plugin) Unknow device type CLIPPresence

2019-01-19 19:26:50.012 (DeConz Plugin) Classic Data : {'6': {'action': {'on': False, 'colormode': 'hs', 'ct': 0, 'xy': [0, 0], 'hue': 0, 'bri': 127, 'scene': None, 'effect': 'none', 'sat': 127}, 'type': 'LightGroup', 'state': {'all_on': False, 'any_on': True}, 'scenes': [], 'etag': '368ba74e2d488741034e9106543606d2', 'name': 'Keuken', 'devicemembership': [], 'id': '6', 'lights': ['34', '7', '8', '18']}, '37080': {'action': {'on': True, 'colormode': 'hs', 'ct': 0, 'xy': [0, 0], 'hue': 0, 'bri': 127, 'scene': None, 'effect': 'none', 'sat': 127}, 'type': 'LightGroup', 'state': {'all_on': False, 'any_on': False}, 'scenes': [], 'etag': 'f79bb2f639a967d04c0b9a4c1bfec921', 'name': 'TRADFRI motion sensor 22', 'devicemembership': ['22'], 'id': '37080', 'lights': []}, '28080': {'action': {'on': False, 'colormode': 'hs', 'ct': 0, 'xy': [0, 0], 'hue': 0, 'bri': 127, 'scene': None, 'effect': 'none', 'sat': 127}, 'type': 'LightGroup', 'state': {'all_on': False, 'any_on': False}, 'scenes': [], 'etag': '887ac40b22a1ffcbf8f62481a484d0d5', 'name': 'TRADFRI remote control 15', 'devicemembership': ['15'], 'id': '28080', 'lights': []}, '5': {'action': {'on': False, 'colormode': 'hs', 'ct': 0, 'xy': [0, 0], 'hue': 0, 'bri': 127, 'scene': None, 'effect': 'none', 'sat': 127}, 'type': 'LightGroup', 'state': {'all_on': False, 'any_on': True}, 'scenes': [{'transitiontime': 100, 'name': 'Hal fade', 'lightcount': 5, 'id': '1'}], 'etag': '368ba74e2d488741034e9106543606d2', 'name': 'Voor', 'devicemembership': [], 'id': '5', 'lights': ['6', '11', '9', '20', '10']}, '12': {'action': {'on': False, 'colormode': 'hs', 'ct': 0, 'xy': [0, 0], 'hue': 0, 'bri': 127, 'scene': None, 'effect': 'none', 'sat': 127}, 'type': 'LightGroup', 'state': {'all_on': False, 'any_on': False}, 'scenes': [], 'etag': '9967e1ac1a6f6ce7e2966cc4e9920493', 'name': 'Overloop', 'devicemembership': [], 'id': '12', 'lights': ['4']}, '4': {'action': {'on': False, 'colormode': 'hs', 'ct': 0, 'xy': [0, 0], 'hue': 0, 'bri': 127, 'scene': None, 'effect': 'none', 'sat': 127}, 'type': 'LightGroup', 'state': {'all_on': False, 'any_on': False}, 'scenes': [], 'etag': 'acd974cf2d0303e1e90e9225e40302e9', 'name': 'Buiten', 'devicemembership': [], 'id': '4', 'lights': ['3', '5', '33', '2']}, '62081': {'action': {'on': False, 'colormode': 'hs', 'ct': 0, 'xy': [0, 0], 'hue': 0, 'bri': 127, 'scene': None, 'effect': 'none', 'sat': 127}, 'type': 'LightGroup', 'state': {'all_on': False, 'any_on': False}, 'scenes': [], 'etag': '887ac40b22a1ffcbf8f62481a484d0d5', 'name': 'TRADFRI remote control 25', 'devicemembership': ['25'], 'id': '62081', 'lights': []}, '8120': {'action': {'on': False, 'colormode': 'hs', 'ct': 0, 'xy': [0, 0], 'hue': 0, 'bri': 127, 'scene': None, 'effect': 'none', 'sat': 127}, 'type': 'LightGroup', 'state': {'all_on': False, 'any_on': False}, 'scenes': [], 'etag': '887ac40b22a1ffcbf8f62481a484d0d5', 'name': 'RWL021 25', 'devicemembership': ['24'], 'id': '8120', 'lights': []}, '3': {'action': {'on': False, 'colormode': 'hs', 'ct': 0, 'xy': [0, 0], 'hue': 0, 'bri': 127, 'scene': None, 'effect': 'none', 'sat': 127}, 'type': 'LightGroup', 'state': {'all_on': False, 'any_on': False}, 'scenes': [], 'etag': 'e37806ae743032a2eaab3e62afd2bbe0', 'name': 'Boven', 'devicemembership': [], 'id': '3', 'lights': ['31', '29', '21', '30', '36']}, '11': {'action': {'on': False, 'colormode': 'hs', 'ct': 0, 'xy': [0, 0], 'hue': 0, 'bri': 127, 'scene': None, 'effect': 'none', 'sat': 127}, 'type': 'LightGroup', 'state': {'all_on': False, 'any_on': True}, 'scenes': [], 'etag': '368ba74e2d488741034e9106543606d2', 'name': 'Alle', 'devicemembership': [], 'id': '11', 'lights': ['6', '7', '11', '8', '33', '9', '20', '28', '10']}, '7': {'action': {'on': False, 'colormode': 'hs', 'ct': 0, 'xy': [0, 0], 'hue': 0, 'bri': 127, 'scene': None, 'effect': 'none', 'sat': 127}, 'type': 'LightGroup', 'state': {'all_on': True, 'any_on': True}, 'scenes': [], 'etag': '368ba74e2d488741034e9106543606d2', 'name': 'Achter', 'devicemembership': [], 'id': '7', 'lights': ['32', '28']}}

2019-01-19 19:26:50.012 (DeConz Plugin) ### Groupe > 6 Name:Keuken

2019-01-19 19:26:50.012 (DeConz Plugin) ### Groupe > 37080 Name:TRADFRI motion sensor 22

2019-01-19 19:26:50.012 (DeConz Plugin) ### Groupe > 28080 Name:TRADFRI remote control 15

2019-01-19 19:26:50.012 (DeConz Plugin) ### Groupe > 5 Name:Voor

2019-01-19 19:26:50.013 (DeConz Plugin) ### Groupe > 12 Name:Overloop

2019-01-19 19:26:50.013 (DeConz Plugin) ### Groupe > 4 Name:Buiten

2019-01-19 19:26:50.013 (DeConz Plugin) ### Groupe > 62081 Name:TRADFRI remote control 25

2019-01-19 19:26:50.013 (DeConz Plugin) ### Groupe > 8120 Name:RWL021 25

2019-01-19 19:26:50.013 (DeConz Plugin) ### Groupe > 3 Name:Boven

2019-01-19 19:26:50.013 (DeConz Plugin) ### Groupe > 11 Name:Alle

2019-01-19 19:26:50.013 (DeConz Plugin) ### Groupe > 7 Name:Achter

2019-01-19 19:26:50.488 (Raspberry meterkast) P1 Smart Meter (Stroom)

2019-01-19 19:26:50.495 Python: Changed: ID: 248 Name: Stroom, Type: 250, subType: 1, switchType: 0, s_value: 5470735;2816659;2264386;5410341;200;0, n_value: 0, n_value_string: 5470735;2816659;2264386;5410341;200;0, last_update_string: 2019-01-19 19:26:50

2019-01-19 19:26:50.495 Python: Number of user_variables: 0

2019-01-19 19:26:50.572 Python: Changed: ID: 189 Name: HDD /boot, Type: 243, subType: 6, switchType: 0, s_value: 33.73, n_value: 0, n_value_string: 33.73, last_update_string: 2019-01-19 19:26:50

2019-01-19 19:26:50.572 Python: Number of user_variables: 0

2019-01-19 19:26:50.581 Python: Changed: ID: 190 Name: HDD /, Type: 243, subType: 6, switchType: 0, s_value: 15.51, n_value: 0, n_value_string: 15.51, last_update_string: 2019-01-19 19:26:50

2019-01-19 19:26:50.581 Python: Number of user_variables: 0

2019-01-19 19:26:50.014 Status: (DeConz Plugin) ### deCONZ ready

2019-01-19 19:26:50.014 Status: (DeConz Plugin) ### Found 22 Operators, 24 Sensors, 11 Groups with 0 Ignored

Stefan Koopman s.koopman@home.nl

Op 19 jan. 2019, om 18:36 heeft Smanar notifications@github.com het volgende geschreven:

Hello, can you give me the line with ct and zero value, if you can ?

2019-01-19 18:26:20.436 (deCONZ) ### Device > 5 Name:Motion Sensor Type:ZHAPresence Details:{'presence': False, 'lastupdated': '2019-01-19T16:56:52'} 2019-01-19 18:26:20.436 (deCONZ) ### Update device (deCONZ - Motion Sensor) : {'BatteryLevel': 100, 'sValue': 'Off', 'nValue': 0} Something like that but with 'ct':0

I have already updated the code (so it will work on your system now, I think), but your situation have something strange and theses lines will be helpfull for me.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Smanar/Domoticz-deCONZ/issues/3#issuecomment-455799572, or mute the thread https://github.com/notifications/unsubscribe-auth/AjUv09W9x3djHpxxTPcmphJnH1LeB1JXks5vE1engaJpZM4aJK0e.

Smanar commented 5 years ago

You still have problem with websocket. 2019-01-19 19:26:39.453 Error: (DeConz Plugin) WebSocket connexion error : Name: 'deCONZ_WebSocket', Transport: 'TCP/IP', Protocol: 'None', Address: '192.168.2.13', Port: '8088', Baud: -1, Bytes: 0, Connected: False, Last Seen: 1970-01-01 01:00:00 You can see your defaut port using the API_KEY file. python3 API_KEY.py 127.0.0.1:80 info 36E138295E If you have deconz on the same machine than domoticz you can use 127.0.0.1 as ip

So I have identified the "division by zero problem" '18': {'modelid': 'GL-C-008', 'ctmax': 0, 'hascolor': True, 'state': {'on': True, 'colormode': 'xy', 'ct': 0, 'xy': [0.316595, 0.315492], 'hue': 35328, 'bri': 28, 'effect': 'none', 'reachable': True, 'alert': 'none', 'sat': 24}, 'manufacturername': 'GLEDOPTO', 'etag': '368ba74e2d488741034e9106543606d2', 'swversion': '1.0.6', 'name': 'Keukenstrip', 'type': 'Extended color light', 'ctmin': 0, 'uniqueid': '00:12:4b:00:1b:91:ec:dd-0b'}

This device is a RGB device but have a "ct" field unused, with 0 value.

I m adding your "custom device" ATM > CLIPPresence, CLIPGenericStatus

Smanar commented 5 years ago

Done, thx a lot for your logs, realy usefull. I think All is done ATM. I have also added XFDAnybodyHome,VPIR WC and FSM_STATE WC The last one will be a text device, because it can only display a status.

The next time you reload the plugin (after the "pull git"), all your error will be out (I hope ...)

stefan1957 commented 5 years ago

Thx a lot

All errors are gone. My DeCONZ is on a different device then domoticz so i can’t use 172.0.0.1 but that error is also gone

Greetz Stefan Koopman s.koopman@home.nl

Op 20 jan. 2019, om 10:13 heeft Smanar notifications@github.com het volgende geschreven:

Done, thx a lot for your logs, realy usefull. I think All is done ATM. I have also added XFDAnybodyHome,VPIR WC and FSM_STATE WC The last one will be a text device, because it can only display a status.

The next time you reload the plugin (after the "pull git"), all your error will be out (I hope ...)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Smanar/Domoticz-deCONZ/issues/3#issuecomment-455849670, or mute the thread https://github.com/notifications/unsubscribe-auth/AjUv08PO-6UIlkikEVvCop6HtuaE8pU-ks5vFDNRgaJpZM4aJK0e.

Smanar commented 5 years ago

Thx to you, your zigbee installation is realy interesting, I missed a lot of information before that.

stefan1957 commented 5 years ago

Hey,

Is there something changed in the plugin? the system isn’t working anymore. DeConz is not ready it’s said but de system is running?

2019-01-31 18:11:16.322 Error: (DeConz Plugin) deCONZ not ready 2019-01-31 18:11:19.284 (DeConz Plugin) ### Update device (DeConz Plugin - Slaapkamer) : {'sValue': '61', 'nValue': 0} 2019-01-31 18:11:19.286 (DeConz Plugin) ### Device > 30 Name:Lamp Bed Type:On/Off plug-in unit Details:{'alert': 'none', 'reachable': True, 'on': False} 2019-01-31 18:11:19.287 (DeConz Plugin) ### Update device (DeConz Plugin - Lamp Bed) : {'sValue': 'off', 'nValue': 0} 2019-01-31 18:11:19.289 (DeConz Plugin) ### Device > 18 Name:Keukenstrip Type:Extended color light Details:{'reachable': True, 'hue': 35328, 'colormode': 'xy', 'effect': 'none', 'on': True, 'ct': 176, 'bri': 28, 'alert': 'none', 'xy': [0.316594, 0.315496], 'sat': 24} 2019-01-31 18:11:19.290 (DeConz Plugin) ### Update device (DeConz Plugin - Keukenstrip) : {'Color': '{"ct":43,"t":0,"ww":0}', 'sValue': '10', 'nValue': 1} 2019-01-31 18:11:19.292 (DeConz Plugin) ### Device > 20 Name:Streep Type:Extended color light Details:{'reachable': False, 'hue': 7286, 'colormode': 'ct', 'effect': 'none', 'on': True, 'ct': 488, 'bri': 81, 'alert': 'none', 'xy': [0.521294, 0.414023], 'sat': 220} 2019-01-31 18:11:19.293 (DeConz Plugin) ### Update device (DeConz Plugin - Streep) : {'Color': '{"ct":236,"t":0,"ww":0}', 'sValue': '31', 'nValue': 1} 2019-01-31 18:11:19.296 (DeConz Plugin) ### Device > 31 Name:Slaapkamer Kleur Type:Color light Details:{'reachable': True, 'hue': 0, 'colormode': 'xy', 'effect': 'none', 'sat': 0, 'on': False, 'bri': 69, 'alert': 'none', 'xy': [0.669993, 0.325292]} 2019-01-31 18:11:19.296 (DeConz Plugin) ### Update device (DeConz Plugin - Slaapkamer Kleur) : {'Color': '{"b":0,"cw":0,"g":75,"m":3,"r":255,"t":0,"ww":0}', 'sValue': '27', 'nValue': 0} 2019-01-31 18:11:19.299 (DeConz Plugin) ### Device > 10 Name:Deur Type:Color temperature light Details:{'colormode': 'ct', 'reachable': False, 'ct': 400, 'on': False, 'bri': 137, 'alert': 'none'} 2019-01-31 18:11:19.300 (DeConz Plugin) ### Update device (DeConz Plugin - Deur) : {'Color': '{"ct":212,"t":0,"ww":0}', 'sValue': '53', 'nValue': 0} 2019-01-31 18:11:19.302 (DeConz Plugin) ### Device > 3 Name:Vijver Type:Color temperature light Details:{'colormode': 'ct', 'reachable': True, 'ct': 454, 'on': False, 'bri': 254, 'alert': 'none'} 2019-01-31 18:11:19.303 (DeConz Plugin) ### Update device (DeConz Plugin - Vijver) : {'Color': '{"ct":228,"t":0,"ww":0}', 'sValue': '99', 'nValue': 0} 2019-01-31 18:11:19.305 (DeConz Plugin) ### Device > 21 Name:Logeer Kamer Type:Dimmable light Details:{'bri': 137, 'alert': 'none', 'reachable': False, 'on': False} 2019-01-31 18:11:19.306 (DeConz Plugin) ### Update device (DeConz Plugin - Logeer Kamer) : {'sValue': '53', 'nValue': 0} 2019-01-31 18:11:19.308 (DeConz Plugin) ### Device > 33 Name:Spotjes schuur Type:Smart plug Details:{'alert': 'none', 'reachable': True, 'on': False} 2019-01-31 18:11:19.308 (DeConz Plugin) ### Update device (DeConz Plugin - Spotjes schuur) : {'sValue': 'off', 'nValue': 0} 2019-01-31 18:11:19.311 (DeConz Plugin) ### Device > 2 Name:Schuur Type:Color temperature light Details:{'colormode': 'ct', 'reachable': True, 'ct': 454, 'on': False, 'bri': 157, 'alert': 'none'} 2019-01-31 18:11:19.311 (DeConz Plugin) ### Update device (DeConz Plugin - Schuur) : {'Color': '{"ct":228,"t":0,"ww":0}', 'sValue': '61', 'nValue': 0} 2019-01-31 18:11:19.314 (DeConz Plugin) ### Device > 7 Name:Koelkast Type:Color temperature light Details:{'colormode': 'ct', 'reachable': True, 'ct': 400, 'on': False, 'bri': 53, 'alert': 'none'} 2019-01-31 18:11:19.314 (DeConz Plugin) ### Update device (DeConz Plugin - Koelkast) : {'Color': '{"ct":212,"t":0,"ww":0}', 'sValue': '20', 'nValue': 0} 2019-01-31 18:11:19.317 (DeConz Plugin) ### Device > 5 Name:Keuken buiten Type:Dimmable light Details:{'bri': 152, 'alert': 'none', 'reachable': True, 'on': False} 2019-01-31 18:11:19.317 (DeConz Plugin) ### Update device (DeConz Plugin - Keuken buiten) : {'sValue': '59', 'nValue': 0} 2019-01-31 18:11:19.319 (DeConz Plugin) ### Request sensors 2019-01-31 18:11:19.320 (DeConz Plugin) Send Command /api/3CC333DDFA/sensors/ with None 2019-01-31 18:11:19.370 (DeConz Plugin) onConnect called 2019-01-31 18:11:19.421 (DeConz Plugin) onMessage called 2019-01-31 18:11:19.422 (DeConz Plugin) onMessage called 2019-01-31 18:11:19.424 (DeConz Plugin) onMessage called 2019-01-31 18:11:19.426 (DeConz Plugin) onMessage called 2019-01-31 18:11:19.430 (DeConz Plugin) onMessage called 2019-01-31 18:11:19.435 (DeConz Plugin) onMessage called 2019-01-31 18:11:19.440 (DeConz Plugin) onMessage called 2019-01-31 18:11:21.683 (Raspberry meterkast) P1 Smart Meter (Stroom) 2019-01-31 18:11:21.690 Python: Changed: ID: 248 Name: Stroom, Type: 250, subType: 1, switchType: 0, s_value: 5502423;2840485;2266586;5416944;310;0, n_value: 0, n_value_string: 5502423;2840485;2266586;5416944;310;0, last_update_string: 2019-01-31 18:11:21 2019-01-31 18:11:21.690 Python: Number of user_variables: 0 2019-01-31 18:11:25.839 Python: Changed: ID: 192 Name: CPU_Usage, Type: 243, subType: 6, switchType: 0, s_value: 4.33, n_value: 0, n_value_string: 4.33, last_update_string: 2019-01-31 18:11:25 2019-01-31 18:11:25.839 Python: Number of user_variables: 0 2019-01-31 18:11:26.913 (DeConz Plugin) onMessage called 2019-01-31 18:11:26.914 (DeConz Plugin) ###### WebSocket Data : {'uniqueid': '00:0d:6f:00:0d:3d:74:1b-01-0702', 'r': 'sensors', 'id': '13', 't': 'event', 'e': 'changed', 'state': {'lastupdated': '2019-01-31T17:11:26', 'consumption': 8071, 'power': 3}} 2019-01-31 18:11:26.914 Error: (DeConz Plugin) deCONZ not ready 2019-01-31 18:11:27.415 (DeConz Plugin) onMessage called 2019-01-31 18:11:27.416 (DeConz Plugin) ###### WebSocket Data : {'uniqueid': '00:0d:6f:00:0d:3d:74:1b-01-0b04', 'r': 'sensors', 'id': '16', 't': 'event', 'e': 'changed', 'state': {'voltage': 229, 'lastupdated': '2019-01-31T17:11:27', 'current': 100, 'power': 3}} 2019-01-31 18:11:27.435 (RFXtrx433E) Temp (Temperatuur kamerdeur) 2019-01-31 18:11:27.442 Python: Changed: ID: 1675 Name: Temperatuur kamerdeur, Type: 80, subType: 6, switchType: 0, s_value: 1.1, n_value: 0, n_value_string: 1.1, last_update_string: 2019-01-31 18:11:27 2019-01-31 18:11:27.442 Python: Number of user_variables: 0 2019-01-31 18:11:27.918 (DeConz Plugin) onMessage called 2019-01-31 18:11:27.919 (DeConz Plugin) ###### WebSocket Data : {'uniqueid': '00:0d:6f:00:0d:3d:9b:99-01-0702', 'r': 'sensors', 'id': '18', 't': 'event', 'e': 'changed', 'state': {'lastupdated': '2019-01-31T17:11:27', 'consumption': 74, 'power': 0}} 2019-01-31 18:11:27.416 Error: (DeConz Plugin) deCONZ not ready 2019-01-31 18:11:27.919 Error: (DeConz Plugin) deCONZ not ready 2019-01-31 18:11:28.570 (DeConz Plugin) onMessage called 2019-01-31 18:11:28.571 (DeConz Plugin) ###### WebSocket Data : {'uniqueid': '00:0d:6f:00:0d:3d:9b:99-01-0b04', 'r': 'sensors', 'id': '19', 't': 'event', 'e': 'changed', 'state': {'voltage': 228, 'lastupdated': '2019-01-31T17:11:28', 'current': 0, 'power': 0}} 2019-01-31 18:11:28.571 Error: (DeConz Plugin) deCONZ not ready 2019-01-31 18:11:29.073 (DeConz Plugin) onHeartbeat called 2019-01-31 18:11:31.687 (Raspberry meterkast) P1 Smart Meter (Stroom) 2019-01-31 18:11:31.693 Python: Changed: ID: 248 Name: Stroom, Type: 250, subType: 1, switchType: 0, s_value: 5502423;2840486;2266586;5416944;300;0, n_value: 0, n_value_string: 5502423;2840486;2266586;5416944;300;0, last_update_string: 2019-01-31 18:11:31 2019-01-31 18:11:31.693 Python: Number of user_variables: 0 2019-01-31 18:11:32.079 (DeConz Plugin) onMessage called 2019-01-31 18:11:32.080 (DeConz Plugin) ###### WebSocket Data : {'uniqueid': '00:15:8d:00:01:da:d1:c8-01-0006', 'r': 'sensors', 'id': '9', 't': 'event', 'e': 'changed', 'state': {'lastupdated': '2019-01-31T17:11:32', 'open': True}} 2019-01-31 18:11:32.593 (Hue Bridge) Light/Switch (Hal) 2019-01-31 18:11:32.596 Python: Changed: ID: 2802 Name: Hal, Type: 244, subType: 73, switchType: 7, s_value: 50, n_value: 2, n_value_string: Set Level: 50 %, last_update_string: 2019-01-31 18:11:32 2019-01-31 18:11:32.597 Python: Number of user_variables: 0 2019-01-31 18:11:32.597 (Hue Bridge) Light/Switch (Group Hal) Stefan Koopman s.koopman@home.nl

Op 22 jan. 2019, om 17:12 heeft Smanar notifications@github.com het volgende geschreven:

Closed #3 https://github.com/Smanar/Domoticz-deCONZ/issues/3.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Smanar/Domoticz-deCONZ/issues/3#event-2089239748, or mute the thread https://github.com/notifications/unsubscribe-auth/AjUv01FNBFY9EvfzJJrYh9zeodAWLWJEks5vFzhngaJpZM4aJK0e.

Smanar commented 5 years ago

Nope, no big changes from my memory, you have just done an update (plugin or deconz) ? The problem is from 2019-01-31 18:11:19.320 (DeConz Plugin) Send Command /api/3CC333DDFA/sensors/ with None There is something blocking in the "onMessage" response, so the plugin is still waiting and stay on 'not ready" state even the websoket is working.

But, I haven't done changes here. You have changed something on sensor (name)? Can you remove the '#' on line 157 158 159 and 174 pls, it will poduce more log.

In fact every time you see 2019-01-31 18:11:32.079 (DeConz Plugin) onMessage called

It's a return from the Send Command /api/3CC333DDFA/sensors/ command, this command works fine on explorer ?

I think the bug is line 184, there is something in the JSON, the plugin don't like. You can also just add Domoticz.Debug("Debug data : " + str(self.BufferReceive)) before the line 184 to display the string.

Edit: I have find a problem, I m making a correctif ATM.

Smanar commented 5 years ago

Try this version https://github.com/Smanar/Domoticz-deCONZ/tree/beta I have rewritten the part that read the http data, I think it's your bug ATM. The only usefull file is plugin.py

stefan1957 commented 5 years ago

Thx but your Plugin was oké. I updated deconz but did’nt update the rest Plugin, it’s working fine now

M vr gr Stefan S.J.Koopman

Op 1 feb. 2019 om 18:03 heeft Smanar notifications@github.com het volgende geschreven:

Try this version https://github.com/Smanar/Domoticz-deCONZ/tree/beta I have rewrite the part that read the http data, I think it's your bug ATM. The only usefull file is plugin.py

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

stefan1957 commented 5 years ago

Goodmorning,

The deconz plugin is stopped working any idea what’s up?

2019-06-28 10:30:03.200 Error: (deCONZ) failed to load 'plugin.py', Python Path used was '/home/pi/domoticz/plugins/Domoticz-deCONZ/:/usr/lib/python3.4/:/usr/lib/python3.4/plat-arm-linux-gnueabihf:/usr/lib/python3.4/lib-dynload:/usr/local/lib/python3.4/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.4/dist-packages:/usr/lib/dist-python'. 2019-06-28 10:30:03.200 Error: (DeConz Plugin) Module Import failed, exception: 'ImportError' 2019-06-28 10:30:03.200 Error: (DeConz Plugin) Module Import failed: ' Name: requests' 2019-06-28 10:30:03.200 Error: (DeConz Plugin) Error Line details not available. 2019-06-28 10:30:08.777 Python: Changed: ID: 192 Name: CPU_Usage, Type: 243, subType: 6, switchType: 0, s_value: 2.31, n_value: 0, n_value_string: 2.31, last_update_string: 2019-06-28 10:30:08 2019-06-28 10:30:08.777 Python: Number of user_variables: 0

Thx for your time

Stefan Koopman s.koopman@home.nl

Op 1 feb. 2019, om 18:50 heeft Ziggo s.koopman@home.nl het volgende geschreven:

Thx but your Plugin was oké. I updated deconz but did’nt update the rest Plugin, it’s working fine now

M vr gr Stefan S.J.Koopman

Op 1 feb. 2019 om 18:03 heeft Smanar <notifications@github.com mailto:notifications@github.com> het volgende geschreven:

Try this version https://github.com/Smanar/Domoticz-deCONZ/tree/beta https://github.com/Smanar/Domoticz-deCONZ/tree/beta I have rewrite the part that read the http data, I think it's your bug ATM. The only usefull file is plugin.py

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Smanar/Domoticz-deCONZ/issues/3#issuecomment-459792907, or mute the thread https://github.com/notifications/unsubscribe-auth/AjUv05GjrPgzLVIGsVc84vJHF61sueHpks5vJHNbgaJpZM4aJK0e.

Smanar commented 5 years ago

Ha yep, Wich one domoticz version are you using ? You are using a NAS/Docker/Syno ? Do you have the lib "requests" in your python version ?

I think it's a python version problem. On the last version I m using the python request library, and it's something new for domoticz.

Smanar commented 5 years ago

Still have the problem ?

stefan1957 commented 5 years ago

Sorry For my late response. I have still the problem in HomeKit everything works fine but in Domoticz I have got the same error. So when I open a door nothing change in Domoticz but in HomeKit it does. I am using a beta for Domoticz for a long time but half june it get the error.

M vr gr Stefan S.J.Koopman Deventerstraatweg 105 8012AD Zwolle

Op 30 jun. 2019 om 11:02 heeft Smanar notifications@github.com het volgende geschreven:

Still have the problem ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Smanar commented 5 years ago

Yep, since the version with the requests lib. Wich one domoticz version have you ? IDK wich one Python version you have but try to install the missing lib

sudo -H pip3 install requests
sudo -H pip install requests

Not sure for "-H" option, I never use it on my side, but it's a copy/paste from a forum. For information the old Domoticz version can't use the requests lib > crash.

stefan1957 commented 5 years ago

Yesss its working again, thx for your support

M vr gr Stefan

Op 1 jul. 2019 om 17:50 heeft Smanar notifications@github.com het volgende geschreven:

Yep, since the version with the requests lib. Wich one domoticz version have you ? IDK wich one Python version you have but try to install the missing lib

sudo -H pip3 install requests sudo -H pip install requests — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.