Command and Control binding for openHAB
Go to file
Mike Jagdis f5572544ec [candc] Removed doc/NOTES - it's not relevant here
Signed-off-by: Mike Jagdis <mjagdis@eris-associates.co.uk>
2023-09-21 15:30:24 +01:00
doc [candc] Removed doc/NOTES - it's not relevant here 2023-09-21 15:30:24 +01:00
src/main [candc] Update to OH 3.4.0 and copyright year to 2022 2023-01-17 16:02:57 +00:00
pom.xml [candc] Update to OH 3.4.0 and copyright year to 2022 2023-01-17 16:02:57 +00:00
README.md [candc] Initial version 2021-01-06 14:07:02 +00:00
TODO.md [candc] Initial version 2021-01-06 14:07:02 +00:00

CandC Binding

This binding provides a number of Command-and-Control virtual things.

C&C Scene Manager

Manages scenes. The items that are to be included in the scenes are added to a group item with the same name as the C&C Scene Manager thing which is, in turn, linked to the Scene Membership Groups channel. A switch item is linked to the Write Enable channel. A number item is linked to the Scene Number channel and/or a string item is linked to the Scene Name channel.

A scene is saved by setting the member items to the chosen state then turning the item on the Write Enable channel on and sending the chosen scene name/number to the item linked to the Scene Name/Number channel. The scene is then saved and the Write Enable automatically turns off.

A scene is activated by sending the required scene name/number to the item linked to the Scene Name/Number channel. Each member of the scene group is then set to the state last saved for it under that scene name/number. (If there is no saved state for an item no action is taken for it and it is unchanged)

If scenes with different membership are required you may create and link extra membership groups whose names are suffixed with an underscore followed by the scene name. Such groups are used in preference to the main membership group if one exists for a particular scene.

Membership groups may contain nested groups. The Scene Manager will search the tree and operate on all items found.