Rule Machine 1.7.7 Released
This release introduces two new actions: Capture and Restore.
With Capture you can select switches, including dimmers, whose state will be captured when the Capture action is run. The state is on
or off
, and if on and dimmer, its level
.
When the Restore action runs, those switches are restored to the captured state.
There may only be a single Capture action in a rule. You could have Capture in Actions for True, and then Restore in Actions for False, or vice versa. When the rule runs, Capture is the first action performed, so the Actions for True could capture the state of some switches, and then change those states. Later, when the rule proves false, the captured states could be restored.
Rule github: https://github.com/bravenel/Rule-Trigger/blob/master/smartapps/bravenel/rule.src/rule.groovy. Save and Publish for me.