I would like some examples on when to alow loops.
- Allow loops: You can allow automations to be triggered by automations. Be careful, if not used correctly, you can set your system in a loop and make it crash.
As soon as you create one automation that can trigger another automation, you need to allow loops. Otherwise it won’t work.
So, let’s say you have one automation that triggers(WHEN) when you click on a button on a 433MHz remote. One of the actions(THEN) in this automation is that a VirtualDeviceX is switched to ON. This virtual device is named “Alarm is On”, and is used to activate to armed-state at home.
You have another Automation that gets triggered when motion is detected in MotionSensorX but this happens only if “Alarm is On” is ON (AND condition).
With loops one could build quite complex Automation-combinations, but requires a bit of thinking and maybe drawing
You can also loop lights; LightA turns on LightB and once that is on it turns off the first light. This kind of endless loop will create flashing lights, which you probably don’t want Gonna put a WARNING mark for this example, this can burn out the Heart and probably your lights too.