mirror of
https://github.com/esphome/esphome.git
synced 2025-11-02 16:11:53 +00:00
[climate] Add some integration tests (#11439)
This commit is contained in:
@@ -210,7 +210,15 @@ sensor:
|
||||
name: "Test Sensor 50"
|
||||
lambda: return 50.0;
|
||||
update_interval: 0.1s
|
||||
# Temperature sensor for the thermostat
|
||||
# Sensors for the thermostat
|
||||
- platform: template
|
||||
name: "Humidity Sensor"
|
||||
id: humidity_sensor
|
||||
lambda: return 35.0;
|
||||
unit_of_measurement: "%"
|
||||
device_class: humidity
|
||||
state_class: measurement
|
||||
update_interval: 5s
|
||||
- platform: template
|
||||
name: "Temperature Sensor"
|
||||
id: temp_sensor
|
||||
@@ -295,6 +303,11 @@ valve:
|
||||
- logger.log: "Valve stopping"
|
||||
|
||||
output:
|
||||
- platform: template
|
||||
id: humidifier_output
|
||||
type: binary
|
||||
write_action:
|
||||
- logger.log: "Humidifier output changed"
|
||||
- platform: template
|
||||
id: heater_output
|
||||
type: binary
|
||||
@@ -305,18 +318,31 @@ output:
|
||||
type: binary
|
||||
write_action:
|
||||
- logger.log: "Cooler output changed"
|
||||
- platform: template
|
||||
id: fan_output
|
||||
type: binary
|
||||
write_action:
|
||||
- logger.log: "Fan output changed"
|
||||
|
||||
climate:
|
||||
- platform: thermostat
|
||||
name: "Test Thermostat"
|
||||
sensor: temp_sensor
|
||||
humidity_sensor: humidity_sensor
|
||||
default_preset: Home
|
||||
on_boot_restore_from: default_preset
|
||||
min_heating_off_time: 1s
|
||||
min_heating_run_time: 1s
|
||||
min_cooling_off_time: 1s
|
||||
min_cooling_run_time: 1s
|
||||
min_fan_mode_switching_time: 1s
|
||||
min_idle_time: 1s
|
||||
visual:
|
||||
min_humidity: 20%
|
||||
max_humidity: 70%
|
||||
min_temperature: 15.0
|
||||
max_temperature: 32.0
|
||||
temperature_step: 0.1
|
||||
heat_action:
|
||||
- output.turn_on: heater_output
|
||||
cool_action:
|
||||
@@ -324,6 +350,14 @@ climate:
|
||||
idle_action:
|
||||
- output.turn_off: heater_output
|
||||
- output.turn_off: cooler_output
|
||||
humidity_control_humidify_action:
|
||||
- output.turn_on: humidifier_output
|
||||
humidity_control_off_action:
|
||||
- output.turn_off: humidifier_output
|
||||
fan_mode_auto_action:
|
||||
- output.turn_off: fan_output
|
||||
fan_mode_on_action:
|
||||
- output.turn_on: fan_output
|
||||
preset:
|
||||
- name: Home
|
||||
default_target_temperature_low: 20
|
||||
|
||||
Reference in New Issue
Block a user