I’m new to HA and I’m trying to figure out how to create a trigger which goes off at a specific time and date. The UI seems to permit a simple time entry but that will go off every day. Is it not possible to create a date and time trigger for an automation in the UI? Separately, I also want to be able to set a trigger which goes off every Wed. at a specific time.
I use time as both the trigger and the condition. I set the trigger to the time I want and the condtion after to one minute before and set the day
- id: 'xxxxxx'
alias: yyyyy
description: zzzzz
trigger:
- platform: time
at: '22:00:00'
condition:
- condition: time
weekday:
- wed
after: '21:59:00'
You can do this easily from the UI or through Yaml
1 Like
In general it’s much easier to do everything in yaml than in the UI. As @AllHailJ mentioned, in yaml it’s easy to accomplish, you can just copy and paste his solution with appropriate entity_id
/service
and action
.
If you are just starting with HA learning yaml will make your life much easier. It’s also as close to human readable as possible.
I’m happy to try and use YAML. Thanks to you both. The Visual editor is helpful in that I can see what it produces and then edit it or learn enough from it to do it all in YAML.