To me, timers are very complicated. I just want a fan turned on for 10 minutes when a motion light is triggered. I need help with gui. Yaml is too complicated. I would appreciate any help. The ha docs on timers is too complicated because it shows too many options. I just need screen shots of the gui for a simple 10 minute run of a fan switch when a light swith is turned on. Thank you
Here is the automation you have requested:
As you can see, because the UI editor is so verbose; a screenshot is nearly useless.
I understand that it can be daunting, I had zero experience when I started out, but sharing automations in YAML is efficient… it allows everyone involved to copy, paste, and edit without having to switch between the forum and HA to recreate screenshots. Anything but the simplest automation requires multiple screen shots.
Also, keep in mind that the majority of answers on this forum are provided by a group of less than 150 people who volunteer their time. Only a fraction of threads would ever be answered if we didn’t use YAML.
If you need one, there is a slightly dated, but still informative video primer on transcribing between YAML and the UI Automation editor available on the ResinChem Tech Youtube channel .
Motion Timer Lights Automation
description: Start a timer for 10 minutes and turn lights on when motion is detected. Turn lights off when timer finishes.
triggers:
- id: motion
trigger: state
entity_id: binary_sensor.YOUR_MOTION_HERE
to: 'on'
from: 'off'
- id: timer
trigger: event
event_type: timer.finished
event_data:
entity_id: timer.YOUR_TIMER_HERE
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id: motion
sequence:
- action: timer.start
data:
duration: "00:10:00"
target:
entity_id: timer.YOUR_TIMER_HERE
- action: light.turn_on
target:
entity_id: light.YOUR_LIGHT_HERE
- conditions:
- condition: trigger
id: timer
sequence:
- action: light.turn_off
target:
entity_id: light.YOUR_LIGHT_HERE
mode: restart
There are plenty of motion-controlled light automations available as blueprints.