Skip to content

Commit

Permalink
Add discovered HVAC and PRESET options (#1177)
Browse files Browse the repository at this point in the history
* 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: #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>
  • Loading branch information
apbarratt and RutgerKe authored Sep 13, 2024
1 parent 87d61ee commit 1da7b31
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions custom_components/localtuya/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@
HVACMode.HEAT: "Manual",
HVACMode.AUTO: "Auto",
},
"MANUAL/AUTO": {
HVAC_MODE_HEAT: "MANUAL",
HVAC_MODE_AUTO: "AUTO",
},
"Manual/Program": {
HVACMode.HEAT: "Manual",
HVACMode.AUTO: "Program",
Expand Down Expand Up @@ -112,6 +116,10 @@
HVACAction.HEATING: "Heat",
HVACAction.IDLE: "Warming",
},
"heating/warming": {
CURRENT_HVAC_HEAT: "heating",
CURRENT_HVAC_IDLE: "warming",
},
}
HVAC_FAN_MODE_SETS = {
"Auto/Low/Middle/High/Strong": {
Expand All @@ -134,6 +142,11 @@
PRESET_HOME: "Program",
PRESET_NONE: "Manual",
},
"smart/holiday/hold": {
PRESET_AWAY: "holiday",
PRESET_HOME: "smart",
PRESET_NONE: "hold",
},
}

TEMPERATURE_CELSIUS = "celsius"
Expand Down

0 comments on commit 1da7b31

Please sign in to comment.