Hi, I’m still quite new to HA, I have a few devices and most of them are already working really well.
But I would now like to set a value (SonWelcomeTrigger=1) through a triggered automation, so that I can prevent multiple execution of the automation.
During the day, when he is at school, I then set SonWelcomeTrigger=0 on a time-controlled basis
I would like to ensure that certain things are only executed once a day.
A simple example: when my son comes home and the motion detector detects movement, Alexa should greet him.
But she should only do this once a day.
If someone can give me an example of how I can select this in the GUI? I’m still struggling with the YAML.
To expand on the above for you as a new user, you’ll need a condition in your greeting automation to check that it’s off. In that same automation you’ll have an action after the greeting to turn it on. You’ll have a second automation to turn the helper off at say midnight.
A slightly simpler version would be to skip the helper, and just have the automation turn itself off after sending the greeting. A second automation will turn it back on at say midnight.
Some will frown upon this version, which I’d normally agree with. The reason that one would frown is that you want to separate the ability to actually disable some functionality from running, from the conditions that allow it to run. In this case I think that’s less of an issue, since you’d disable the second automation to disable the overall behaviour, if need be.