I am running the latest Home Assistant (2021.10.2) and I reconfigured the Tuya integration per the updated documentation (Using Smart Life app). I have two Tuya Power outlets, and Home Assistant is able to trigger both with Switch.turn_on/off
. The problem is that HA is not keeping track of the status of the plug. At startup, HA is able to tell the status of the power outlets. If I trigger the outlets either on or off, HA wil correctly turn the light on or off, but then the status of the light will go back to its original state in the gui. Then HA will not longer be able to control it.
Hi,
When you followed the install instructions, is there a chance that you didn’t complete step 6 properly? 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.
I’m also having this trouble, and i do have the device status notification configured correctly. Incidentally, HA wouldn’t register my bulbs without it.
The same thing is happening to me.
I have the “Device status notification” API authorized, but after turning on a switch in Home Assitant - it turns it on, but the status stays as “off”. Sometimes the opposite happens, and it messes up automations.
I tried deleting the integration, created new tuya project, created new integration. The same results.
Any ideas?
Same problem for me. Tried to remove tuya, restart HA and readded tuya again. Still doesn’t work.
Tuya Cloud and/or Integration (beta and release) are broken atm.
See:
I’m having issues seeing this in the setup documents from Home Assistant, any clues why in configuration of the tuya iot platform i do not see the device status Notification API
updates broken since June 3rd for me
log says:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 594, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tuya_v2/__init__.py", line 290, in async_setup_entry
success = await _init_tuya_sdk(hass, entry)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/tuya_v2/__init__.py", line 206, in _init_tuya_sdk
await cleanup_device_registry(hass)
File "/config/custom_components/tuya_v2/__init__.py", line 223, in cleanup_device_registry
device_registry = hass.helpers.device_registry.async_get(hass)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: async_get() takes 1 positional argument but 2 were given