Hello @David_Graeff,
I am currently testing the binding Dresden Elektronik deCONZ Binding with openHAB 2.4.0~M8-1 (Milestone Build), but unfortunately without success.
Things go online, but the linked items don’t change their values.
Here some more detailed information about the configuration.
Things:
The configuration in my file Deconz.things looks like this:
Bridge deconz:deconz:LightlinkPi "LightlinkPi" [ host="LightlinkPi", apikey="AFxxxxxxF7" ]
{
presencesensor HueMotionPresence "Presence" [ id="9" ]
temperaturesensor HueMotionTemperature "Temperature" [ id="10" ]
}
I think there is an error in the documentation: “ip” should be called “host” and the information about the “id” is missing too.
Here also the corresponding excerpt from the API of my Deconz-Bridge:
{
"config": {
"UTC": "2018-12-11T15:48:33",
"apiversion": "1.0.9",
"backup": {
"errorcode": 0,
"status": "idle"
},
"bridgeid": "00212EFFFF004D54",
"datastoreversion": "60",
"devicename": "RaspBee",
"dhcp": true,
"factorynew": false,
"fwversion": "0x262f0500",
"gateway": "192.168.86.1",
"internetservices": {
"remoteaccess": "disconnected"
},
"ipaddress": "192.168.86.51",
"linkbutton": false,
"localtime": "2018-12-11T16:48:33",
"mac": "b8:27:eb:49:82:dd",
"modelid": "deCONZ",
"name": "RaspBee-GW",
"netmask": "255.255.255.0",
"networkopenduration": 60,
"panid": 64272,
"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": "",
"state": "allreadytoinstall"
},
"checkforupdate": false,
"install": false,
"lastchange": "",
"lastinstall": "",
"state": "allreadytoinstall"
},
"swversion": "2.5.20",
"timeformat": "24h",
"timezone": "Etc/GMT-1",
"uuid": "876ca19e-74ba-4cb4-8f42-c6820478c3af",
"websocketnotifyall": true,
"websocketport": 8088,
"whitelist": {
[...]
},
"zigbeechannel": 15
},
"sensors": {
[......]
"9": {
"config": {
"alert": "none",
"battery": 66,
"delay": 12,
"ledindication": false,
"on": true,
"pending": [],
"reachable": true,
"sensitivity": 2,
"sensitivitymax": 2,
"usertest": false
},
"ep": 2,
"etag": "239845bdba7f74fb36d8d7cc449e0523",
"manufacturername": "Philips",
"modelid": "SML001",
"name": "Bewegungsmelder",
"state": {
"lastupdated": "2018-12-11T15:48:16",
"presence": false
},
"swversion": "6.1.0.18912",
"type": "ZHAPresence",
"uniqueid": "00:17:88:01:02:00:72:3b-02-0406"
},
"10": {
"config": {
"alert": "none",
"battery": 66,
"ledindication": false,
"offset": 0,
"on": true,
"pending": [],
"reachable": true,
"usertest": false
},
"ep": 2,
"etag": "d5866110648ce612ff832c6dc802e9cf",
"manufacturername": "Philips",
"modelid": "SML001",
"name": "Bewegungsmelder",
"state": {
"lastupdated": "2018-12-11T15:46:34",
"temperature": 2230
},
"swversion": "6.1.0.18912",
"type": "ZHATemperature",
"uniqueid": "00:17:88:01:02:00:72:3b-02-0402"
}
}
}
I think this should all be correct so far as Paper UI displays LightlinkPi, Presence and Temperature all as online.
Items:
The configuration in my file Deconz.items looks like this:
Switch TestSwitch "Pres" {channel="deconz:presencesensor:LightlinkPi:HueMotionPresence:presence"}
Number:Temperature TestNumber "Temp" {channel="deconz:temperaturesensor:LightlinkPi:HueMotionTemperature:temperature"}
I think there’s also a mistake in the documentation with the channel specification. Also, “Presence” should be of type “Switch” and not “Contact”.
Any idea where the mistake might be? There are also no error messages in the log. I already set the logger level of the binding to trace, but unfortunately the binding doesn’t return much information.