mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
Climate bang bang enhancements (#1061)
* Add fan support to bang bang controller * Fix heat-only and cool-only modes * Added support for all climate actions and modes * Fix up some comments * Fan_only mode behavior tweak * Updated test * Updated test, take 2 * Add accessor methods for easier use in lambadas * Revert "Add accessor methods for easier use in lambadas" This reverts commit f15713129cd5587242a08ad1e2ee37cbf075aa03. Don't code late at night when sleepy. * Fix single/dual setpoint support * Linted * Properly implement single-point, validation improvements * Another quick fix...sigh * Update tests * Update tests, take 2 * Revert "Update tests, take 2" This reverts commit 71bb7fccc53d95a7d221e80ea0a931fb3cfd9a0c. Nope. * Revert "Update tests" This reverts commit 42044291efaaf09858f29ab27bbc3aa9e8b80ee9. Nope 2. * Updated/fixed tests * Revert "Updated/fixed tests" This reverts commit a1a5b1c7db9a240b9da668b6e48abe1dd7910777. Taking a different approach. * Revert "Another quick fix...sigh" This reverts commit 6b1955724a2de3c2d1534ec206dd5794bbb5f568. Taking a different approach. * Revert "Properly implement single-point, validation improvements" This reverts commit f5bfff099e1dc58edd3898da8655c147adde2301. Taking a different approach. * Single/dual set point fixes, full validation * Fix test * Fix restore-on-boot, clean up comments * Decouple two-point/auto operation, more polish * One last away mode tweak * Added set point validation * Clean up over-publishing, always call action after boot * Add fan support to bang bang controller * Fix heat-only and cool-only modes * Added support for all climate actions and modes * Fix up some comments * Fan_only mode behavior tweak * Updated test * Updated test, take 2 * Add accessor methods for easier use in lambadas * Revert "Add accessor methods for easier use in lambadas" This reverts commit f15713129cd5587242a08ad1e2ee37cbf075aa03. Don't code late at night when sleepy. * Fix single/dual setpoint support * Linted * Properly implement single-point, validation improvements * Another quick fix...sigh * Update tests * Update tests, take 2 * Revert "Update tests, take 2" This reverts commit 71bb7fccc53d95a7d221e80ea0a931fb3cfd9a0c. Nope. * Revert "Update tests" This reverts commit 42044291efaaf09858f29ab27bbc3aa9e8b80ee9. Nope 2. * Updated/fixed tests * Revert "Updated/fixed tests" This reverts commit a1a5b1c7db9a240b9da668b6e48abe1dd7910777. Taking a different approach. * Revert "Another quick fix...sigh" This reverts commit 6b1955724a2de3c2d1534ec206dd5794bbb5f568. Taking a different approach. * Revert "Properly implement single-point, validation improvements" This reverts commit f5bfff099e1dc58edd3898da8655c147adde2301. Taking a different approach. * Single/dual set point fixes, full validation * Fix test * Fix restore-on-boot, clean up comments * Decouple two-point/auto operation, more polish * One last away mode tweak * Added set point validation * Clean up over-publishing, always call action after boot * Added refresh() function to allow easy on-device state refreshing
This commit is contained in:
@@ -615,6 +615,49 @@ climate:
|
||||
- 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
|
||||
|
Reference in New Issue
Block a user