-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswitches.yaml
91 lines (85 loc) · 3.1 KB
/
switches.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Xiaomi Air Purifier 2S
- platform: template
switches:
# xiaomi_airpurifier_led:
# friendly_name: "Air Purifier Display"
# value_template: "{{ is_state_attr('fan.zhimi_airpurifier_ma2', 'led', true) }}"
# turn_on:
# action: xiaomi_miio.fan_set_led_on
# data:
# entity_id: fan.zhimi_airpurifier_ma2
# turn_off:
# action: xiaomi_miio.fan_set_led_off
# data:
# entity_id: fan.zhimi_airpurifier_ma2
# icon_template: "mdi:lightbulb-outline"
# xiaomi_airpurifier_child_lock:
# friendly_name: "Air Purifier Child lock"
# value_template: "{{ is_state_attr('fan.zhimi_airpurifier_ma2', 'child_lock', true) }}"
# turn_on:
# action: xiaomi_miio.fan_set_child_lock_on
# data:
# entity_id: fan.zhimi_airpurifier_ma2
# turn_off:
# action: xiaomi_miio.fan_set_child_lock_off
# data:
# entity_id: fan.zhimi_airpurifier_ma2
# icon_template: "mdi:lock-outline"
#Fireplace
fireplace:
friendly_name: "Fireplace"
turn_on:
action: remote.send_command
data:
entity_id: remote.broadlink_remote
command: b64:JgBQAAABKJcRFBEUEhQRORIUERQSExIUETkSFBE5EhQRORI6ETkROhI5ERQSExEVETkRFRITEhMSFBE5EjkSOREUEjkROhE5EgAFVgABKUwSAA0FAAAAAAAA
turn_off:
action: remote.send_command
data:
entity_id: remote.broadlink_remote
command: b64:JgBQAAABKJcRFBEUEhQRORIUERQSExIUETkSFBE5EhQRORI6ETkROhI5ERQSExEVETkRFRITEhMSFBE5EjkSOREUEjkROhE5EgAFVgABKUwSAA0FAAAAAAAA
fireplace_heat:
friendly_name: "Fireplace Heat"
turn_on:
action: remote.send_command
data:
entity_id: remote.broadlink_remote
command: b64:JgBgAAABJ5cRFREUExISORITEhQRFBIUETkTExE5EhQRORI5EjkRORI6ERMTExE6EhMRFREUEhMRFRE5EjgTExI5EzgROhE5EgAFVgABKE0RAAx8AAEqTBIADHwAASlMEgANBQ==
turn_off:
action: remote.send_command
data:
entity_id: remote.broadlink_remote
command: b64:JgBgAAABJ5cRFREUExISORITEhQRFBIUETkTExE5EhQRORI5EjkRORI6ERMTExE6EhMRFREUEhMRFRE5EjgTExI5EzgROhE5EgAFVgABKE0RAAx8AAEqTBIADHwAASlMEgANBQ==
fireplace_switch_new:
value_template: "{{ is_state('binary_sensor.check_power_state_fireplace', 'on') }}"
turn_on:
action: switch.turn_on
data:
entity_id: switch.fireplace
turn_off:
action: switch.turn_on
data:
entity_id: switch.fireplace
fireplace_heat_switch:
value_template: "{{ is_state('binary_sensor.check_heat_state_fireplace', 'on') }}"
turn_on:
action: switch.turn_on
data:
entity_id: switch.fireplace_heat
turn_off:
action: switch.turn_on
data:
entity_id: switch.fireplace_heat
# - platform: wake_on_lan
# mac: 00:11:32:21:F6:70
# host: "192.168.1.25"
# name: "synology_nas"
# - platform: wake_on_lan
# mac: 90:61:AE:F9:8D:6E
# name: “personal-hp-laptop”
# host: 192.168.1.70
# turn_off:
# service: hassio.addon_stdin
# data:
# addon: core_rpc_shutdown
# input: personal-hp-laptop