You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a power outage, my Tuya light restores to the last state. It should default to off, like my other smart light bulbs. If I happened to have the Tuya light turned on when the power fails, I get woken up in the middle of the night when the power is restored.
Environment
Localtuya version: v5.2.2
Home Assistant Core version: 2024.11.4
[] Does the device work using the Home Assistant Tuya Cloud component ? Not sure
Have you tried setting the relay status on your tuya device using smartLife app?
If you want to use HomeAssistant
you can go to Developer Tools -> Actions
Search for LocalTuya: Set datapoint
Below is the data to be sent to the device device_id: "<device_id>" dp: 38 # This can be different for your device please check developer platform from tuya to use right ID value: "off" # Possible values -> "off" / "on" / "memory"
If this works for your case, you can then create a helper for dropdown and write automation on change in the dropdown selected value.
Thanks for the suggestion @ankurgogate. I don't have a lot of experience with LocalTuya, but are you suggesting I write an automation in HomeAssistant to turn the light off when the power comes on? Or is the process you are describing a way of deploying an automation into the Tuya device itself?
I'm just not too sure what to make of this:
... you can then create a helper for dropdown and write automation on change in the dropdown selected value.
What is a "helper for dropdown"?
My other question is what is function does the dp 38 have? Is this a parameter setting in the Tuya firmware that controls what happens after power failure?
The problem
After a power outage, my Tuya light restores to the last state. It should default to off, like my other smart light bulbs. If I happened to have the Tuya light turned on when the power fails, I get woken up in the middle of the night when the power is restored.
Environment
Steps to reproduce
DP dump
Provide Home Assistant traceback/logs
Additional information
The text was updated successfully, but these errors were encountered: