-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathswitches.yaml
72 lines (67 loc) · 1.93 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
- platform: orvibo
switches:
# - host: 10.0.0.21
# name: "Andrew Monitor" # Now sitting on office shelf
- host: 10.0.0.14
name: "Garage Fan"
- platform: wake_on_lan
name: "NAS"
mac: "e8:fc:af:e6:22:26"
host: 10.0.1.20
turn_off:
service: shell_command.nas_poweroff
- platform: wake_on_lan
name: TV
mac: "44:5c:e9:2e:51:0a"
host: "10.0.1.51"
turn_off:
service: media_player.turn_off
entity_id: media_player.living_room_tv
- platform: template
switches:
home_water_supply:
friendly_name: Home Water Supply
value_template: "{{ is_state('switch.water_shutoff', 'off') }}"
turn_on:
service: switch.turn_off
entity_id: switch.water_shutoff
turn_off:
service: switch.turn_on
entity_id: switch.water_shutoff
icon_template: >
{% if is_state('switch.home_water_supply', 'off') %}
mdi:water-off
{% else %}
mdi:water
{% endif %}
# Fireplace pumpkin patch
#ir_candles:
# friendly_name: Pumpkin Patch
# turn_on:
# service: esphome.ir_candles_candles_on
# turn_off:
# service: esphome.ir_candles_candles_off
# icon_template: mdi:candle
weasel_focus:
friendly_name: Mac Focus Mode
value_template: "{{ is_state('binary_sensor.weasel_focus', 'on') }}"
turn_on:
- service: shell_command.weasel_shortcut
data:
shortcut: focus-in-a-meeting-on
- service: shell_command.weasel_shortcut
data:
shortcut: set-volume-0
turn_off:
- service: shell_command.weasel_shortcut
data:
shortcut: focus-in-a-meeting-off
- service: shell_command.weasel_shortcut
data:
shortcut: set-volume-15
icon_template: >
{% if is_state('binary_sensor.weasel_focus', 'off') %}
mdi:bell
{% else %}
mdi:bell-cancel
{% endif %}