A custom component for Home Assistant that let you to control heating and cooling from the same thermostat entity. Based on official Generic Thermostat Component and on community thread #76443
Copy all files in ha_config_folder/custom_components/hvac_generic_thermostat/ folder
Define the component with:
climate:
- platform: hvac_generic_thermostat
name: Heat Cool Generic Thermostat
cooler: switch.cooler
heater: switch.heater
target_sensor: sensor.any_themp_sensor
min_temp: 15
max_temp: 35
target_temp: 23.5
tolerance: 1.0
away_cool_temp: 27
away_heat_temp: 19
initial_operation_mode: "off"
min_cycle_duration:
seconds: 5
keep_alive:
minutes: 3
precision: 0.1
Field | Value | Necessity | Comments |
---|---|---|---|
platform | 'hvac_generic_thermostat' | Required | |
name | HVAC Generic Thermostat | Optional | |
cooler | Required | Switch that will activate/deactivate the cooling system | |
heater | Required | Switch that will activate/deactivate the heating system | |
target_sensor | Required | Sensor of actual room temperature | |
min_temp | 7 | Optional | Minimum thermostat temperature (default value: 7) |
max_temp | 35 | Optional | Maximum thermostat temperature (default value: 35) |
target_temp | Optional | Desired temperature for the room | |
tolerance | 0.3 | Optional | Temperature tolerance (default value: 0.3) |
away_cool_temp | Optional | Desired away temperature for cooling mode | |
away_heat_temp | Optional | Desired away temperature for heating mode | |
initial_operation_mode | Optional | Operating mode at startup |