-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfan.yaml
38 lines (38 loc) · 1.05 KB
/
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
33
34
35
36
37
38
- platform: smartir
name: Loungeroom Fan
unique_id: loungeroom_fan
device_code: 1050
controller_data: remote.lounge_broadlink_remote_remote
#power_sensor: binary_sensor.fan_power
#- platform: template
# fans:
# bedroom_aircon_fan:
# friendly_name: "Bedroom Aircon Fan"
# value_template: >
# {% if states.climate.bedroom_aircon.state == 'off' %}
# off
# {% else %}
# on
# {% endif %}
# preset_mode_template: "{{ states.climate.bedroom_aircon.attributes.fan_mode }}"
# preset_modes:
# - 'auto'
# - 'low'
# - 'medium'
# - 'high'
# turn_on:
# service: climate.set_hvac_mode
# target:
# entity_id: climate.bedroom_aircon
# data:
# hvac_mode: auto
# turn_off:
# service: climate.turn_off
# target:
# entity_id: climate.bedroom_aircon
# set_preset_mode:
# service: climate.set_fan_mode
# target:
# entity_id: climate.bedroom_aircon
# data:
# fan_mode: "{{ preset_mode }}"