Some integrations (Tuya and Govee for me) stop working and need to be reloaded.
In my case it happens every time I reboot (for whatever reason) my router.
I haven’t found a way to schedule this.
Is there a way to schedule the reload of an integration to run every x hours/minutes/days?
I too have reloaded misbehaving integrations when they are unavailable but this is just a temporary solution. The root cause of the problem should be found and addressed.
Debugging misbehaving integrations should be done by following this guide:
Your automation is using a Time Trigger set for 07:00. It’s one of the simplest and most reliable triggers because all it needs to do is wait for the system clock to
advance to the specified time. There’s something fundamentally wrong if a simple Time Trigger fails to work on your system.
Enter the following template in the Template Editor and confirm it reports the correct date, time, and timezone offset for your location.
{{ now() }}
When you run it manually, it doesn’t exercise the automation’s trigger and simply executes its actions.
I’m new to HA.
Could you please explain me how to do that, step by step?
Thing I think is better to know:
Home Assistant is powered off and restarted every day at1 am
If I change the time for automation to be triggered after a few minutes l, it works.
But it isn’t triggered no more.
It seems the automation is triggered only one time.
I have set up also another automation triggered by sunset.
It works some days and other no.
If a Time Trigger only triggers once but never again and a Sun Trigger works only sometimes but not every day, then there’s a fundamental problem with your system.
I don’t know what that problem might be but it makes discussing automations pointless until the problem is resolved.
What version of Home Assistant do you have and which installation method did you use?
That was very helpful!! Thank you!!
I just had to figure out where to find the Entry_ID for my integration. So let me share that for others:
It can be found in the “core.config_entries” file in the “/config/.storage/” folder. I used VSCode to access it.
Did some widely used integrations just now become much more reliable? Seems like there has been at least half a dozen new or revived threads on the exact same thing during the last day or two…
You can use the config_entry_id function/filter in a template. Would be super simple to use in an automation that triggers off a list of known unreliable sensors going unavailable for X amount of time.