Hello everyone. I have been a ‘reader’ of this forum for a long, long time and you guys helped me tremendously when I was setting my Home Assistant for the first time. There is one thing I am struggling to understand the difference. Could you help me understand the difference between this:
- id: midnight_turn_off
alias: Turn things off at Midnight
initial_state: True
trigger:
platform: time
at: '00:00:00'
action:
service: light.turn_off
data:
entity_id: light.christmas_lights
and this:
- id: midnight_turn_off
alias: Turn things off at Midnight
initial_state: True
trigger:
platform: time
at: '00:00:00'
action:
service: light.turn_off
entity_id: light.christmas_lights
note the difference in location where entity_id
is located. They both seem to work but I would like to know what is the difference in execution and what data:
is used for exactly.
Thank you for your help.