I am new to home assistant and I am a total beginner.
I tried to integrate my Tuya-devices with the Tuya v2 integration.
So far I installed Tuya v2 using HACS, I can see all my Plugs and I am able to set them up in the Lovelace.
I can switch all of them on or off (but only one time). Afterwards the entity does not refresh the state (I can’t see the new state, the switch turns back to the previous position) and I can’t trigger the switch again.
Only if I restart Home Assistant the entities we’re refreshed and I can trigger them again.
Can someone help me with this?
I am using Home Assistant 2021.9.6
HACS v.1.15.2
Tuya v2 v.1.5.0
If you need any further information, please let me know.
If you can control your devices, but states or not being properly reported, there is chance you didn’t properly authorize the “Device Status Notification” API.
You can still check (and add) this now though. Go to you Tuya developer account, click on “Cloud → Development → your HA project” and check the service API. Make sure you have the Device Status Notification authorized.
Thank you so much that fixed the issue. Additionally i noticed that my garage door opener is not being detected through the new tuya api. I have it working fine through local tuya right now so its not that big of a deal but would there need to be an additional service API i need for that to work as well? This is the garage opener I am currently using. https://www.amazon.com/gp/product/B086MKP14K/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&th=1
I am having the same issue with Entity states not being refreshed. If I restart HA they then reflect the current Entity state. I have checked and have the Device Status Notification API authorised.
I can control them fine through HA though. Running core-2021.10.1
I am having the same issue,
Tuya v2 integration will initially get device state on reboot, but will not update again.
The Device Status Notification service is enabled for the project.
Exact the same issue,
Tuya v2 integration will initially get device state on reboot, but will not update again.
The Device Status Notification service is enabled for the project.
I’m running HA core-2021.11.4
Same here with Home Assistant 2021.11.5 and 2 pieces of Tuya - WiFi smart plugs(managed with SmartLife mobile app).
If I reload the Tuya integration in the integrations page of HA the states become correct as in case when we restart HA. But without them state reporting is wrong.
I tried to debug with Tuya IoT debug features, and there the states are defenitely correct.
So summarized:
Tuya - IoT console have good states.
HA has also good states immediately after restart
HA has also good states after reload Tuya integration
We have wrong states just meanwhile we use HA, not before and not after
This was what I needed to get my devices work properly.
Thank you very much.
This worked for me for the last couple of weeks.
But now there is a new problem…
For some days my devices will not update its states immediately.
e.g. I have 6 smart plugs. When I switch them on/off, the states (just on my HA dashboard) do sometimes refresh and sometimes not. The switches itself are triggerd. This happens randomly to all of them and is not linked to any specific plug.
I have to trigger the switches (via HA) up to 5-10 times again until it switches its state. But even that doesn’t work 100%.
If I don’t try to synchronize the states, the switches will not turn on/off with any automated script.
I have the current Ha updates and I see Tuya devices stopped working. As soon as I go to Integrations… Tuya and do ‘Update’ everything works correctly. Maybe if I could do an automated ‘Update’ it would stay working. I tried to follow the first post in this thread but I think they moved things around on the Tuya Development site as mine looks nothing like the above screen shot
I experience something truly annoying with the tuya cloud : I’m testing a power strip with the tuya integration. I can control the outlet independently in HA but, often I have to “reload” the Tuya integration to “refresh” or “re-establish” the connection between HA and the Tuya cloud service.
For exemple, I have widgets for each outlets on my Pixel 6 and I can turn them on but when I try to turn them off neither the widgets or the Tuya integration works. I have to reload the integration or open the tuya smart life app in order to turn off the outlets (seems like the integration doesn’t include the control all outlets in one service like in the tuya smart life app)