Open JOHLC opened 4 years ago
Basically does not make sense, I cannot find a logic here. One questions: was your climate working fine with original component? I'm asking this because I suspect that discovery info cannot be used for climate.
Basically does not make sense, I cannot find a logic here. One questions: was your climate working fine with original component? I'm asking this because I suspect that discovery info cannot be used for climate.
I would agree it doesn't make sense.
No I was having the same issue with the original component. Let me know if / what you need to help with this.
Thanks for the quick reply!
Are you able to enable debug and attach here your log file so that I can check better received information? You should add the following line in configuration.yaml:
logger:
default: info
logs:
custom_components.tuya_custom: debug
Then reboot HA, use climate for a while and then attach here the log file to see if I can found some logic analyzing data.
Sure, please give me some time. Where will I find the log when completed?
In the same folder where is stored configuration.yaml
Here we go
More info: Home Assistant 0.112.2 Frontend version: 20200702.0 - latest System | HassOS 4.11 Deployment | production
Please let me know if there is anything more I can do.
One thing that stands out to me is this line:
2020-07-05 13:21:22 DEBUG (SyncWorker_2) [custom_components.tuya_custom.tuyaha.tuyaapi] Tuya request post: {'payload': {'devices': [{'data': {'mode': 'cold', 'min_temper': 0, 'temperature': 69, 'max_temper': 100, 'online': True, 'state': 'true', 'support_mode': ['cold', 'hot', 'wind', 'auto'], 'temp_unit': 'CELSIUS'}, 'name': 'Living room AC', 'icon': 'https://images.tuyaus.com/smart/icon/1493368595_0.png', 'id': '00141555d8bfc0528c1f', 'dev_type': 'climate', 'ha_type': 'climate'}], 'scenes': []}, 'header': {'code': 'SUCCESS', 'payloadVersion': 1}}
For the AC that I am using, min temp is 61f, max temp is 88f The smart life app, and the AC itself is displaying temp in fahrenheit
The AC unit itself is here: TCL 10,000 BTU Black Window Air Conditioner with Wi-Fi https://www.walmart.com/ip/TCL-10-000-BTU-Black-Window-Air-Conditioner-with-Wi-Fi/966810875
Also, this device does not support the 'heat' function Further, when switching from 'cool' mode to anything else via HA (fan, auto, cool) the AC changes to 'auto' mode and I am unable to change it to anything else. Changing to any of the functions in HA results in the AC stuck in "auto" mode unless I change from the smart life app, or the AC itself
Can you please try with last release (v0.0.10)
I will test when I get home soon, thank you
Temperature is now showing correctly! Thank you.
I am still having the issue where when I change modes from home assistant, the AC is always set to "auto" mode
Not sure how to fix this, component is using info provided by Cloud. Anyway provide me a new log with last component version and executing the command that create this issue.
Sorry for the delay
Some info for you: I am starting with my AC on cool mode, low fan, auto mode off, eco mode off, and temp set to 72
I will then use the home assistant app to change the AC's climate mode to fan only - this causes the AC to go into "auto" mode I will then use the home assistant app to change the AC's climate mode to cool - this makes the AC beep, but remain in auto mode I will then use the home assistant app to change the AC's climate mode to auto - this makes the AC beep, but remain in auto mode
I will then use the Smart Life app to change the AC's climate modes in succession, in this order: Cool, then dry, then heat (which does nothing), then auto, then cool Then I will cycle through fan modes in this order: Low, medium, high, auto I will then use the Smart Life app to change the AC's eco mode "function" to off
Now the AC is back in its original state
I then power off the AC with the HA app and try to turn it back on, but the entity is unavailable. I can however turn it back on in the Smart Life App.
I appreciate you looking into this, log is below
Note I am running the latest update of Tuya Custom, 12
@ollo69 I'm running v0.0.12, my Tuya device/thermostat is showing 20.5 degrees on its LCD, but I get 5 degrees displayed in my WebUI.
@ollo69 I'm running v0.0.12, my Tuya device/thermostat is showing 20.5 degrees on its LCD, but I get 5 degrees displayed in my WebUI.
Please provide dedug log as explained previous in this thread
The only log line relevant is as follows:
2020-07-14 17:48:31 DEBUG (SyncWorker_1) [custom_components.tuya_custom.tuyaha.tuyaapi] Tuya request post: {'payload': {'devices': [{'data': {'current_temperature': 44, 'min_temper': 5, 'temperature': 36, 'max_temper': 35, 'online': True, 'state': 'true'}, 'name': 'Central Heating', 'icon': 'https://images.tuyacn.com/smart/icon/15264583415nnlzwfs1qd2wqz6i937op3nmi_0.png', 'id': '12345678901234567890', 'dev_type': 'climate', 'ha_type': 'climate'}], 'scenes': []}, 'header': {'code': 'SUCCESS', 'payloadVersion': 1}}
Temp reported is by Tuya as 44... is actually 22 on the Thermostat LCD, and shows up as just 2 in the WebUI of HA. Oh, and Target Temp set to 18. This is being reported as 36 by Tuya and showing as just 6 in the HA UI.
Yes, it's clear. This is the case of thermostat that provide temperature value multiplied by 2. To solve another issue I introduced a logic to set the unit of measure to Farhenait when temperature is over 40, and conversion transform your temperature in what you see. I will think about this...
I receive my new thermostat today, and i´m having some problems related to this thread.. I´m seeing in Fahrenheit and something like double temperature. Something like this https://community.home-assistant.io/t/smart-life-tuya-show-wrong-temperature/89093 or this https://community.home-assistant.io/t/bht-6000-thermostat-tuya-support/89311/1
Current temperature in tuya app is 22ºC, HA is showing current 104ºC. Set temperature in tuya app is 32.5ºC, HA is showing 163ºC.
Is it possible to do something ??
I just released a new version to try to solve this issue. You should use configuration.yaml to correct the wrong information provided by the cloud. Please refer to readme for details. Please report yours feed-back, I don't have climate device so I'm not able to test.
With latest version i don't get any temperature, even after trying to use the new configuration. Installing older one i get temperatures, but in Fahrenheit.
Do you have any error in the log? Can you post your configuration?
Can you retry with last release?
@ollo69 sorry i didn´t had time to send you the log file..
With latest the temperature is showing, and now in Celsios, thank you.. But for some reason sometimes when i try to change the temperature in HA the climate becames unavailable.
Please try again with new version. After test please post the configuration you are using and provide some more details if still have issue.
Hello, temp is working for me however I still have issues controlling the HVAC modes on my AC (Cool, fan, etc)
Hi, my heating thermostats acting weird. In normal Tuya integration, the ar right only multiplied by 10 but with Tuya-custom I dont se the logic here. See the pics.
What does the 2 picture means? Sorry but my crystal ball is broken!!!
Second picture is with using Ha_tuya_custom. So 26°C in real life is reported as 127°C and 23°C is 110°C. So the divider option should be 4.8846 or 4.7826? First picture is using standard HA Tuya integration and it can be divided by 10.
I think it is just dividing by 2 and rounding. But do not enter in the logic inside the component, just try to force a divider equal to 10 with this config in configuration.yaml:
tuya_custom:
devices_config:
- device_name: <Friendly Name of your device in HA> # this is mandatory with at least one of the other keys
temp_divider: 10
and report if temperatures are shown properly.
WOW, you r genius! Now my temperature is spot on, target temperature same, step temperature is also correct 0,5 °C. Only slightly off is min and max temperature. It shlould be 5 to 35°C, but in info tab is min_temp: 0.5 and max_temp: 122°C, dont know why.
But BIG BIG, thanks anyway! Im glad that someone made this.
I have a TCL air conditioner that uses the smart life platform. The temperature is not working. Currently it is set at 71 degrees and the component in HA is showing 160.
If I change the temp in HA to 142, the temperature on the unit shows 61 If I change the temp in HA to 147, the temperature on the unit shows 64 If I change the temp in HA to 200, the temperature on the unit shows 64 If I change the temp in HA to 210, the temperature on the unit shows 72
If I set the temp on the AC to 88, HA shows 162
Temperatures are in Fahrenheit.