Add discovered HVAC and PRESET options (#1177)

* Add discovered HVAC and PRESET options

This commit adds the HVAC Action Set and Preset Set that I've discovered my Bödenwarme Underfloor Heating thermostat to be using as detailed here: https://github.com/rospogrigio/localtuya/issues/1175

* Add HVAC mode and action sets for climate entities

These are the actions and modes as reported by the Magnum smart wifi
thermostat: https://www.magnumheating.com/product/remote-control/

---------

Co-authored-by: Rutger Kerkhoff <rutger.kerkhoff@grafana.com>
This commit is contained in:
Andy Barratt
2024-09-13 14:04:02 +01:00
committed by GitHub
parent 87d61eea6f
commit 1da7b313d4

View File

@@ -72,6 +72,10 @@ HVAC_MODE_SETS = {
HVACMode.HEAT: "Manual", HVACMode.HEAT: "Manual",
HVACMode.AUTO: "Auto", HVACMode.AUTO: "Auto",
}, },
"MANUAL/AUTO": {
HVAC_MODE_HEAT: "MANUAL",
HVAC_MODE_AUTO: "AUTO",
},
"Manual/Program": { "Manual/Program": {
HVACMode.HEAT: "Manual", HVACMode.HEAT: "Manual",
HVACMode.AUTO: "Program", HVACMode.AUTO: "Program",
@@ -112,6 +116,10 @@ HVAC_ACTION_SETS = {
HVACAction.HEATING: "Heat", HVACAction.HEATING: "Heat",
HVACAction.IDLE: "Warming", HVACAction.IDLE: "Warming",
}, },
"heating/warming": {
CURRENT_HVAC_HEAT: "heating",
CURRENT_HVAC_IDLE: "warming",
},
} }
HVAC_FAN_MODE_SETS = { HVAC_FAN_MODE_SETS = {
"Auto/Low/Middle/High/Strong": { "Auto/Low/Middle/High/Strong": {
@@ -134,6 +142,11 @@ PRESET_SETS = {
PRESET_HOME: "Program", PRESET_HOME: "Program",
PRESET_NONE: "Manual", PRESET_NONE: "Manual",
}, },
"smart/holiday/hold": {
PRESET_AWAY: "holiday",
PRESET_HOME: "smart",
PRESET_NONE: "hold",
},
} }
TEMPERATURE_CELSIUS = "celsius" TEMPERATURE_CELSIUS = "celsius"