Is the a way of reloading a an integration, in this case TUYA daily, I’ve a couple of smart sockets that use it and I’m finding I have to reload the Tuya integration daily. The only symptom of it needing reloading is when you use a switch manually in lovelace, and it immediately turns off. Its not greyed out suggesting the device is not found . , Its not just one device its all the devices on that integration.. I saw this was raised as a bug in 2023, current HA version is 2026.6. There must be a sneaky way of automating a reload
In addition to following boheme61’s helpful links, I would aim to find a way to trigger an integration reload on a device going unavailable rather than at a regular set time. You might find a timed reload happens when it’s not needed, only for a device to go unavailable 5 minutes later. Then you’d have to wait nearly 24 hours for the next reload.
Further, although the problems you found raised with the Tuya integration date back to 2023, in my experience these are not continuously the same problem, but rather an intermittently new one that raises its head. The issues are usually at Tuya’s end.
Again from experience, you will likely find better reliability with one of the local Tuya integrations (the fork of Local Tuya, or a different one called Tuya Local). Or ultimately do what many have done and just replace Tuya with something else
Yes something is wrong if an native integration needs to be reloaded every day, and hardly it’s the native integration, and as for Tuya , well, it’s Tuya, with all it’s “flaws”
I Also find the “local” custom variants of Tuya more “stable”
As for the Devices, Very variating “standards”
@richard-g8jvm … look for Action: reload_config_entry
alias: your alias
description: ''
mode: single
triggers:
- entity_id:
- your entity
to: unavailable
for:
hours: 0
minutes: 0
seconds: 10
trigger: state
conditions: []
actions:
- metadata: {}
data: {}
target:
entity_id:your entity
action: homeassistant.reload_config_entry
many thanks very helpful suggestions and script
As the Tuya integration is claimed to be very unreliable . I have been able link the Smartlife (Tuya) to Smartthings and that integration seem stable , , time will tell .
