Open joriws opened 10 months ago
So the issues is that I've 6x floor thermostat and I cannot install them because I cannot assign any DP really to ID.
With above "patch" for PRESET and CURRENT mode the HA climate card seemed to work ok.
I am wondering if the label „ID“ is misleading? It is apparently to be assigned to the Main Power switch. And I agree: It should Not be mandatory.
I think this is not the case. If "ID" is set at DP 1 which is True/False the climate.py does not work. HA localtuya shown just Unknown. This what I initially tried, until mapping to power/kW DP which enabled the climate device.
I think this localtuya is abandoned. Is there any active repo?
Got the same problem with a TGM50-WIFI device
The problem
At least "climate" type of config flow forces setting DP to UI's "ID*" field. Problem is that there is no DP with ID available. So cannot add multiple thermostats. And cannot set/delete anything.
after submit the next screen:
which proposes DP 2 as ID, because on this example screenshot session I had already DP 1 used as a switch-type for thermostat relay.
I strongly feel that ID should not be there or it should be free field or even better - the tuya fetched id.
Maybe the ID is set correctly if device is discovered. I needed to manually add my devices into localtuya. So "add device" screen only provided "..." -option.,
Environment
Steps to reproduce
DP dump
Provide Home Assistant traceback/logs
Additional information
For this device "Dunwore F60 wifi" climate.py could be patched with:
"Heating/Standby": { CURRENT_HVAC_HEAT: "heating", CURRENT_HVAC_IDLE: "standby", },
and
"Auto/Comfort/Eco/Holiday": { PRESET_AWAY: "holiday", PRESET_ECO: "eco", PRESET_COMFORT: "comfort", PRESET_HOME: "auto", },
also temperature_celsius/f is at DP23 c|f