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

Add support for fan preset modes (#5694)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Tucker Kern
2023-12-11 22:13:26 -07:00
committed by GitHub
parent 47665164e8
commit ad79e4fe24
18 changed files with 277 additions and 17 deletions

View File

@@ -2944,6 +2944,33 @@ fan:
on_speed_set:
then:
- logger.log: Fan speed was changed!
- platform: speed
id: fan_speed_presets
icon: mdi:weather-windy
output: pca_6
speed_count: 10
name: Speed Fan w/ Presets
oscillation_output: gpio_19
direction_output: gpio_26
preset_modes:
- Preset 1
- Preset 2
on_preset_set:
then:
- logger.log: Preset mode was changed!
- platform: hbridge
id: fan_hbridge_presets
icon: mdi:weather-windy
speed_count: 4
name: H-bridge Fan w/ Presets
pin_a: pca_6
pin_b: pca_7
preset_modes:
- Preset 1
- Preset 2
on_preset_set:
then:
- logger.log: Preset mode was changed!
- platform: bedjet
name: My Bedjet fan
bedjet_id: my_bedjet_client
@@ -4193,4 +4220,3 @@ alarm_control_panel:
then:
- lambda: !lambda |-
ESP_LOGD("TEST", "State change %s", alarm_control_panel_state_to_string(id(alarmcontrolpanel1)->get_state()));