Page 2 of 2

Re: deCONZ hardware support

Posted: Monday 10 December 2018 19:43
by Thorgal789
Dahl1632 wrote: Monday 10 December 2018 18:20 Any idea?
Arf, A bad correction on ct gestion, it prevent the script to memorise your 2 bulb, so for it, they are banned.
I have updated the github.
But use this topic for bug on python plugin pls viewtopic.php?f=68&t=25631 or the github itself.

Tell me if it's better now, because your strip have XY AND Hue/Sat but only XY as colormode, (and it can too use CT) so not sure what can happen with this device.

Re: deCONZ hardware support

Posted: Thursday 20 December 2018 22:00
by tjabas
where can i find the latest edited banned device?
i get the same error.
i cant find it on github.

Re: deCONZ hardware support

Posted: Friday 21 December 2018 15:35
by Thorgal789
There isn't lasted banned device file, this file is make by you to prevent the devices you don't won't in the plugin.
BTW in your case the problem is from your API key, you have enter a bad one.
I will post the solution on the first post you have make.

Re: deCONZ hardware support

Posted: Saturday 12 January 2019 21:32
by TroLoo
I'm not sure what I've been doing wrong... maybe you can give me some hint where to look.

I've configured my Deconz system, initially with 2 wireless Xiaomi switches and 2 temp/humidity sensors, no lights at the moment. They show up fine in Phoscon web app. I've added newest git plugin version, created API key and configured it in Domoticz. All seems to be (almost) ok, but no new devices show up on the list...

Log file in Debug mode repeats the same lines over and over again:

Code: Select all

