Switch or Contact for channel - Best practice [message #1779980] |
Tue, 16 January 2018 10:04  |
Eclipse User |
|
|
|
I am maintaining a Binding for ZoneMinder in openHAB. I am restructuring the Binding, and also adding new functionality.
I am adding a new channel that should be active when the camera is tripped work because of motion. Now the discussion comes if it should be a Contact reporting OPEN/CLOSED or if it should be a SWITCH reporting ON/OFF.
Is there some sort of Best Practice?
|
|
|
|
Re: Switch or Contact for channel - Best practice [message #1780008 is a reply to message #1780000] |
Tue, 16 January 2018 13:54   |
Eclipse User |
|
|
|
Thanks, that was also my thought.
Back in openHAB 1.x I could add both a Switch and a Contact to the same Group (and it actually worked). I read somewhere that it has been removed by intention. Is there some recommended way of doing the conversion? Can I expect some kind of support for that in Eclipse SmartHome or maybe openHAB?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03720 seconds