1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 14:43:51 +00:00

Add some components to the new testing framework (B) (#6173)

This commit is contained in:
Keith Burzinski
2024-02-06 13:32:40 -06:00
committed by GitHub
parent cfe16c92ee
commit 05da0fb4cf
130 changed files with 2650 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
switch:
- platform: template
id: template_switch1
optimistic: true
- platform: template
id: template_switch2
optimistic: true
sensor:
- platform: template
id: template_sensor1
lambda: |-
if (millis() > 10000) {
return 42.0;
} else {
return 0.0;
}
update_interval: 60s
climate:
- platform: bang_bang
name: Bang Bang Climate
sensor: template_sensor1
humidity_sensor: template_sensor1
default_target_temperature_low: 18°C
default_target_temperature_high: 24°C
idle_action:
- switch.turn_on: template_switch1
cool_action:
- switch.turn_on: template_switch2
heat_action:
- switch.turn_on: template_switch1
away_config:
default_target_temperature_low: 16°C
default_target_temperature_high: 20°C