Robav
(Aria)
June 3, 2024, 6:15am
1
I set up this very simple automation:
alias: Reload Tuya + Govee Integrations
description: ""
trigger:
- platform: time
at: "07:00:00"
condition: []
action:
- service: homeassistant.reload_config_entry
data:
entry_id: 85a2f0874a1fd8d1a14345d054aa7a58
- service: homeassistant.reload_config_entry
metadata: {}
data:
entry_id: 6e40279b48e76b80b17f473147c9ecb7
mode: single
The aim is to reload two integrations every day at 7am and it works, I mean, if I manually start it, tasks are completed correctly.
It worked 1 time then it hasn’t been executed again.
I don’t understad why.
Can someone help ?
nickh66
(Nick Harrison)
June 3, 2024, 6:51am
2
Hi, Can you please re-post your automation code using the ‘block quote’ feature so that it’s formatted correctly.
francisp
(Francis)
June 3, 2024, 12:01pm
4
Please, it is not difficult:
Spaces at the beginning of the line are critical in yaml, and people trying to help you may want to copy your code so that they can try it out themselves, so please format it correctly when you are posting.
Use the preformatted text tool (</> in the edit post toolbar). If it is not immediately visible, it will be in the cogwheel menu.
[Code_format]
Alternatively you can use three backticks (the key is on the far left, 2nd row on en keyboards) on their own line above and below the code. That i…
CO_4X4
(Colorado Four Wheeler)
June 3, 2024, 2:15pm
5
Have you tried it using entity ID’s instead of entry ID’s?
action:
- service: homeassistant.reload_config_entry
target:
entity_id: domain.your_entity
add an “id:” for the automation so you can see the automation traces.
then look at the trace for the automation to see why it isn’t working.
also you need to make sure your system time matches the real world time.
Robav
(Aria)
June 3, 2024, 7:54pm
7
The automation doesn’t start.
So no trace is present
Robav
(Aria)
June 3, 2024, 7:56pm
8
If I manually execute the automation, all task are completed flawless.
The automation isn’t started by the trigger.
Did you check this…?
I see no other reason why the automation won’t trigger at 0700.
Robav
(Aria)
June 6, 2024, 5:01pm
10
Yes, the first thing I’ve checked
Edwin_D
(Edwin D.)
June 6, 2024, 5:13pm
11
I would put in a notification as the first action. Because while it is possible the trigger isn’t firing, it is very unlikely. My bet is there’s something else that makes you think it hasn’t triggered, and/or isn’t giving the intended result.
Unless you disabled the automation?
Robav
(Aria)
June 6, 2024, 5:25pm
12
No, i didn’t disable the automation