-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswitch.yaml
158 lines (150 loc) · 5.47 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
- platform: wake_on_lan
mac: !secret danny_pc_mac
name: "Danny's PC"
host: !secret danny_pc_ip
turn_off:
service: button.press
entity_id: button.chicane_sleep
- platform: wake_on_lan
mac: !secret racing_pc_mac
name: "Racing PC"
host: !secret racing_pc_ip
- platform: template
switches:
# living_room_harmony_watch_tv:
# friendly_name: 'Lounge TV'
# value_template: "{{ is_state_attr('remote.living_room', 'current_activity', 'Watch TV')}}"
# turn_on:
# service: script.turn_on
# data:
# entity_id: script.harm_living_watch_tv
# turn_off:
# service: script.turn_on
# data:
# entity_id: script.harm_living_turn_off
# living_room_harmony_watch_apple_tv:
# friendly_name: 'Apple TV'
# value_template: "{{ is_state_attr('remote.living_room', 'current_activity', 'Watch Apple TV')}}"
# turn_on:
# service: script.turn_on
# data:
# entity_id: script.harm_living_watch_apple_tv
# turn_off:
# service: script.turn_on
# data:
# entity_id: script.harm_living_turn_off
# living_room_harmony_watch_smart_tv:
# friendly_name: 'Smart TV'
# value_template: "{{ is_state_attr('remote.living_room', 'current_activity', 'Watch Smart TV')}}"
# turn_on:
# service: script.turn_on
# data:
# entity_id: script.harm_living_watch_smart_tv
# turn_off:
# service: script.turn_on
# data:
# entity_id: script.harm_living_turn_off
christmas_tree:
friendly_name: 'Christmas Tree'
value_template: "{{ states.switch.bedroom_heater.state == 'on' }}"
turn_on:
service: switch.turn_on
data:
entity_id: switch.bedroom_heater
turn_off:
service: switch.turn_off
data:
entity_id: switch.bedroom_heater
icon_template: mdi:tree
port_forward_ftp:
friendly_name: Port Forward FTP
value_template: "{{ states.group.port_forward_ftp.state == 'on' }}"
turn_on:
service: script.turn_on
data:
entity_id: script.port_forward_ftp_turn_on
turn_off:
service: script.turn_on
data:
entity_id: script.port_forward_ftp_turn_off
port_forward_rfactor:
friendly_name: Port Forward rFactor Server
value_template: "{{ states.group.port_forward_rfactor_server.state == 'on' }}"
turn_on:
service: script.turn_on
data:
entity_id: script.port_forward_rfactor_turn_on
turn_off:
service: script.turn_on
data:
entity_id: script.port_forward_rfactor_turn_off
port_forward_sunshine:
friendly_name: Port Forward Sunshine/Moonlight
value_template: "{{ states.group.port_forward_sunshine_moonlight.state == 'on' }}"
turn_on:
service: script.turn_on
data:
entity_id: script.port_forward_sunshine_turn_on
turn_off:
service: script.turn_on
data:
entity_id: script.port_forward_sunshine_turn_off
port_forward_assetto_corsa:
friendly_name: Port Forward Assetto Corsa
value_template: "{{ states.group.port_forward_assetto_corsa.state == 'on' }}"
turn_on:
service: script.turn_on
data:
entity_id: script.port_forward_assetto_corsa_turn_on
turn_off:
service: script.turn_on
data:
entity_id: script.port_forward_assetto_corsa_turn_off
# Circadian Lighting
# - platform: circadian_lighting
# name: Loungeroom
# lights_ct:
# - light.loungeroom
# min_brightness: 20
# - platform: circadian_lighting
# name: Bedroom
# lights_ct:
# - light.bedroom
# disable_entity: input_boolean.bedtime_triggered
# disable_state: on
# min_brightness: 20
# - platform: circadian_lighting
# name: Kitchen
# lights_ct:
# - light.kitchen
# min_brightness: 20
# - platform: circadian_lighting
# name: Hallway
# lights_ct:
# - light.hallway
# min_brightness: 20
#### GROUPS ####
# - platform: group
# name: Port Forward FTP
# entities:
# - switch.pfsense_home_nat_port_forward_rule_1295623160_ftp
# - switch.pfsense_home_nat_port_forward_rule_1562559015_ftp_pasv_ports
# - platform: group
# name: Port Forward rFactor Server
# entities:
# - switch.pfsense_home_nat_port_forward_rule_1658297923_rfactor_racing_rig_1
# - switch.pfsense_home_nat_port_forward_rule_1658297951_rfactor_racing_rig_2
# - switch.pfsense_home_nat_port_forward_rule_1658297969_rfactor_racing_rig_3
# - platform: group
# name: Port Forward Sunshine/Moonlight
# entities:
# - switch.pfsense_home_nat_port_forward_rule_1669849028_gamestream_tcp_1
# - switch.pfsense_home_nat_port_forward_rule_1669849059_gamestream_tcp_2
# - switch.pfsense_home_nat_port_forward_rule_1669849081_gamestream_tcp_3
# - switch.pfsense_home_nat_port_forward_rule_1669849146_gamestream_udp_1
# - switch.pfsense_home_nat_port_forward_rule_1669849163_gamestream_udp_2
# - platform: group
# name: Port Forward Assetto Corsa
# entities:
# - switch.pfsense_home_nat_port_forward_rule_1641534405_assetto_on_server_http
# - switch.pfsense_home_nat_port_forward_rule_1641534374_assetto_on_server