Automation doesn't work (Time Trigger, State at home Condition)

Hi,

I want to run each day @ 9:01 a automation task, which only runs if I am at home.

So I added the following automation task:

alias: zu Hause
description: ''
trigger:
  - platform: time
    at: '09:01'
condition:
  - condition: state
    entity_id: device_tracker.nils_redmi
    state: home
action:
  - service: climate.set_temperature
    data:
      temperature: 30
    entity_id: climate.int0000002
  - service: notify.mobile_app_redmi_note_5
    data:
      message: Heizung an
  - service: climate.set_temperature
    data:
      temperature: 30
    entity_id: climate.000a1be99b4c7a
  - service: climate.set_temperature
    data:
      temperature: 30
    entity_id: climate.000a1be99b5870
mode: single

The User is at home at the specific Time but the task doesn’t fire.

What did I miss here ?

Thx & Greetings

Did you reload automations/restart HA? Can you see the auzomation in Developer Tools -> States and is it turned on?

When you execute the automation manually (skips trigger and condition) does it work? Do you have any errors in the logs?

Hi,

yes HA is restarted.

Its on under developer tools.
Working fine if i execute manually.

It’s also not working if I only use the Time Trigger. So thats the problem.

Checked the Time in HA, its correct.

Thx & Greetings

If you go to Developer Tools -> Templates and enter

{{ now() }}

Does it show the correct time?

Yeah wrong time.

But the log file reported the correct one :confused:

Its working now.

Thx for the help.

1 Like