mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-09-29 04:27:32 +02:00
Update ifan02 example with new fan speed options (#1177)
This commit is contained in:
parent
d556c60e3f
commit
d2afdce3ac
@ -158,7 +158,7 @@ Then you need to set it up with yaml.
|
|||||||
then:
|
then:
|
||||||
- fan.turn_on:
|
- fan.turn_on:
|
||||||
id: ifan02_fan
|
id: ifan02_fan
|
||||||
speed: LOW
|
speed: 1
|
||||||
- if:
|
- if:
|
||||||
condition:
|
condition:
|
||||||
and:
|
and:
|
||||||
@ -168,7 +168,7 @@ Then you need to set it up with yaml.
|
|||||||
then:
|
then:
|
||||||
- fan.turn_on:
|
- fan.turn_on:
|
||||||
id: ifan02_fan
|
id: ifan02_fan
|
||||||
speed: MEDIUM
|
speed: 2
|
||||||
- if:
|
- if:
|
||||||
condition:
|
condition:
|
||||||
and:
|
and:
|
||||||
@ -178,7 +178,7 @@ Then you need to set it up with yaml.
|
|||||||
then:
|
then:
|
||||||
- fan.turn_on:
|
- fan.turn_on:
|
||||||
id: ifan02_fan
|
id: ifan02_fan
|
||||||
speed: HIGH
|
speed: 3
|
||||||
- switch.turn_off: update_fan_speed
|
- switch.turn_off: update_fan_speed
|
||||||
|
|
||||||
- platform: gpio
|
- platform: gpio
|
||||||
@ -197,6 +197,7 @@ Then you need to set it up with yaml.
|
|||||||
- platform: speed
|
- platform: speed
|
||||||
output: fanoutput
|
output: fanoutput
|
||||||
id: ifan02_fan
|
id: ifan02_fan
|
||||||
|
speed_count: 3
|
||||||
name: "iFan02 Fan"
|
name: "iFan02 Fan"
|
||||||
|
|
||||||
See Also
|
See Also
|
||||||
|
Loading…
Reference in New Issue
Block a user