Automation - not respnce on trigger

I cant get my device to shift sate at specific time.
It will not trig on the code bellow.
if I press the execute button the unit turns off , but the time dont trigg.
What is missing for me ?

- id: '1603121172490'
  alias: turn off module at specific time
  description: ''
  trigger:
  - platform: time
    at: '21:20:00'
  condition: []
  action:
  - type: turn_off
    device_id: e33ddd6d111e11eba0c529e0a3da0fe3
    entity_id: switch.utvecklinsmodul_internal_led
    domain: switch
  mode: restart

Go to Developer Tools > Template and paste the following text into the Template Editor:

Local Time:
{{ now() }}
{{ now().astimezone() }}
{{ utcnow().astimezone() }}
{{ now().now() }}
{{ now().today() }}

UTC time:
{{ now().utcnow() }}
{{ utcnow() }}

Time Zone:
{{ now().tzinfo }}
{{ now().astimezone().tzinfo }}
{{ utcnow().tzinfo }}

Confirm the reported Local Time and Time Zone information is correct.

This is the result i got

Local Time:
2020-10-19 20:03:07.804388+00:00
2020-10-19 20:03:07.804503+00:00
2020-10-19 20:03:07.804739+00:00
2020-10-19 20:03:07.805040
2020-10-19 20:03:07.805225

UTC time:
2020-10-19 20:03:07.805400
2020-10-19 20:03:07.805455+00:00

Time Zone:
UTC
UTC
UTC

ok i see now that local time is 2 hour offset . i have 22:03:07 .
Thanks for the hint / Tomas

Unless you live where your local time is equal to UTC time, you probably overlooked to set Home Assistant’s Time Zone.

Configuration > General > Time Zone

Done :slight_smile:
Thank you for your support

1 Like

You’re welcome!

For the benefit of other users, please consider marking my post (above) with the Solution tag.

By doing this, it will automatically place a check-mark next to the topic’s title which signals to other users that this topic has an accepted solution. In addition, a link is placed under your first post and leads to the Solution post.

All of this helps other users find answers to similar questions.