jgow / org.openhab.binding.mqtt.frigatesvr

Frigate SVR binding for OpenHAB
Eclipse Public License 2.0
14 stars 1 forks source link

Contact state the wrong way round? #3

Closed s0129 closed 1 year ago

s0129 commented 1 year ago

I was under the impression in Openhab Contact state is: OPEN = True = ON CLOSED = False = OFF

I think currently in this binding it is the other way round? I am seeing when mqtt reports detected motion as OFF, Openhab is displaying OPEN.

jgow commented 1 year ago

As an electrical engineer, to me a 'contact' (switch) is usually active when it is closed and current is flowing. (a light is on when you close the switch). Thus, in the binding, when motion is detected, the switch is closed. The inverse logic above doesn't make any sense to me.