smarthomej / addons

SmartHome/J addons for openHAB
Eclipse Public License 2.0
59 stars 24 forks source link

Channel externalwindowopen is not updating #447

Closed furieuxjk closed 1 year ago

furieuxjk commented 1 year ago

Hi,

First of all - thanks for deCONZ Binding!

I'm running OpenHAB 3.4.1 on Ubuntu 22.04.1 and I have added "https://download.smarthomej.org/addons.json" to Json 3rd Party Add-on Service in OpenHAB administration panel. Then installed SmartHome/J deCONZ Binding via OpenHAB GUI.

I use ConBee II for ZigBee devices and now I'm testing Danfoss Ally Radiator Thermostat 014G2420 with OpenHAB.

I can successfully see in OpenHAB thermostat's Temperature, Battery Level, Battery Status, Valve Position, Last Update, I can use setpoint to set the temperature and it is successfully delivered to the thermostat's LCD.

But the problem is with externalwindowopen.

I have created an item:

Contact trv_external_window_open "External Window Status [%s]" <window> { channel="deconz:thermostat:zbgw:trv:externalwindowopen" }

And sitemap:

Text item=trv_external_window_open valuecolor=["OPEN"="red", "CLOSED"="green", "NULL"="red", "-"="red"]

If I manually change externalwindowopen from command line using this command:

curl -X PUT --data '{"externalwindowopen": true}' http://my-zigbee-gateway:8080/api/XXXXXXXXX/sensors/17/config

then it does not update status in OpenHAB. In sitemap I can see only "-".

If I check current externalwindowstatus with curl -X GET command (or with Postman application on MacOS), I get the correct value.

I have enabled trace logging for deCONZ binding in openhab-cli with:

log:set TRACE org.smarthomej.binding.deconz

And externalwindowopen is even updating in log file when I use that curl -X PUT command:

2023-01-12 23:11:52.350 [TRACE] [ernal.handler.SensorBaseThingHandler] - deconz:thermostat:zbgw:trv received SensorMessage{type='', config=SensorConfig{on=true, reachable=true, battery=91, temperature=null, heatsetpoint=2850, mode=null, offset=0, locked=false, externalwindowopen=false}, state=null, e='changed', r='SENSORS', t='event', id='17', manufacturername='', modelid='', name='', swversion='', ep='', lastseen='null', uniqueid='xx:xx:xx:xx:xx:xx:xx:21-01-0201'}

Do you have any idea why the status of externalwindowopen is not updating in OpenHAB contact item but logfile shows correct status? What else I am missing?

F.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

furieuxjk commented 1 year ago

I have no interest in this anymore because I moved to zigbee2mqtt.