From 8a696cbaf2e63d44eca03e3ab9a35a045d115213 Mon Sep 17 00:00:00 2001 From: Fabien Brachere Date: Tue, 28 Jun 2022 08:50:25 +0200 Subject: [PATCH] Add "1/0" entry for HVAC_MODE_SETS BHT-002 thermostat DP #4 set the heating mode (auto or manual). The accepted values are strings "0" for auto mode and "1" for manual mode. This commit add an entry "1/0" to support this behaviour. --- custom_components/localtuya/climate.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/localtuya/climate.py b/custom_components/localtuya/climate.py index 1400ec7..f6433b2 100644 --- a/custom_components/localtuya/climate.py +++ b/custom_components/localtuya/climate.py @@ -72,6 +72,10 @@ HVAC_MODE_SETS = { "True/False": { HVAC_MODE_HEAT: True, }, + "1/0": { + HVAC_MODE_HEAT: "1", + HVAC_MODE_AUTO: "0", + }, } HVAC_ACTION_SETS = { "True/False": {