Im new in this Forum.
My question is what is on my Code wrong.
automation:
- alias: Bewesserung
hide_entity: True
initial_state: ‘off’
trigger:- platform: time
after: “10:20:00”
action:
service: switch.turn_on
entity_id: switch.wiese
- platform: time
Im new in this Forum.
My question is what is on my Code wrong.
automation:
After should be at.
(I’m presuming the formatting is correct in your actual file)
And are you aware you need to turn on the automation manually first when using initial_state: off
? Otherwise it will never trigger.
Mind the indentation, YAML is very picky about this. ‘after’ is deprecated in favour or ‘at’. And as correctly mentioned, with initial_state: ‘off’ the automation is disabled.
automation:
- alias: Bewaesserung
hide_entity: True
trigger:
platform: time
at: "10:20:00"
action:
service: switch.turn_on
entity_id: switch.wiese
Gruß
m0wlheld
Danke alles funktioniert.