Am trying to get the new Tuya integration working with my heating however I’m not having much luck.
The device shows in the SmartLife app and is showing in my project in the Tuya dev dashboard. The device also shows in HA however it shows as OFF and the shown set value is incorrect - SmartLife shows 18 (centigrade) in HA it shows 3.6. If you work it out it’s basically doubling the value (18 becomes 36) and then shifting the decimal to the left (3.6).
Debugging in Tuya dashboard also shows the value as double (36) and in the logs it’s publishing 3.6 (deg centigrade).
HA is showing the set change instantly but does not allow me to change the setting, I also cannot set the operation state in HA - there is no option.
I have tried adding a new project, following the new guides and have removed all remnants of any previous Tuya config from my HA.
What am I missing, or is this just a bug that hopefully will get resolved soon? Just to add, my HA Tuya Custom code (from HACS) broke a few days ago when the Tuya global outage occurred and hasn’t worked since, apart from by using the SmartLife app. This might be related.
Thanks
Nic
@dustardly2 thank you for the suggestion, and this is what I previously did with the custom Tuya code (from HACS), however this relates to the new integrated Tuya service in HA 2021.10.x meaning this is either an issue in the Tuya code or HA (edit: or my setup!).
Is anyone else experiencing the same issue or if not any suggestions on how I troubleshoot this?
Thanks
This FIX is FOR TUYA v2! FIX is on configuration of TUYA v2. Is very similar to old bug , but fix our thermostat. I’m using TUYA v2 on HA 2021.10.x and it fixed my bug. Old fix was for tuya v1 not v2 and changed only 1 float number in this new fix I changed all variable to fix .It was very similar but code was different. I have wrote all code changed easy to replace the part copy & paste the wrong code or just change all variable with an editor.
@dustardly2 are you saying don’t use the new ‘integrated’ Tuya code, but install Tuya v2 from HACS and modify it?
I tried this a week ago when I was attempting to configure ‘local Tuya’ which meant installing Tuya v2, only ‘climate’ was not supported. It sounds like I was a week too early - perhaps they’ve updated the code since then. I’ll try your suggestion. Many thanks.
@dustardly2 ok added Tuya_v2 from HACS, modified the climate.py file and restarted HA. Then went to Integrations and deleted Tuya and then when adding a new integration I searched for Tuya but only ‘Tuya’ comes up, no Tuya v2, which is odd but perhaps the custom code takes precedence? Anyway added but still shows the wrong values:
hello sorry I’m a beginner I don’t understand what I need to modify you can put the climate.py file already modified thank you very kind school of my english I used a translator
Hi there. I’m experiencing the same @dustardly2 problem. I unistalled the old Tuya integration ans installed the new Tuya V.2.(I also have the Local Tuya in HACS). I do not have the /config/custom_components/tuya_v2/climate.py directory and file, so I don’t know how to proceed to fix the wrong showed temperature. Any other suggestions? @Paulus, @frenck Why we have to find workaround for an official integration? Can someone fix it in a next release? Thanks.
At the moment neither tuya 1 nor tuya 2 is working for me. I did the whole procedure on the Cloud, but nothing. Updated to 2021.11. The only way to use the switches was to install LocalTuya integration from HACS. I can’t install the thermostat. Anyone know what’s going on?
Localtuya integration is working with Ready Warm Cristal heater. You need to configure it correctly. The only option I couldn’t set correctly is timer, I can only see it as a sensor.
First you have to gain access to Tuya IoT platform and with obtained credentials you have to create a localtuya integration. You need to create 3 entities: “climate”, “select” to be able to modify operating mode (500W or 1000W) and sensor to indicate the auto-off timer time.