Time Platform bug?

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

This feature is in 0.114.

1 Like

I have just upgraded to 0.114, works like a charm.

Thanks.

does it? I just updated to 0.114 and I get exactly this error. The GUI editor does not even allow to set multiple time stamps. If you do it manually in your .yaml file the GUI editor shows time stamps in one line, separated by a comma?? If you re-save this automation the editor complains about the malformed “dictionary value”.

both have to work:

trigger:
    platform: time
    at: ["16:10:00","22:45:00"]
  trigger:
    platform: time
    at:
      - "14:20:00"
      - "20:20:00"

Yes, they work but you cannot edit them in the GUI Editor