-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswitch.yaml
executable file
·33 lines (30 loc) · 1.05 KB
/
switch.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: template
switches:
blue_shell_climate:
friendly_name: Blue Shell Climate
icon_template: "mdi:fan"
value_template: "{{ is_state('climate.blue_shell_hvac_climate_system','heat_cool') }}"
turn_on:
- service: climate.turn_on
target:
entity_id: climate.blue_shell_hvac_climate_system
turn_off:
- service: climate.turn_off
target:
device_id: 5912382cb94176f76b594aa4d8945945
blue_shell_defrost:
friendly_name: Blue Shell Defrost
icon_template: "mdi:snowflake-melt"
value_template: "{{ is_state_attr('climate.blue_shell_hvac_climate_system','preset_mode','Defrost') }}"
turn_on:
- service: climate.set_preset_mode
target:
entity_id: climate.blue_shell_hvac_climate_system
data:
preset_mode: Defrost
turn_off:
- service: climate.set_preset_mode
target:
entity_id: climate.blue_shell_hvac_climate_system
data:
preset_mode: Normal