2019-01-12 21:28:06.692 (Deconz ConBee) Pushing 'onHeartbeatCallback' on to queue
2019-01-12 21:28:06.708 (Deconz ConBee) Processing 'onHeartbeatCallback' message
2019-01-12 21:28:06.708 (Deconz ConBee) Calling message handler 'onHeartbeat'.
2019-01-12 21:28:06.708 (Deconz ConBee) onHeartbeat called
2019-01-12 21:28:06.708 (Deconz ConBee) ### Request lights
2019-01-12 21:28:06.708 (Deconz ConBee) Send Command /api/B53E43891F/lights/ with None
2019-01-12 21:28:06.708 (Deconz ConBee) Deallocating connection object 'deCONZ_Com' (10.0.20.3:80).
2019-01-12 21:28:06.709 (Deconz ConBee) Pushing 'ConnectDirective' on to queue
2019-01-12 21:28:06.709 (Deconz ConBee) Processing 'ConnectDirective' message
2019-01-12 21:28:06.709 (Deconz ConBee) Protocol for 'deCONZ_Com' not specified, 'None' assumed.
2019-01-12 21:28:06.709 (Deconz ConBee) Transport set to: 'TCP/IP', 10.0.20.3:80.
2019-01-12 21:28:06.709 (Deconz ConBee) Connect directive received, action initiated successfully.
2019-01-12 21:28:06.724 (Deconz ConBee) Pushing 'onConnectCallback' on to queue
2019-01-12 21:28:06.759 (Deconz ConBee) Processing 'onConnectCallback' message
2019-01-12 21:28:06.759 (Deconz ConBee) Calling message handler 'onConnect'.
2019-01-12 21:28:06.759 (Deconz ConBee) onConnect called
2019-01-12 21:28:06.759 (Deconz ConBee) Pushing 'WriteDirective' on to queue
2019-01-12 21:28:06.760 (Deconz ConBee) Processing 'WriteDirective' message
2019-01-12 21:28:06.760 (Deconz ConBee) Sending 183 bytes of data
2019-01-12 21:28:06.760 (Deconz ConBee) 47 45 54 20 2f 61 70 69 2f 42 35 33 45 34 33 38 39 31 46 2f GET./api/B53E43891F/
2019-01-12 21:28:06.760 (Deconz ConBee) 6c 69 67 68 74 73 2f 20 48 54 54 50 2f 31 2e 31 0d 0a 48 6f lights/.HTTP/1.1..Ho
2019-01-12 21:28:06.760 (Deconz ConBee) 73 74 3a 20 31 30 2e 30 2e 32 30 2e 33 3a 38 30 0d 0a 55 73 st:.10.0.20.3:80..Us
2019-01-12 21:28:06.760 (Deconz ConBee) 65 72 2d 41 67 65 6e 74 3a 20 44 6f 6d 6f 74 69 63 7a 2f 31 er-Agent:.Domoticz/1
2019-01-12 21:28:06.760 (Deconz ConBee) 2e 30 0d 0a 41 63 63 65 70 74 3a 20 74 65 78 74 2f 68 74 6d .0..Accept:.text/htm
2019-01-12 21:28:06.760 (Deconz ConBee) 6c 2c 61 70 70 6c 69 63 61 74 69 6f 6e 2f 78 68 74 6d 6c 2b l,application/xhtml+
2019-01-12 21:28:06.760 (Deconz ConBee) 78 6d 6c 2c 61 70 70 6c 69 63 61 74 69 6f 6e 2f 78 6d 6c 3b xml,application/xml;
2019-01-12 21:28:06.760 (Deconz ConBee) 71 3d 30 2e 39 2c 2a 2f 2a 3b 71 3d 30 2e 38 0d 0a 43 6f 6e q=0.9,*/*;q=0.8..Con
2019-01-12 21:28:06.760 (Deconz ConBee) 6e 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d 61 6c 69 76 65 0d nection:.keep-alive.
2019-01-12 21:28:06.760 (Deconz ConBee) 0a 0d 0a .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ...
2019-01-12 21:28:06.783 (Deconz ConBee) Pushing 'ReadEvent' on to queue
2019-01-12 21:28:06.811 (Deconz ConBee) Processing 'ReadEvent' message
2019-01-12 21:28:06.811 (Deconz ConBee) Received 159 bytes of data
2019-01-12 21:28:06.811 (Deconz ConBee) 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d 0a 41 63 63 HTTP/1.1.200.OK..Acc
2019-01-12 21:28:06.811 (Deconz ConBee) 65 73 73 2d 43 6f 6e 74 72 6f 6c 2d 41 6c 6c 6f 77 2d 4f 72 ess-Control-Allow-Or
2019-01-12 21:28:06.811 (Deconz ConBee) 69 67 69 6e 3a 20 2a 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 igin:.*..Content-Typ
2019-01-12 21:28:06.811 (Deconz ConBee) 65 3a 20 61 70 70 6c 69 63 61 74 69 6f 6e 2f 6a 73 6f 6e 3b e:.application/json;
2019-01-12 21:28:06.811 (Deconz ConBee) 20 63 68 61 72 73 65 74 3d 75 74 66 2d 38 0d 0a 43 6f 6e 74 .charset=utf-8..Cont
2019-01-12 21:28:06.811 (Deconz ConBee) 65 6e 74 2d 4c 65 6e 67 74 68 3a 32 0d 0a 45 54 61 67 3a 22 ent-Length:2..ETag:"
2019-01-12 21:28:06.811 (Deconz ConBee) 39 63 64 63 35 33 61 33 32 33 65 31 62 32 37 37 33 36 35 61 9cdc53a323e1b277365a
2019-01-12 21:28:06.811 (Deconz ConBee) 32 65 36 62 30 35 39 32 33 65 30 65 22 0d 0a 0d 0a 7b 7d .. 2e6b05923e0e"....{}
2019-01-12 21:28:06.811 (Deconz ConBee) Pushing 'onMessageCallback' on to queue
2019-01-12 21:28:06.811 (Deconz ConBee) Processing 'onMessageCallback' message
2019-01-12 21:28:06.811 (Deconz ConBee) Calling message handler 'onMessage'.
2019-01-12 21:28:06.811 (Deconz ConBee) onMessage called
2019-01-12 21:28:06.812 (Deconz ConBee) Pushing 'DisconnectDirective' on to queue
2019-01-12 21:28:06.812 (Deconz ConBee) Classic Data : {}
2019-01-12 21:28:06.812 (Deconz ConBee) Processing 'DisconnectDirective' message
2019-01-12 21:28:06.812 (Deconz ConBee) Disconnect directive received for '10.0.20.3:80'.
2019-01-12 21:28:06.812 (Deconz ConBee) Handling disconnect, socket (10.0.20.3:80) is connected
2019-01-12 21:28:06.812 (Deconz ConBee) Queued asyncronous read aborted (10.0.20.3:80).
2019-01-12 21:28:06.812 (Deconz ConBee) Pushing 'DisconnectedEvent' on to queue
2019-01-12 21:28:06.863 (Deconz ConBee) Processing 'DisconnectedEvent' message
2019-01-12 21:28:06.863 (Deconz ConBee) Disconnect event received for '10.0.20.3:80'.
2019-01-12 21:28:06.863 (Deconz ConBee) Pushing 'onDisconnectCallback' on to queue
2019-01-12 21:28:06.863 (Deconz ConBee) Processing 'onDisconnectCallback' message
2019-01-12 21:28:06.863 (Deconz ConBee) Calling message handler 'onDisconnect'.
2019-01-12 21:28:06.812 Error: (Deconz ConBee) Bad JSON response : {}
Here's what is in response to GET 10.0.20.3/api/B53E43891F/config/:

Code: Select all

{
    "UTC": "2019-01-12T19:49:55",
    "apiversion": "1.16.0",
    "backup": {
        "errorcode": 0,
        "status": "idle"
    },
    "bridgeid": "00212EFFFF0325CE",
    "datastoreversion": "60",
    "devicename": "ConBee",
    "dhcp": true,
    "factorynew": false,
    "fwversion": "0x262f0500",
    "gateway": "10.0.20.1",
    "internetservices": {
        "remoteaccess": "disconnected"
    },
    "ipaddress": "10.0.20.3",
    "linkbutton": false,
    "localtime": "2019-01-12T20:49:55",
    "mac": "b8:27:eb:98:6f:d5",
    "modelid": "deCONZ",
    "name": "Phoscon GW",
    "netmask": "255.255.255.0",
    "networkopenduration": 60,
    "panid": 19614,
    "portalconnection": "disconnected",
    "portalservices": false,
    "portalstate": {
        "communication": "disconnected",
        "incoming": false,
        "outgoing": false,
        "signedon": false
    },
    "proxyaddress": "none",
    "proxyport": 0,
    "replacesbridgeid": null,
    "rfconnected": true,
    "starterkitid": "",
    "swupdate": {
        "checkforupdate": false,
        "devicetypes": {
            "bridge": false,
            "lights": [],
            "sensors": []
        },
        "notify": false,
        "text": "",
        "updatestate": 0,
        "url": ""
    },
    "swupdate2": {
        "autoinstall": {
            "on": false,
            "updatetime": ""
        },
        "bridge": {
            "lastinstall": "%cI",
            "state": "allreadytoinstall"
        },
        "checkforupdate": false,
        "install": false,
        "lastchange": "",
        "lastinstall": "",
        "state": "allreadytoinstall"
    },
    "swversion": "2.5.54",
    "timeformat": "24h",
    "timezone": "Etc/GMT-1",
    "uuid": "156f51dd-0f0d-43cf-83d6-707f57fb45f7",
    "websocketnotifyall": true,
    "websocketport": 443,
    "whitelist": {
        "06D45E81AD": {
            "create date": "2019-01-11T21:42:24",
            "last use date": "2019-01-12T19:31:58",
            "name": "Phoscon#B1324x964"
        },
        "0C32C6AFED": {
            "create date": "2019-01-11T22:43:19",
            "last use date": "2019-01-12T19:49:19",
            "name": "Phoscon#B1324x964"
        },
        "10F43E8807": {
            "create date": "2019-01-11T23:46:50",
            "last use date": "2019-01-11T23:54:24",
            "name": "Phoscon#B1324x964"
        },
        "22F5219387": {
            "create date": "2019-01-11T21:44:45",
            "last use date": "2019-01-11T21:44:45",
            "name": "deCONZ WebApp"
        },
        "2788F8B379": {
            "create date": "2019-01-11T23:55:37",
            "last use date": "2019-01-12T00:00:20",
            "name": "Phoscon#B1324x964"
        },
        "835BEBAFDA": {
            "create date": "2019-01-11T23:59:44",
            "last use date": "2019-01-12T00:02:18",
            "name": "domoticz"
        },
        "860074BD4D": {
            "create date": "2019-01-11T23:42:41",
            "last use date": "2019-01-11T23:42:41",
            "name": "deCONZ WebApp"
        },
        "8836F7D27B": {
            "create date": "2019-01-11T21:43:12",
            "last use date": "2019-01-11T22:48:30",
            "name": "Phoscon#B1324x964"
        },
        "ACD92B9EF4": {
            "create date": "2019-01-11T21:36:16",
            "last use date": "2019-01-11T21:39:36",
            "name": "Phoscon#B1324x964"
        },
        "B53E43891F": {
            "create date": "2019-01-12T00:02:00",
            "last use date": "2019-01-12T19:49:55",
            "name": "domoticz"
        },
        "DDE9E1EA61": {
            "create date": "2019-01-11T21:34:34",
            "last use date": "2019-01-11T21:36:07",
            "name": "Phoscon#B1324x964"
        }
    },
    "zigbeechannel": 15
}
and example request for sensors also seems to be ok:

Code: Select all

{
    "1": {
        "config": {
            "configured": true,
            "on": true,
            "sunriseoffset": 30,
            "sunsetoffset": -30
        },
        "etag": "9cdc53a323e1b277365a2e6b05923e0e",
        "manufacturername": "Philips",
        "modelid": "PHDL00",
        "name": "Daylight",
        "state": {
            "dark": true,
            "daylight": false,
            "lastupdated": "2019-01-12T16:55:44",
            "status": 230
        },
        "swversion": "1.0",
        "type": "Daylight",
        "uniqueid": "00:21:2e:ff:ff:03:25:ce-01"
    },
    "2": {
        "config": {
            "battery": 100,
            "offset": 0,
            "on": true,
            "reachable": true
        },
        "ep": 1,
        "etag": "168cf9c4f3df7a9042ac738122ab8f8b",
        "manufacturername": "LUMI",
        "modelid": "lumi.weather",
        "name": "Sensor @Salon",
        "state": {
            "lastupdated": "2019-01-12T20:27:30",
            "temperature": 2234
        },
        "swversion": "20161129",
        "type": "ZHATemperature",
        "uniqueid": "00:15:8d:00:01:71:f1:ae-01-0402"
    },
    "3": {
        "config": {
            "battery": 100,
            "offset": 0,
            "on": true,
            "reachable": true
        },
        "ep": 1,
        "etag": "168cf9c4f3df7a9042ac738122ab8f8b",
        "manufacturername": "LUMI",
        "modelid": "lumi.weather",
        "name": "Sensor @Salon",
        "state": {
            "humidity": 4273,
            "lastupdated": "2019-01-12T20:27:30"
        },
        "swversion": "20161129",
        "type": "ZHAHumidity",
        "uniqueid": "00:15:8d:00:01:71:f1:ae-01-0405"
    },
    "4": {
        "config": {
            "battery": 100,
            "on": true,
            "reachable": true
        },
        "ep": 1,
        "etag": "168cf9c4f3df7a9042ac738122ab8f8b",
        "manufacturername": "LUMI",
        "modelid": "lumi.weather",
        "name": "Sensor @Salon",
        "state": {
            "lastupdated": "2019-01-12T20:27:30",
            "pressure": 985
        },
        "swversion": "20161129",
        "type": "ZHAPressure",
        "uniqueid": "00:15:8d:00:01:71:f1:ae-01-0403"
    },
    "5": {
        "config": {
            "battery": 85,
            "on": true,
            "reachable": true,
            "temperature": 3100
        },
        "ep": 1,
        "etag": "e74878e122c12d0b2acd6c1cdbb7eba8",
        "manufacturername": "LUMI",
        "mode": 1,
        "modelid": "lumi.sensor_86sw2",
        "name": "Wireless Switch No 1",
        "state": {
            "buttonevent": 1002,
            "lastupdated": "2019-01-12T20:18:27"
        },
        "swversion": "20170411",
        "type": "ZHASwitch",
        "uniqueid": "00:15:8d:00:01:e0:64:45-01-0006"
    },
    "6": {
        "config": {
            "battery": 100,
            "offset": 0,
            "on": true,
            "reachable": true
        },
        "ep": 1,
        "etag": "758afdf54258d6d04caa59ff3c1d954e",
        "manufacturername": "LUMI",
        "modelid": "lumi.weather",
        "name": "Sensor @Łazienka",
        "state": {
            "lastupdated": "2019-01-12T20:17:05",
            "temperature": 2285
        },
        "swversion": "20161129",
        "type": "ZHATemperature",
        "uniqueid": "00:15:8d:00:01:b7:b0:c1-01-0402"
    },
    "7": {
        "config": {
            "battery": 100,
            "offset": 0,
            "on": true,
            "reachable": true
        },
        "ep": 1,
        "etag": "5a03e9592fa99c8d7fd2d2af7cd0df20",
        "manufacturername": "LUMI",
        "modelid": "lumi.weather",
        "name": "Sensor @Łazienka",
        "state": {
            "humidity": 4262,
            "lastupdated": "2019-01-12T20:17:06"
        },
        "swversion": "20161129",
        "type": "ZHAHumidity",
        "uniqueid": "00:15:8d:00:01:b7:b0:c1-01-0405"
    },
    "8": {
        "config": {
            "battery": 100,
            "on": true,
            "reachable": true
        },
        "ep": 1,
        "etag": "5a03e9592fa99c8d7fd2d2af7cd0df20",
        "manufacturername": "LUMI",
        "modelid": "lumi.weather",
        "name": "Sensor @Łazienka",
        "state": {
            "lastupdated": "2019-01-12T20:17:06",
            "pressure": 985
        },
        "swversion": "20161129",
        "type": "ZHAPressure",
        "uniqueid": "00:15:8d:00:01:b7:b0:c1-01-0403"
    },
    "9": {
        "config": {
            "battery": 100,
            "on": true,
            "reachable": true
        },
        "ep": 1,
        "etag": "e4fdd38baa0bce0d5bd273d47a544ca3",
        "manufacturername": "LUMI",
        "mode": 1,
        "modelid": "lumi.sensor_switch",
        "name": "Smart Switch No 1",
        "state": {
            "buttonevent": 1002,
            "lastupdated": "2019-01-12T18:50:10"
        },
        "type": "ZHASwitch",
        "uniqueid": "00:15:8d:00:01:d6:ab:72-01-0006"
    }
}
API key seems to be ok, sensors show up fine when queried by REST... do you have any idea what I've been doing wrong?

Re: deCONZ hardware support

Posted: Saturday 12 January 2019 21:48
by Thorgal789
Ha yep, I have understand.
So first, you are not on the good topic ^^, the good one is here https://www.domoticz.com/forum/viewtopi ... 68&t=25631.
And after it's my fault, you have find a bug, congratulations :), as you don't have bulb, the plugin stay locked at bulb discovery. All is fine on your side, gve me some time to correct it.

Re: deCONZ hardware support

Posted: Saturday 12 January 2019 22:11
by Thorgal789
TroLoo wrote: Saturday 12 January 2019 21:32 I'm not sure what I've been doing wrong... maybe you can give me some hint where to look.
....
Done, I have push a new version, it will logically correct this bug. Tell me if it works pls, because I have push it directly on official branch.

Re: deCONZ hardware support

Posted: Sunday 13 January 2019 0:55
by TroLoo
Hi Thorgal789,

Thanks a lot for express support, I didn't have time to check it extensively but it seems like it's working fine now :-)

Code: Select all

2019-01-13 00:52:41.101 Status: (deCONZ ConBee) Started.
2019-01-13 00:52:41.347 Status: (deCONZ ConBee) Entering work loop.
2019-01-13 00:52:41.347 Status: (deCONZ ConBee) Initialized version 1.0.2, author 'Smanar'
2019-01-13 00:52:41.400 Status: (deCONZ ConBee) Laucnhing websocket
2019-01-13 00:52:50.892 (deCONZ ConBee) ### Request lights
2019-01-13 00:52:50.892 (deCONZ ConBee) Send Command /api/B53E43891F/lights/ with None
2019-01-13 00:52:50.993 (deCONZ ConBee) onConnect called
2019-01-13 00:52:51.044 (deCONZ ConBee) Classic Data : {}
2019-01-13 00:52:51.044 (deCONZ ConBee) ### Request sensors
2019-01-13 00:52:51.044 (deCONZ ConBee) Send Command /api/B53E43891F/sensors/ with None
2019-01-13 00:52:51.095 (deCONZ ConBee) onConnect called
2019-01-13 00:52:51.161 (deCONZ ConBee) Classic Data : {'3': {'name': 'Sensor @Salon', 'swversion': '20161129', 'state': {'lastupdated': '2019-01-12T23:41:50', 'humidity': 4424}, 'uniqueid': '00:15:8d:00:01:71:f1:ae-01-0405', 'etag': 'd2bd858bb30499a74ab027d91598b6ec', 'type': 'ZHAHumidity', 'ep': 1, 'modelid': 'lumi.weather', 'config': {'reachable': True, 'offset': 0, 'battery': 100, 'on': True}, 'manufacturername': 'LUMI'}, '7': {'name': 'Sensor @Łazienka', 'swversion': '20161129', 'state': {'lastupdated': '2019-01-12T23:42:51', 'humidity': 4423}, 'uniqueid': '00:15:8d:00:01:b7:b0:c1-01-0405', 'etag': '34c0456d18ec7db6cda1f19266a95c95', 'type': 'ZHAHumidity', 'ep': 1, 'modelid': 'lumi.weather', 'config': {'reachable': True, 'offset': 0, 'battery': 100, 'on': True}, 'manufacturername': 'LUMI'}, '9': {'mode': 1, 'name': 'Smart Switch No 1', 'state': {'buttonevent': 1002, 'lastupdated': '2019-01-12T18:50:10'}, 'uniqueid': '00:15:8d:00:01:d6:ab:72-01-0006', 'etag': 'e4fdd38baa0bce0d5bd273d47a544ca3', 'type': 'ZHASwitch', 'ep': 1, 'modelid': 'lumi.sensor_switch', 'config': {'reachable': True, 'battery': 100, 'on': True}, 'manufacturername': 'LUMI'}, '1': {'name': 'Daylight', 'swversion': '1.0', 'state': {'status': 100, 'lastupdated': '2019-01-12T22:49:04', 'dark': True, 'daylight': False}, 'uniqueid': '00:21:2e:ff:ff:03:25:ce-01', 'etag': '9cdc53a323e1b277365a2e6b05923e0e', 'type': 'Daylight', 'modelid': 'PHDL00', 'config': {'sunriseoffset': 30, 'sunsetoffset': -30, 'configured': True, 'on': True}, 'manufacturername': 'Philips'}, '6': {'name': 'Sensor @Łazienka', 'swversion': '20161129', 'state': {'temperature': 2282, 'lastupdated': '2019-01-12T23:42:51'}, 'uniqueid': '00:15:8d:00:01:b7:b0:c1-01-0402', 'etag': 'c0b1534dfd6bb0372d7bceb0754ecc87', 'type': 'ZHATemperature', 'ep': 1, 'modelid': 'lumi.weather', 'config': {'reachable': True, 'offset': 0, 'battery': 100, 'on': True}, 'manufacturername': 'LUMI'}, '5': {'mode': 1, 'name': 'Wireless Switch No 1', 'swversion': '20170411', 'state': {'buttonevent': 1002, 'lastupdated': '2019-01-12T20:18:27'}, 'uniqueid': '00:15:8d:00:01:e0:64:45-01-0006', 'etag': '2c419a2b43d077bf9737060ed28f5760', 'type': 'ZHASwitch', 'ep': 1, 'modelid': 'lumi.sensor_86sw2', 'config': {'temperature': 3200, 'reachable': True, 'battery': 85, 'on': True}, 'manufacturername': 'LUMI'}, '8': {'name': 'Sensor @Łazienka', 'swversion': '20161129', 'state': {'lastupdated': '2019-01-12T23:42:51', 'pressure': 983}, 'uniqueid': '00:15:8d:00:01:b7:b0:c1-01-0403', 'etag': 'c0b1534dfd6bb0372d7bceb0754ecc87', 'type': 'ZHAPressure', 'ep': 1, 'modelid': 'lumi.weather', 'config': {'reachable': True, 'battery': 100, 'on': True}, 'manufacturername': 'LUMI'}, '4': {'name': 'Sensor @Salon', 'swversion': '20161129', 'state': {'lastupdated': '2019-01-12T23:41:50', 'pressure': 983}, 'uniqueid': '00:15:8d:00:01:71:f1:ae-01-0403', 'etag': 'd2bd858bb30499a74ab027d91598b6ec', 'type': 'ZHAPressure', 'ep': 1, 'modelid': 'lumi.weather', 'config': {'reachable': True, 'battery': 100, 'on': True}, 'manufacturername': 'LUMI'}, '2': {'name': 'Sensor @Salon', 'swversion': '20161129', 'state': {'temperature': 2217, 'lastupdated': '2019-01-12T23:41:50'}, 'uniqueid': '00:15:8d:00:01:71:f1:ae-01-0402', 'etag': 'd2bd858bb30499a74ab027d91598b6ec', 'type': 'ZHATemperature', 'ep': 1, 'modelid': 'lumi.weather', 'config': {'reachable': True, 'offset': 0, 'battery': 100, 'on': True}, 'manufacturername': 'LUMI'}}
2019-01-13 00:52:51.161 (deCONZ ConBee) ### Device > 3 Name:Sensor @Salon Type:ZHAHumidity Details:{'lastupdated': '2019-01-12T23:41:50', 'humidity': 4424}
2019-01-13 00:52:51.164 (deCONZ ConBee) ### Device > 7 Name:Sensor @Łazienka Type:ZHAHumidity Details:{'lastupdated': '2019-01-12T23:42:51', 'humidity': 4423}
2019-01-13 00:52:51.166 (deCONZ ConBee) ### Device > 9 Name:Smart Switch No 1 Type:ZHASwitch Details:{'buttonevent': 1002, 'lastupdated': '2019-01-12T18:50:10'}
2019-01-13 00:52:51.175 (deCONZ ConBee) ### Device > 1 Name:Daylight Type:Daylight Details:{'status': 100, 'lastupdated': '2019-01-12T22:49:04', 'dark': True, 'daylight': False}
2019-01-13 00:52:51.178 (deCONZ ConBee) ### Device > 6 Name:Sensor @Łazienka Type:ZHATemperature Details:{'temperature': 2282, 'lastupdated': '2019-01-12T23:42:51'}
2019-01-13 00:52:51.180 (deCONZ ConBee) ### Device > 5 Name:Wireless Switch No 1 Type:ZHASwitch Details:{'buttonevent': 1002, 'lastupdated': '2019-01-12T20:18:27'}
2019-01-13 00:52:51.184 (deCONZ ConBee) ### Device > 8 Name:Sensor @Łazienka Type:ZHAPressure Details:{'lastupdated': '2019-01-12T23:42:51', 'pressure': 983}
2019-01-13 00:52:51.186 (deCONZ ConBee) ### Device > 4 Name:Sensor @Salon Type:ZHAPressure Details:{'lastupdated': '2019-01-12T23:41:50', 'pressure': 983}
2019-01-13 00:52:51.189 (deCONZ ConBee) ### Device > 2 Name:Sensor @Salon Type:ZHATemperature Details:{'temperature': 2217, 'lastupdated': '2019-01-12T23:41:50'}
2019-01-13 00:52:51.191 (deCONZ ConBee) ### Request Groups
2019-01-13 00:52:51.191 (deCONZ ConBee) Send Command /api/B53E43891F/groups/ with None
2019-01-13 00:52:51.242 (deCONZ ConBee) onConnect called
2019-01-13 00:52:51.343 (deCONZ ConBee) Classic Data : {}
2019-01-13 00:52:51.164 Status: (deCONZ ConBee) ### Create Device 00:15:8d:00:01:71:f1:ae-01-0405 > Sensor @Salon (ZHAHumidity)
2019-01-13 00:52:51.166 Status: (deCONZ ConBee) ### Create Device 00:15:8d:00:01:b7:b0:c1-01-0405 > Sensor @Łazienka (ZHAHumidity)
2019-01-13 00:52:51.175 Status: (deCONZ ConBee) ### Create Device 00:15:8d:00:01:d6:ab:72-01-0006 > Smart Switch No 1 (Switch_Generic)
2019-01-13 00:52:51.178 Status: (deCONZ ConBee) ### Create Device 00:21:2e:ff:ff:03:25:ce-01 > Daylight (Daylight)
2019-01-13 00:52:51.180 Status: (deCONZ ConBee) ### Create Device 00:15:8d:00:01:b7:b0:c1-01-0402 > Sensor @Łazienka (ZHATemperature)
2019-01-13 00:52:51.183 Status: (deCONZ ConBee) ### Create Device 00:15:8d:00:01:e0:64:45-01-0006 > Wireless Switch No 1 (Switch_Generic)
2019-01-13 00:52:51.186 Status: (deCONZ ConBee) ### Create Device 00:15:8d:00:01:b7:b0:c1-01-0403 > Sensor @Łazienka (ZHAPressure)
2019-01-13 00:52:51.188 Status: (deCONZ ConBee) ### Create Device 00:15:8d:00:01:71:f1:ae-01-0403 > Sensor @Salon (ZHAPressure)
2019-01-13 00:52:51.191 Status: (deCONZ ConBee) ### Create Device 00:15:8d:00:01:71:f1:ae-01-0402 > Sensor @Salon (ZHATemperature)
2019-01-13 00:52:51.343 Status: (deCONZ ConBee) ### deCONZ ready
2019-01-13 00:52:51.344 Status: (deCONZ ConBee) ### Found 0 Operators, 9 Sensors, 0 Groups with 0 Ignored
The devices were created! ;-)

Re: deCONZ hardware support

Posted: Thursday 17 January 2019 10:33
by TroLoo
Hi Thorgal789,

The plugin works great, just wanted to confirm that your express update fixed the issue :-)

I noticed, that some messages received via REST are not interpreted properly:

Code: Select all

2019-01-17 09:25:35.427 Error: (deCONZ ConBee) PyDomoticz_Error failed to parse parameters: string expected.
2019-01-17 09:25:35.427 Error: (deCONZ ConBee) 'PyDomoticz_Error' failed 'ValueError'.
2019-01-17 09:25:35.427 Error: (deCONZ ConBee) 'onMessage' failed 'SystemError'.
2019-01-17 09:25:35.427 Error: (deCONZ ConBee) ----> Line 704 in /home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py, function onMessage
2019-01-17 09:25:35.427 Error: (deCONZ ConBee) ----> Line 201 in /home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py, function onMessage
Is there any way I can help you to see which messages aren't recognised so that you can enhance the plugin? :-) I suppose that these information is not critical, anyway it would be great to minimise the number of unrecognised communication.

Thanks!

Re: deCONZ hardware support

Posted: Thursday 17 January 2019 20:20
by Thorgal789
Hello, these one is critical for me, because it mean there is a REST information that are not managed by the plugin. And you are right, we need to avoid unrecognised communication.
It's perhaps an empty information (just "{}" ), normaly on your log you will have something like this just before the bug
2019-01-17 20:12:20.412 (deCONZ) onMessage called
2019-01-17 20:12:20.413 (deCONZ) ###### WebSocket Data : XXXXXXXXXXXX
Can you give me this line pls ?

But its realy strange the line 201 is
Domoticz.Error("Data : " + str(_Data))

So in all case the data is converted to string, so it's strange having "PyDomoticz_Error failed to parse parameters: string expected.". Your version is 1.0.2 ?

And, just for information, this topic is for the (future) hardware version, the python version is here https://www.domoticz.com/forum/viewtopi ... 68&t=25631

Re: deCONZ hardware support

Posted: Thursday 17 January 2019 21:04
by TroLoo
Hi, I will keep future questions in a new thread, but since we started to solve it already here, I reply here to be consistent ;-)

Here's some more complete landscape just before and after error, three times in a short period of time:

Code: Select all

2019-01-17 19:10:35.261 (deCONZ ConBee) ### Update device (deCONZ ConBee - Wireless Switch No 1) : {'nValue': 0, 'sValue': 'Off'}
2019-01-17 19:11:35.184 (deCONZ ConBee) ###### WebSocket Data : {'t': 'event', 'e': 'changed', 'state': {'lastupdated': '2019-01-17T19:11:35', 'temperature': 2413}, 'uniqueid': '00:15:8d:00:01:b7:b0:c1-01-0402', 'id': '6', 'r': 'sensors'}
2019-01-17 19:11:35.185 (deCONZ ConBee) ### Update device (Sensor @Łazienka) : {'nValue': 0, 'sValue': '24.13'}
2019-01-17 19:11:35.292 (deCONZ ConBee) ###### WebSocket Data : {'t': 'event', 'e': 'changed', 'state': {'lastupdated': '2019-01-17T19:11:35', 'humidity': 7398}, 'uniqueid': '00:15:8d:00:01:b7:b0:c1-01-0405', 'id': '7', 'r': 'sensors'}
2019-01-17 19:11:35.293 (deCONZ ConBee) ### Update device (Sensor @Łazienka) : {'nValue': 73, 'sValue': '0'}
2019-01-17 19:11:35.300 (deCONZ ConBee) ###### WebSocket Data : {'t': 'event', 'e': 'changed', 'state': {'lastupdated': '2019-01-17T19:11:35', 'pressure': 984}, 'uniqueid': '00:15:8d:00:01:b7:b0:c1-01-0403', 'id': '8', 'r': 'sensors'}
2019-01-17 19:11:35.301 (deCONZ ConBee) ### Update device (Sensor @Łazienka) : {'nValue': 0, 'sValue': '984'}
2019-01-17 19:17:16.871 (deCONZ ConBee) ###### WebSocket Data : {'t': 'event', 'e': 'changed', 'state': {'lastupdated': '2019-01-17T19:17:16', 'temperature': 2427}, 'uniqueid': '00:15:8d:00:01:b7:b0:c1-01-0402', 'id': '6', 'r': 'sensors'}
2019-01-17 19:17:16.872 (deCONZ ConBee) ### Update device (Sensor @Łazienka) : {'nValue': 0, 'sValue': '24.27'}
2019-01-17 19:17:16.929 Error: (deCONZ ConBee) PyDomoticz_Error failed to parse parameters: string expected.
2019-01-17 19:17:16.929 Error: (deCONZ ConBee) 'PyDomoticz_Error' failed 'ValueError'.
2019-01-17 19:17:16.929 Error: (deCONZ ConBee) 'onMessage' failed 'SystemError'.
2019-01-17 19:17:16.929 Error: (deCONZ ConBee) ----> Line 704 in /home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py, function onMessage
2019-01-17 19:17:16.929 Error: (deCONZ ConBee) ----> Line 201 in /home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py, function onMessage
2019-01-17 19:20:28.932 Logitech Media Server: (@Kubulek) Disconnected
2019-01-17 19:20:47.068 Logitech Media Server: (@Kubulek) Off
2019-01-17 19:20:51.481 (deCONZ ConBee) ###### WebSocket Data : {'config': {'offset': 0, 'on': True, 'reachable': True, 'battery': 100}, 'e': 'changed', 'uniqueid': '00:15:8d:00:01:71:f1:ae-01-0402', 'id': '2', 'r': 'sensors', 't': 'event'}
2019-01-17 19:20:51.482 (deCONZ ConBee) ### Update device (Sensor @Salon) : {'nValue': 0, 'sValue': '23.69', 'BatteryLevel': 100}
2019-01-17 19:20:51.538 Error: (deCONZ ConBee) PyDomoticz_Error failed to parse parameters: string expected.
2019-01-17 19:20:51.539 Error: (deCONZ ConBee) 'PyDomoticz_Error' failed 'ValueError'.
2019-01-17 19:20:51.539 Error: (deCONZ ConBee) 'onMessage' failed 'SystemError'.
2019-01-17 19:20:51.539 Error: (deCONZ ConBee) ----> Line 704 in /home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py, function onMessage
2019-01-17 19:20:51.539 Error: (deCONZ ConBee) ----> Line 201 in /home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py, function onMessage
2019-01-17 19:21:33.836 (Aeotec Z-Stick) General/kWh (Wall Plug #2)
2019-01-17 19:22:20.784 Logitech Media Server: (@Kubulek) Disconnected
2019-01-17 19:22:37.998 Logitech Media Server: (@Kubulek) Off
2019-01-17 19:22:48.452 (deCONZ ConBee) ###### WebSocket Data : {'config': {'offset': 0, 'on': True, 'reachable': True, 'battery': 100}, 'e': 'changed', 'uniqueid': '00:15:8d:00:01:b7:b0:c1-01-0402', 'id': '6', 'r': 'sensors', 't': 'event'}
2019-01-17 19:22:48.452 (deCONZ ConBee) ### Update device (Sensor @Łazienka) : {'nValue': 0, 'sValue': '24.27', 'BatteryLevel': 100}
2019-01-17 19:22:48.459 Error: (deCONZ ConBee) PyDomoticz_Error failed to parse parameters: string expected.
2019-01-17 19:22:48.459 Error: (deCONZ ConBee) 'PyDomoticz_Error' failed 'ValueError'.
2019-01-17 19:22:48.460 Error: (deCONZ ConBee) 'onMessage' failed 'SystemError'.
2019-01-17 19:22:48.460 Error: (deCONZ ConBee) ----> Line 704 in /home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py, function onMessage
2019-01-17 19:22:48.460 Error: (deCONZ ConBee) ----> Line 201 in /home/pi/domoticz/plugins/Domoticz-deCONZ/plugin.py, function onMessage
It's related to Aqara Temp/Humid/Press sensor.

And again, great job you are doing here! :-)

EDIT: forgot to mention which version of the plugin I'm using - it's the one (I don't know how to check it) that you fixed my first issue, it's been installed right after your message.

Re: deCONZ hardware support

Posted: Thursday 17 January 2019 22:55
by Thorgal789
Thx for help ^^, But I m sorry, I rly can't reproduce the bug.
Perhaps unicode problems.
Can you try to enable more logs with enabling "connexion" in debug in the plugin configuration ?
If all is fine you will see in log, raw data from the connexion. And with the problem I hope.

Re: deCONZ hardware support

Posted: Saturday 02 February 2019 21:30
by Thorgal789
Finally corrected in the 1.0.4 version.

Re: deCONZ hardware support

Posted: Sunday 03 February 2019 14:53
by Minglarn
Hi!

Just bought the Conbee usb for testing purposes... And there seemse to be a jungle out there...
Is there any support for the dresden zigbee usb gateway?

Re: deCONZ hardware support

Posted: Sunday 03 February 2019 17:05
by Thorgal789
Lol, yep, 2 topics will almost the same title.
I have answer on the other one, if it was your only one question ?

For python plugin > https://www.domoticz.com/forum/viewtopi ... 68&t=25631