I have a question in topic regards.
I created manually automation:
- id: '1527669929227'
alias: Hallway off
trigger:
- at: '23:00'
platform: time
action:
service: homeassistant.turn_off
data:
entity_id: light.hallway
And this is generated by automation editor in Hassio
id: '1527669929227'
alias: Hallway off
trigger:
- at: '23:00'
platform: time
condition: []
action:
- data:
entity_id: light.hallway
service: homeassistant.turn_off
Not a big difference by why after action is data and service on the end?
And useless (empty) condition is it necessary ?
Both seems to work but I reckon that file from automation editor is a bit less clear?
And what the point of “-” dash, some people use it some not only proper indentation.
I am lost to be honest a bit, could anyone clear it for my please?