Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add fan entity #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 30 additions & 4 deletions itho.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ switch:

switches:
name: "FanSendMedium"
id: swfan_medium

- platform: custom
lambda: |-
Expand All @@ -68,6 +69,7 @@ switch:

switches:
name: "FanSendHigh"
id: swfan_high

- platform: custom
lambda: |-
Expand Down Expand Up @@ -117,7 +119,31 @@ text_sensor:
icon: "mdi:timer"
- name: "lastid"





fan:
- platform: speed
output: outputswitch
name: "ITHO Fan"
speed_count: 2



output:
- platform: template
id: outputswitch
type: float
write_action:
- if:
condition:
lambda: return ((state == 0) );
then:
- switch.turn_on: swfan_low
- if:
condition:
lambda: return ((state == 0.50) );
then:
- switch.turn_on: swfan_medium
- if:
condition:
lambda: return ((state == 1) );
then:
- switch.turn_on: swfan_high