1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 10:52:19 +01:00

Add support for controlling fan direction (#1051)

* Fix fan oscillation trait not being used

* Add fan direction support to SpeedFan

* Add fan direction to API

* Add fan direction support to BinaryFan

* Fix CI errors

* Fix python format

* Change some ordering to trigger CI

* Add test for the configuration
This commit is contained in:
Jim Persson
2020-06-14 21:54:31 +02:00
committed by GitHub
parent 35a2258f12
commit 0bb81e5b2d
16 changed files with 156 additions and 17 deletions

View File

@@ -1467,9 +1467,13 @@ fan:
- platform: binary
output: gpio_26
name: "Living Room Fan 1"
oscillation_output: gpio_19
direction_output: gpio_26
- platform: speed
output: pca_6
name: "Living Room Fan 2"
oscillation_output: gpio_19
direction_output: gpio_26
speed:
low: 0.45
medium: 0.75