I ended up here trying to solve my toggling issue. What solution should I use in Indigo 7.2? Is the more automatic way implemented yet?
Actually, I'm a bit confused. What should I use for my task?
- action groups?
- virtual on/off?
- virtual device group?
My task:
I have 8 lights which I would like to toggle with a single Fibaro button like this:
* single click: If any of the 8 light is on then turn them all off
* single click: If all lights are off then turn 4 of them on
* double click: Always turn all 8 lights on
I can control the above scenes via the following three action groups, but I can't toggle them.
1. Less light (turn 4 lights on)
2. More light (turn all 8 lights on)
3. Lights off (turn all 8 lights off)
I tried to define a variable which I set in the action groups. But this variable cannot be used in the trigger condition because it seems to be set directly so the opposite condition will be met as well.
Example:
Trigger 1
- trigger: listen for single click from button
- condition: only execute if lightVariable=false
- actions: Less light (turn on 4 lights)
Trigger 2
- trigger: listen for single click from button
- condition: only execute if lightVariable=true
- action: Lights off (turn off all 8 lights
When I single click on the button Trigger 1 executes. Directly after this Trigger 2 also executes. Trigger 2's condition will be met because the action from Trigger 1 set the lightVariable=true