Description
The common room lights are controlled by a virtual button and motion sensors,
Steps
Desired flow:
-
If the virtual button is off and motion is detected, turn on lights
-
If the virtual button is off and no motion is detected, turn off lights
-
If the virtual button is on turn on the lights and ignore the motions
-
If the lights are already on and the virtual button is off, the virtual button should still be off and the lights should be turned off, when the button is pressed.
-
If the lights are off and the virtual button is on, the lights should stay off when the virtual button is pressed.
If possible, on long presses, the virtual button should sync with whatever state the lights have (if the button can sync with the lights automatically its even better)
- When the virtual button is on, any motion or time triggered light events should be ignored
Description
The common room lights are controlled by a virtual button and motion sensors,
Steps
Desired flow:
If the virtual button is off and motion is detected, turn on lights
If the virtual button is off and no motion is detected, turn off lights
If the virtual button is on turn on the lights and ignore the motions
If the lights are already on and the virtual button is off, the virtual button should still be off and the lights should be turned off, when the button is pressed.
If the lights are off and the virtual button is on, the lights should stay off when the virtual button is pressed.
If possible, on long presses, the virtual button should sync with whatever state the lights have (if the button can sync with the lights automatically its even better)