If I turn on/off my Tuya devices from the Smart Life app, Home Assistant status properly updates. If I try to turn a device on/off from Home Assistant, the physical device doesn’t change, and a few seconds later the status in Home Assistant reverts. Has anyone seen that before?
This happens because your device didn’t responses back to your request.
Are you sure you configured the entity correctly, If you’re sending the wrong values the device will not response.
Thanks. It’s been working for over a year, just stopped earlier this week.
Worked for me…THX alot…
Just missing all the captions for the steps to choose from in the wizard when adding device, but by just always selecting the frist option it got me through and all devices are working…
THHHHX
Thank you for publishing this fork! This is exactly what I was after.
I tried both LocalTuya (upstream branch) and Tuya Local, but neither project worked well.
This fork is able to use my Mercator Ikuu Zigbee Pro Hub SGW003 as my Zigbee gateway.
This is a Tuya TYGWZ-01 Ethernet Smart Gateway, also rebranded as LIDL, Silvercrest, Pearl.de, Revolt, Elesion and many more.
Thank you a million times!
IMPORTANT Note for update 3.2.4
:
From 3.2.4 and beyond it won’t be possible to revert back to old version including upstream safely, this due to changes has been made for Climate, Select and Light.
Check release note on GitHub.
Awesome, thanks, I have just migrated over from the upstream dev, no issue, and no HA Core 2025.1 warnings thanks again
Procedure - deleted localtuya from HACS (select ignore), added this custom repo, installed and restarted, all entities worked as before, no issue!
I bought a dehumidifier Qlima D 812 Smart and it does not work well with Local Tuya, but it works perfectly in the original Tuya cloud integration. I pulled all the information from Tuya loT Development Platform and entered the DPIs. But I get an error every time I choose Discover device entities automatically. I have already tried it manually, but I can’t figure it out. I can’t get it done like with original tuya cloud integration.
{
"result": {
"category": "cs",
"functions": [
{
"code": "switch",
"dp_id": 1,
"type": "Boolean",
"values": "{}"
},
{
"code": "dehumidify_set_enum",
"dp_id": 3,
"type": "Enum",
"values": "{\"range\":[\"30\",\"40\",\"50\"]}"
},
{
"code": "countdown_set",
"dp_id": 17,
"type": "Enum",
"values": "{\"range\":[\"cancel\",\"2h\"]}"
}
],
"lang_config": {},
"status": [
{
"code": "switch",
"dp_id": 1,
"type": "Boolean",
"values": "{}"
},
{
"code": "dehumidify_set_enum",
"dp_id": 3,
"type": "Enum",
"values": "{\"range\":[\"30\",\"40\",\"50\"]}"
},
{
"code": "countdown_set",
"dp_id": 17,
"type": "Enum",
"values": "{\"range\":[\"cancel\",\"2h\"]}"
},
{
"code": "countdown_left",
"dp_id": 18,
"type": "Integer",
"values": "{\"unit\":\"min\",\"min\":0,\"max\":360,\"scale\":0,\"step\":1}"
},
{
"code": "fault",
"dp_id": 19,
"type": "Bitmap",
"values": "{\"label\":[\"E1\",\"E2\"]}"
}
]
},
"success": true,
"t": 1706631506756,
"tid": "32b7067abf8b11ee847d96852008b4f4"
}
What is the error it shows?
When I choose “Configure all recognized devices automatically” I get this error, this only applies to this device, the lamps and smart plugs work normally.
If I continue without “Configure all recognized devices automatically” I try “Discover device entities automatically”, but then I get an “error”
And here the log file: Local Tuya - Pastebin.com
Should be fixed on master you can download master version if you want to test.
Go HACS → Local Tuya → On top right corner click on the ⋮
and choose redownload then select master
Sorry, but I’m getting the same errors. If you would like more information, please let me know.
Don’t know if you’ve seen this but there’s a different way to use tuya coming in 2024.2. See beta notes below
Logging in via the Tuya Smart app works, but various settings are not the same for the device or app. For example, I can set my humidity settings to 40, 50, 60 and continuous, but via HA I only have 30, 40, 50. This is also done via the Tuya cloud
I think this is related? The Auto Config did not work with the beta release with an Inventor Eva ION Pro WiFi Dehumidifier, but gave me ideas to get the fan to work, and I rolled back the fan is now working, just one thing left -
I am having trouble changing the mode on a dehumidifier, any help or pointers would be great thanks in advance
Select option
Show me your device diagnostics again.
note humidifier fix is on master version not on beta release.
Update to master version or beta release because the way to handle humidifier has changed and it will cause problems in the future if you stick wilth comma string.
Both Select options
and humidifier modes
aren’t split with comma like upstream.
The values needs to be dict
type for example your select
manual,continuous,smart,drying
these are the device values but you will have to mapped it like this.
manual: manual Friendly Name
continuous: continuous Friendly Name
smart: smart Friendly Name
drying: drying Friendly Name
It the same for humidifier modes in beta release and next releases
Thank you @umu_ugg for your help and hard work, I have pulled the ‘master’ repo, I now understand the footnote & syntax explanation. and the select options are working.
I have just one last challenge, when I select a mode in the dehumidifier card dropdown, the action is not sent, and is ignored
Thanks for the effort
I can now do “Configure all recognized devices automatically” and no longer get an error message, but I am missing some entities because my lovelace cards are not good.
This is what I get now:
But this is what I get when I install the original Tuya integration:
Here the device diagnostics
Local Tuya - Pastebin.com
It was bugged I fixed it you need to re-download master again.
The auto configure for dehumidifier Target Humidity was incorrectly I fixed it the latest master however you can delete the device and re-download master version then configure it again, or reconfigure the device
Fix it manually
go to Devices → Localtuya → Click Configure → choose re-configure devices → Choose your fan device → click submit until you see the select configuration named with Target Humidity
and put this in the configuration field
Valid Entities`
"10": "10"
"20": "20"
"30": "30"
"40": "40"
"50": "50"
"60": "60"
Awesome, you rock! thanks @umu_ugg its all working, I would love to Sponsor your efforts, could you add a ‘buy me a coffee’ to your GitHub?