If you have a scene panel and wish an associated occupancy sequence to recall the last scene that was last sent by the panel, you can simply do this inside the occupancy sequence by conditionally sending a scene command if the last heard scene was that scene checking what the last scene sent. This will always work, provided that you do not use a scene as OFF (as the sequence would then send OFF when turning on).
How the sequence works
First, a reminder that the seconds field in an action is the amount of time we count before the condition and action is evaluated. For example, in action 6, we will count 300 seconds and then send a recall minimum level.
Secondly, a command will only be sent if the condition is met (or there is no condition). The sequence does not pause or end if a condition is not met, it moves on to the next action.
The first act of the sequence will be to go through the first 4 actions to see if which scene to send. If, at action 5 we see the target is still not on, we can conclude that the last heard scene is not 0-3 and we should send a scene that we choose as being the default scene. This is an emergency action that ensures that the sequence cannot start counting without turning the light on. If we do not have this, then the sequence could potentially not turn the lights on and then will only try to send ON again after it finishes*
Once we hit action 6, we are waiting 300 seconds to send the minimum level. If a trigger occurs (generally an occupancy detection) before the 300 seconds finishes, the sequence will obey the override behaviour and go to action 6 (ie, restart the countdown to minimum).
If the sequence sends the minimum, we are at action 7, on the delay before sending off. As we have modified the light, we will need to turn it back on if there is an occupied message received during the countdown to sending off. If this happens, we will obey the action 7 override behaviour to go to action 1 and check which scene we need to send again.
*You can also opt to override on the minimum to action 1 but that will send the scene command every time an occupancy trigger is heard. This is absolutely fine for any setup where the users will not be dimming the light / light sensors will not be stepping lights down.
Comments
0 comments
Please sign in to leave a comment.