Hi there, I’m completely new to automations - I just got HA running and figured out how to build a basic dashboard. Now I’m trying to build a notification automation that fires when someone opens one of the doors in the house (I have sensors on the front door and sliding door), but only when the doors have not been opened for a certain amount of time, say 24 hours. Is this possible in the visual editor? The YAML scares me a bit, but I’ll use it if that’s the only way to accomplish this.
It is possible in the Automation editor, but it will require you to copy and paste a template into the “Value template” field of a Template condition.
{{ now() - trigger.from_state.last_changed > timedelta(hours=24) }}
FWIW, almost everything that is possible in YAML is possible in the visual editor, but there’s no good/efficient way to share and edit them without switching to YAML. There is a, slightly dated, video tutorial about transcribing YAML automations to the visual editor available on the ResinChem Tech Youtube channel.
I have this, I think it might work for your use case. There is a user definable condition available.