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:
rule "Invert contact"
Item KontaktFensterKuechesuedenLinks changed
if (triggeringItem.state == OPEN) KontaktFensterKuechesuedenLinks_Proxy.postUpdate(CLOSED)
if (triggeringItem.state == CLOSED) KontaktFensterKuechesuedenLinks_Proxy.postUpdate(OPEN)