Invalid time (?)

If I put 00:00:00 on the following code all was fine…

- id: 'switchoff_light_late_night'
  alias: switchoff_light_late_night
  trigger:
  - at: 00:00:00
    platform: time
  action:
  - service: light.turn_off
    data:
      entity_id: light.ingresso

… but if I put 23:00:00 I got an error…

Invalid config for [automation]: Invalid time specified: 82800 for dictionary value @ data['trigger'][0]['at']. Got None. (See /config/configuration.yaml, line 441). Please check the docs at https://home-assistant.io/components/automation/

Why?

P.S.: tryed also with 11:00:00 PM … no luck!

Put it in quotes.

3 Likes