i have an issue with my HM-MOD-EM-8 - 8 - channel sender.
It is configured in “window contacts” mode and is working well - except that the status values are reversed. When i look at the values in Homematic they are correct - but in openhab classic UI (and in the logfiles as well) they are reversed.
Any clue how to solve this problem?
PS: I know that i can configure the values for open and close in Homemmatic device config. But as said the device is working well in homematic and other apps that are using the homematic RPC - like tinymatic.
You need a proxy item and change the state accordigly:
Contact KontaktFensterKuechesuedenLinks_proxy
rule "Invert contact"
when
Item KontaktFensterKuechesuedenLinks changed
then
if (triggeringItem.state == OPEN) KontaktFensterKuechesuedenLinks_Proxy.postUpdate(CLOSED)
if (triggeringItem.state == CLOSED) KontaktFensterKuechesuedenLinks_Proxy.postUpdate(OPEN)
end
Perhaps worth logging an enhancement request against Homematic binding for transformation support. It is a useful feature to match external exceptions to OpenHABs idealized workings.
thanks a lot for the workaround. works great and helps me also to solve another issue with homematic thing that sends the wrong status. (String instead of OPEN CLOSE)