Add config flow to generic thermostat (#33321)

This commit is contained in:
Joakim Plate 2024-06-22 18:27:02 +02:00 committed by GitHub
parent 60b7124e64
commit bc785d78b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,15 +8,21 @@ ha_iot_class: Local Polling
ha_domain: generic_thermostat
ha_platforms:
- climate
ha_integration_type: integration
ha_integration_type: helper
related:
- docs: /docs/configuration/
title: Configuration file
ha_config_flow: true
---
The `generic_thermostat` climate {% term integration %} is a thermostat implemented in Home Assistant. It uses a sensor and a switch connected to a heater or air conditioning under the hood. When in heater mode, if the measured temperature is cooler than the target temperature, the heater will be turned on and turned off when the required temperature is reached. When in air conditioning mode, if the measured temperature is hotter than the target temperature, the air conditioning will be turned on and turned off when required temperature is reached. One Generic Thermostat entity can only control one switch. If you need to activate two switches, one for a heater and one for an air conditioner, you will need two Generic Thermostat entities.
To enable the {% term integration %}, you need to add it to your {% term "`configuration.yaml`" %} file.
{% include integrations/config_flow.md %}
## YAML configuration
Alternatively, this integration can be configured and set up manually via YAML
as well. To enable the {% term integration %}, you need to add it to your {% term "`configuration.yaml`" %} file.
{% include integrations/restart_ha_after_config_inclusion.md %}
```yaml
@ -129,7 +135,7 @@ Currently the `generic_thermostat` climate platform supports 'heat', 'cool' and
Please note that when changing the preset mode to away, you will force a target temperature change as well that will get restored once the preset mode is set to none again.
## Full configuration example
## Full YAML configuration example
```yaml
climate: