konnected-io / konnected-security

Konnected connects wired sensors and switches to SmartThings, Home Assistant, Hubitat and OpenHAB
https://konnected.io
Apache License 2.0
418 stars 323 forks source link

Update konnected-contact-sensor.groovy #44

Closed vseven closed 6 years ago

vseven commented 7 years ago

Same as last commit except do not flip background image (keep actual status of open and closed for the icon) but still flip color and also added a label for "Armed"/"Disarmed".

Personally this will be less confusing since the icon/background image would be consistent to the actual status of the input but still allow the color change. I had both ways in my device handlers and after a few days I felt I rather know the actual underlying status (with the icon). Of course if you change the icon it's not going to matter but still.