Hi,
I have an automation that I think is working as it is. However it feel a bit “circular”, so I wonder if there is a better, more idiomatic, or more “correct” way to implement what I want.
My dashboard has a tile card with a “Nap time” boolean helpeas the entitiy - so this can be used as a single button to start or stop nap time, and reflects if nap time is currently on or not.
The triggers to the automation are then:
- The boolean helper changes to a specific state
- It is a specific time of day
- The baby cam is manually switched on
The automation actions then do:
- Reduce the Ring Chime volume
- Turn on the baby cam (in case it was one of the triggers other than 3)
- Turn on the nap time boolean (in case it was one of the triggers other than 1)
So my automation ends up as follows:
There is a similar automation to Stop nap time that has the exact opposite triggers and actions.
As you can see, two of the triggers are the same as the actions… which feels a bit wrong to me but are needed to cover all actions when different triggers might be used. Am I thinking about this correctly? Is there a clearer way to implement what I want?
(I know that I could use Trigger IDs and some additional logic to affect if certain actions run or not, but that feels like adding more complexity on top of existing complexity)
