mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 10:52:19 +01:00
Thermostat component (#1105)
* Add thermostat component * Add hysteresis accessor * Linted * Fixed up const.py and test * Fix test...again...oops
This commit is contained in:
@@ -624,6 +624,63 @@ climate:
|
||||
away_config:
|
||||
default_target_temperature_low: 16°C
|
||||
default_target_temperature_high: 20°C
|
||||
- platform: thermostat
|
||||
name: Thermostat Climate
|
||||
sensor: ha_hello_world
|
||||
default_target_temperature_low: 18°C
|
||||
default_target_temperature_high: 24°C
|
||||
idle_action:
|
||||
- switch.turn_on: gpio_switch1
|
||||
cool_action:
|
||||
- switch.turn_on: gpio_switch2
|
||||
heat_action:
|
||||
- switch.turn_on: gpio_switch1
|
||||
dry_action:
|
||||
- switch.turn_on: gpio_switch2
|
||||
fan_only_action:
|
||||
- switch.turn_on: gpio_switch1
|
||||
auto_mode:
|
||||
- switch.turn_on: gpio_switch2
|
||||
off_mode:
|
||||
- switch.turn_on: gpio_switch1
|
||||
heat_mode:
|
||||
- switch.turn_on: gpio_switch2
|
||||
cool_mode:
|
||||
- switch.turn_on: gpio_switch1
|
||||
dry_mode:
|
||||
- switch.turn_on: gpio_switch2
|
||||
fan_only_mode:
|
||||
- switch.turn_on: gpio_switch1
|
||||
fan_mode_auto_action:
|
||||
- switch.turn_on: gpio_switch2
|
||||
fan_mode_on_action:
|
||||
- switch.turn_on: gpio_switch1
|
||||
fan_mode_off_action:
|
||||
- switch.turn_on: gpio_switch2
|
||||
fan_mode_low_action:
|
||||
- switch.turn_on: gpio_switch1
|
||||
fan_mode_medium_action:
|
||||
- switch.turn_on: gpio_switch2
|
||||
fan_mode_high_action:
|
||||
- switch.turn_on: gpio_switch1
|
||||
fan_mode_middle_action:
|
||||
- switch.turn_on: gpio_switch2
|
||||
fan_mode_focus_action:
|
||||
- switch.turn_on: gpio_switch1
|
||||
fan_mode_diffuse_action:
|
||||
- switch.turn_on: gpio_switch2
|
||||
swing_off_action:
|
||||
- switch.turn_on: gpio_switch1
|
||||
swing_horizontal_action:
|
||||
- switch.turn_on: gpio_switch2
|
||||
swing_vertical_action:
|
||||
- switch.turn_on: gpio_switch1
|
||||
swing_both_action:
|
||||
- switch.turn_on: gpio_switch2
|
||||
hysteresis: 0.2
|
||||
away_config:
|
||||
default_target_temperature_low: 16°C
|
||||
default_target_temperature_high: 20°C
|
||||
|
||||
cover:
|
||||
- platform: endstop
|
||||
|
Reference in New Issue
Block a user