I’ve tried to get the most basic automation to work without any luck. The objective was to get one switch to turn off at a particular time or after a lapse of time. When I add an automation using the UI it never shows up in the UI but does create an automation entry in automation.yaml. I reload the automation and even restart the system without any luck. I pared down my configuration.yaml to the most basic thing which is:
You missed the space between the dash and id here:
Also your indentaion is inconsistent. One space in the first automation, two in the second. Use two spaces everywhere.
A better trigger for the off automation would would be:
- id: '163923846521'
alias: Test Hallway Off
trigger:
- platform: state
entity_id: light.your_halway_light_here # change this
from: 'off'
to: 'on'
for:
minutes: '2'
Sorry about not doing a copy/paste but my primary computer is Windows based while HA is on the PI. In any event the automations.yaml is computer generated through info I put in the UI. The real questions are why is the UI entry not showing up in HA and more importantly why isn’t the automations.yaml being executed. Thanks again for everyone’s help.