Skip to content

Commit

Permalink
feat: add humidity support and templates for min/max temp, and fix se…
Browse files Browse the repository at this point in the history
…tting `HEAT_COOL` (#72)

* Update README.md to include doc on Target Humidity and Min-Max Temp Templates

* Fix setting temperature for HEAT_COOL. Add support for setting humidity. Add support for specifying templates for min and max temp.

* Fix formatting
  • Loading branch information
sabaatworld committed Jul 19, 2024
1 parent 58c1d6a commit 06e1e77
Show file tree
Hide file tree
Showing 2 changed files with 187 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ If you do not define a `template` or its corresponding `action` the climate devi
| | | | |
| current_temperature_template | [`template`](https://www.home-assistant.io/docs/configuration/templating) | Defines a template to get the current temperature. | |
| current_humidity_template | [`template`](https://www.home-assistant.io/docs/configuration/templating) | Defines a template to get the current humidity. | |
| min_humidity_template | [`template`](https://www.home-assistant.io/docs/configuration/templating) | Defines a template to get the minimum target humidity. | |
| max_humidity_template | [`template`](https://www.home-assistant.io/docs/configuration/templating) | Defines a template to get the maximum target humidity. | |
| target_humidity_template | [`template`](https://www.home-assistant.io/docs/configuration/templating) | Defines a template to get the target humidity. | |
| target_temperature_template | [`template`](https://www.home-assistant.io/docs/configuration/templating) | Defines a template to get the target temperature of the climate device. | |
| target_temperature_high_template | [`template`](https://www.home-assistant.io/docs/configuration/templating) | Defines a template to get the target temperature high of the climate device. | |
| target_temperature_low_template | [`template`](https://www.home-assistant.io/docs/configuration/templating) | Defines a template to get the target temperature low of the climate device. | |
Expand All @@ -32,7 +35,8 @@ If you do not define a `template` or its corresponding `action` the climate devi
| swing_mode_template | [`template`](https://www.home-assistant.io/docs/configuration/templating) | Defines a template to get the swing mode of the climate device. | |
| hvac_action_template | [`template`](https://www.home-assistant.io/docs/configuration/templating) | Defines a template to get the [`hvac action`](https://developers.home-assistant.io/docs/core/entity/climate/#hvac-action) of the climate device. | |
| | | | |
| set_temperature | [`action`](https://www.home-assistant.io/docs/scripts) | Defines an action to run when the climate device is given the set temperature command. Can use `temperature`, `target_temp_high`, `target_temp_low` and `hvac_mode` variables. | |
| set_humidity | [`action`](https://www.home-assistant.io/docs/scripts) | Defines an action to run when the climate device is given the set humidity command. Can use `humidity` variable. | |
| set_temperature | [`action`](https://www.home-assistant.io/docs/scripts) | Defines an action to run when the climate device is given the set temperature command. Can use `temperature`, `target_temp_high`, `target_temp_low` and `hvac_mode` variables. | |
| set_hvac_mode | [`action`](https://www.home-assistant.io/docs/scripts) | Defines an action to run when the climate device is given the set hvac mode command. Can use `hvac_mode` variable. | |
| set_fan_mode | [`action`](https://www.home-assistant.io/docs/scripts) | Defines an action to run when the climate device is given the set fan mode command. Can use `fan_mode` variable. | |
| set_swing_mode | [`action`](https://www.home-assistant.io/docs/scripts) | Defines an action to run when the climate device is given the set swing mode command. Can use `swing_mode` variable. | |
Expand All @@ -42,7 +46,9 @@ If you do not define a `template` or its corresponding `action` the climate devi
| swing_modes | `list` | A list of supported swing modes. | ["on", "off"] |
| | | | |
| min_temp | `float` | Minimum set point available. | 7 |
| min_temp_template | [`template`](https://www.home-assistant.io/docs/configuration/templating) | Defines a template to get the minimum set point available. Overrides value specified by `min_temp`. | |
| max_temp | `float` | Maximum set point available. | 35 |
| max_temp_template | [`template`](https://www.home-assistant.io/docs/configuration/templating) | Defines a template to get the maximum set point available. Overrides value specified by `max_temp`. | |
| precision | `float` | The desired precision for this device. | 0.1 for Celsius and 1.0 for Fahrenheit. |
| temp_step | `float` | Step size for temperature set point. | 1 |

Expand Down
Loading

0 comments on commit 06e1e77

Please sign in to comment.