I’m doing a simple switch control with the platform time.
This works fine:
- id: 'prettyautom'
alias: A pretty automation
trigger:
platform: time
at: "14:20:00"
condition: []
action:
- data:
entity_id: switch.outlet_32d2
service: switch.turn_on
This doesn’t work:
- id: 'prettyautom'
alias: A pretty automation
trigger:
platform: time
at:
- "14:20:00"
- "20:20:00"
condition: []
action:
- data:
entity_id: switch.outlet_32d2
service: switch.turn_on
I can see the error: Invalid config for [automation]: Invalid time specified: [‘14:20:00’, ‘20:20:00’] for dictionary value @ data[‘trigger’][0][‘at’].
In the Doc link Time platform shows:
automation:
trigger:
platform: time
at:
- "15:32:00"
- "20:30:00"
Home Assistant 0.113.3
arch | x86_64 |
---|---|
dev | false |
docker | true |
hassio | false |
installation_type | Home Assistant Container |
os_name | Linux |
os_version | 4.15.0-106-generic |
python_version | 3.8.3 |
timezone | Europe/Madrid |
version | 0.113.3 |
virtualenv | false |