iobroker-community-adapters / ioBroker.openhab

Connect ioBroker with openHAB
MIT License
13 stars 3 forks source link

Changing temperature setpoint results in error message is read only #5

Closed DutchmanNL closed 6 years ago

DutchmanNL commented 7 years ago

error log

openhab.0 2017-07-20 00:46:29.013 warn State "openhab.0.items.Woonkamer_Temperatuur_Setpoint" is read only

somehow this values has an read only state ? changing the attributes of object to write = true does does not solve the issue (same error message)

GermanBluefox commented 7 years ago

How does your object look like? According to this: https://github.com/ioBroker/ioBroker.openhab/blob/master/main.js#L54 Object requires the native.name of the control point in openhab

cherusker1896 commented 7 years ago

Hello i have same the same issue. image

image

image

GermanBluefox commented 7 years ago

And I have the same question to you: who does you object look like in ioBroker?

DutchmanNL commented 7 years ago

sorry have been off for a while :/

the object looks as following:

value_temp_1 value_temp_2

{ "common": { "name": "", "type": "number", "unit": "°C", "role": "level.temperature", "min": 4.5, "max": 30.5, "read": true, "write": false, "custom": { "sql.0": { "enabled": true, "changesOnly": true, "debounce": "", "retention": 0, "changesRelogInterval": 0, "changesMinDelta": 0, "storageType": "" } } }, "native": { "name": "Woonkamer_Temperatuur_Setpoint", "type": "Number" }, "acl": { "object": 1638, "owner": "system.user.admin", "ownerGroup": "system.group.administrator", "state": 1638 }, "_id": "openhab.0.items.Woonkamer_Temperatuur_Setpoint", "type": "state" }

the openhab adapter reads the value as ""write": false,", when i change this to true i get the following log message:

openhab.0 2017-09-24 14:15:31.454 warn State "openhab.0.items.Woonkamer_Temperatuur_Setpoint" is read only

when i reboot the adapter the true flag is removed again

Schluesselmeister commented 6 years ago

Hi, I checked, what OH is sending to IOB and it seems that OH isn't providing the "readonly" attribute, if the object can be changed. Furthermore at least in my system, the stateDescription is not provided.

I will check and provide a solution later. Too late for today.

Regards, Sven

Schluesselmeister commented 6 years ago

It should work using the latest revision. Please recheck and close the issue.

Schluesselmeister commented 6 years ago

@DutchmanNL Is it working as expected? Do you still have some issues?

DutchmanNL commented 6 years ago

I will test this evening thank you for reminder

DutchmanNL commented 6 years ago

sorry it took a while before i was able to test, i currently did with version 0.2.1 installed from latest, sorry to say but no its not working:

1 - the target temperature (SOLL) is treated as read-only element instead of writable 2 - when i change it in iobroker to write and modify the value, the error message comes again:

State "openhab.0.items.Temperatuur_Soll" is read only

freifunkrothenburg commented 6 years ago

Same problem here. When I try to change the temperature I get following error massage in log

openhab.0 2018-08-12 18:45:03.462 warn State "openhab.0.items.BadThermostat" is read only

Would be great if you can provide any solution for this or any workaround

GermanBluefox commented 6 years ago

Try 0.3.0

freifunkrothenburg commented 6 years ago

Thank you after the Update to 0.3.0 it's working fine

DutchmanNL commented 6 years ago

fix confirmed in 0.3.0 working fine now thank you @GermanBluefox