-
Notifications
You must be signed in to change notification settings - Fork 19
/
fan.yaml
executable file
·32 lines (28 loc) · 961 Bytes
/
fan.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#############################################################
- platform: mqtt
name: "Gameroom Fan"
command_topic: "sonoff/cmnd/gameroom-fan/POWER"
state_topic: "sonoff/stat/gameroom-fan/RESULT"
state_value_template: "{{ value_json.POWER }}"
retain: true
payload_off: "OFF"
payload_on: "ON"
#############################################################
- platform: mqtt
name: "Office Fan"
command_topic: "sonoff/cmnd/office-switch/POWER1"
speed_command_topic: "sonoff/cmnd/office-switch/Dimmer"
state_topic: "sonoff/stat/office-switch/RESULT"
speed_state_topic: "sonoff/stat/office-switch/RESULT"
speed_value_template: "{{value_json.Dimmer }}"
state_value_template: "{{value_json.POWER1 }}"
retain: true
payload_off: "OFF"
payload_on: "ON"
payload_low_speed: "33"
payload_medium_speed: "66"
payload_high_speed: "100"
speeds:
- low
- medium
- high