forked from tchiavegatti/HomeAssistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
switches.yaml
146 lines (129 loc) · 7.75 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
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
#https://home-assistant.io/components/switch/
####################################################
# #
# BROADLINK IR SWITCHES #
# #
####################################################
#https://home-assistant.io/components/switch.broadlink/
- platform: broadlink
host: 192.168.1.32
mac: 34:ea:34:e3:da:0d
type: rm_mini
switches:
receiverpower:
command_on: JgCqAFASKBIVEigSFREpEhQSFRQVEhURFRIVESkRKRIUEhUAAsdQEigSFREpEhQSKBIVEhUUFRIUEhUSFBIoEigSFRIVAALWUBIoExQSKBIVEigSFREVFRQSFREVEhURKRIoEhURFQAC1FASKBIVEigSFREpEhQSFRQVEhQSFRIUEigSKRIUEhUAAs1QEigSFREpEhQSKBIVEhUUFRIUEhUSFBIoEigSFRIVAA0FAAAAAAAAAAAAAAAAAAA=
command_off: JgCqAFASKBIVEigSFREpEhQSFRQVEhURFRIVESkRKRIUEhUAAsdQEigSFREpEhQSKBIVEhUUFRIUEhUSFBIoEigSFRIVAALWUBIoExQSKBIVEigSFREVFRQSFREVEhURKRIoEhURFQAC1FASKBIVEigSFREpEhQSFRQVEhQSFRIUEigSKRIUEhUAAs1QEigSFREpEhQSKBIVEhUUFRIUEhUSFBIoEigSFRIVAA0FAAAAAAAAAAAAAAAAAAA=
receivervideo1:
command_on: JgCqAFASFREpEhQSFRIUEigSFRQVEhURFRIVESgSKRIUEhUAAtBQEhUSKBIVEhQSFREpEhQVFREVEhURFRIoEigSFRIUAALpTxIVEigSFRIUEhURKRIUFRURFRIVERUSKBIoEhUSFAAC8E8SFRIoEhUSFBIVESkSFBUVERUSFREVEigSKBIVEhQAAuJQExQSKBIVEhQSFRIoEhUUFRIUEhUSFBIoEigSFRIVAA0FAAAAAAAAAAAAAAAAAAA=
command_off: JgCqAFASFREpEhQSFRIUEigSFRQVEhURFRIVESgSKRIUEhUAAtBQEhUSKBIVEhQSFREpEhQVFREVEhURFRIoEigSFRIUAALpTxIVEigSFRIUEhURKRIUFRURFRIVERUSKBIoEhUSFAAC8E8SFRIoEhUSFBIVESkSFBUVERUSFREVEigSKBIVEhQAAuJQExQSKBIVEhQSFRIoEhUUFRIUEhUSFBIoEigSFRIVAA0FAAAAAAAAAAAAAAAAAAA=
receivervideo2:
command_on: JgCqAE8TFBIoEikRKRIoEhURFRUUEhUSFBIVESkSKBIVERUAArFQEhURKRIoEigSKBIVEhUUFREVEhURFRIoEigSFRIVAALHUBIVESkSKBIoEigSFRIUFRURFRIVERUSKBIoEhUSFAACvlASFRIoEigSKBIoExQSFRQVEhQSFRIUEigSKBMUEhUAArtQEhURKBIpEigSKBIVEhQVFBIVEhQSFRIoEigSFRIUAA0FAAAAAAAAAAAAAAAAAAA=
command_off: JgCqAE8TFBIoEikRKRIoEhURFRUUEhUSFBIVESkSKBIVERUAArFQEhURKRIoEigSKBIVEhUUFREVEhURFRIoEigSFRIVAALHUBIVESkSKBIoEigSFRIUFRURFRIVERUSKBIoEhUSFAACvlASFRIoEigSKBIoExQSFRQVEhQSFRIUEigSKBMUEhUAArtQEhURKBIpEigSKBIVEhQVFBIVEhQSFRIoEigSFRIUAA0FAAAAAAAAAAAAAAAAAAA=
receivermute:
command_on: JgCqAE8TFBIVESkSFBIoEhUSFRQVEhQSFREVEigSKBIVEhUAAtBQEhUSFBIoEhUSKBIVEhQVFBIVEhQSFRIoEigSFRIUAALfUBIVERUSKBIVESkSFBIVFBUSFREVEhURKBIpEhQSFQAC5lASFRIUEigSFRIoEhUSFBUUEhUSFBIVEigSKBIVEhQAAuVQEhURFRIoEhURKRIUEhUUFRIVERUSFBIoEikSFBIVAA0FAAAAAAAAAAAAAAAAAAA=
command_off: JgCqAE8TFBIVESkSFBIoEhUSFRQVEhQSFREVEigSKBIVEhUAAtBQEhUSFBIoEhUSKBIVEhQVFBIVEhQSFRIoEigSFRIUAALfUBIVERUSKBIVESkSFBIVFBUSFREVEhURKBIpEhQSFQAC5lASFRIUEigSFRIoEhUSFBUUEhUSFBIVEigSKBIVEhQAAuVQEhURFRIoEhURKRIUEhUUFRIVERUSFBIoEikSFBIVAA0FAAAAAAAAAAAAAAAAAAA=
receivervolup:
command_on: JgCIAE8SFRIoEhUSFBIoEhUSFBUVERUSFREVEigSKBIVEhQAAtFQEhURKRIUEhUSKBIVERUVFBIVEhQSFREpEigSFREVAALfTxMUEigSFRIUEigTFBIVFBUSFBIVEhQSKBIoEhUSFQAC5E8TFBIoEhUSFREoExQSFRQVEhQSFRIUEigSKBIVEhUADQU=
command_off: JgCIAE8SFRIoEhUSFBIoEhUSFBUVERUSFREVEigSKBIVEhQAAtFQEhURKRIUEhUSKBIVERUVFBIVEhQSFREpEigSFREVAALfTxMUEigSFRIUEigTFBIVFBUSFBIVEhQSKBIoEhUSFQAC5E8TFBIoEhUSFREoExQSFRQVEhQSFRIUEigSKBIVEhUADQU=
receivervoldwn:
command_on: JgCqAFASKBIpEhQSFREpEhQSFRQVEhURFRIUEigSKRIUEhUAArpQEigSKBMUEhURKRIUEhUUFRIVERUSFBIoEikSFBIVAALQTxIpEigSFREVEigSFRIUFRQSFRIUEhUSKBIoEhUSFAAC1U8SKRIoEhURFRIoEhUSFBUUEhUSFBIVEigSKBIVEhQAAs9PEikSKBIVERUSKBIVERUVFBIVEhQSFREpEigSFREVAA0FAAAAAAAAAAAAAAAAAAA=
command_off: JgCqAFASKBIpEhQSFREpEhQSFRQVEhURFRIUEigSKRIUEhUAArpQEigSKBMUEhURKRIUEhUUFRIVERUSFBIoEikSFBIVAALQTxIpEigSFREVEigSFRIUFRQSFRIUEhUSKBIoEhUSFAAC1U8SKRIoEhURFRIoEhUSFBUUEhUSFBIVEigSKBIVEhQAAs9PEikSKBIVERUSKBIVERUVFBIVEhQSFREpEigSFREVAA0FAAAAAAAAAAAAAAAAAAA=
tvpower:
command_on: JgBgAAABKJAVEBQ1FDUUEhUQFQ8VEBU2FTQVEBQ0FRIVEBQQFRAUEhU0FTQVNBU2FRAVEBQQFRIUEBUQFBAVEhQ1FDUUNRQ3FQAFbgABKEcUAAv5AAEoRxUAC/kAASdIFAANBQAAAAAAAAAA
command_off: JgBgAAABKJAVEBQ1FDUUEhUQFQ8VEBU2FTQVEBQ0FRIVEBQQFRAUEhU0FTQVNBU2FRAVEBQQFRIUEBUQFBAVEhQ1FDUUNRQ3FQAFbgABKEcUAAv5AAEoRxUAC/kAASdIFAANBQAAAAAAAAAA
tvhdmi:
command_on: AAAvANAGEaAI0AEaARoBGgNOARpUQhGgBGgBGrvOIgEiEREiEhERERESEhIiISEjgkU=
command_off: AAAvANAGEaAI0AEaARoBGgNOARpUQhGgBGgBGrvOIgEiEREiEhERERESEhIiISEjgkU=
tvtv:
command_on: AAAvANAGEaAI0AEaARoBGgNOARpUQhGgBGgBGrvOIgEiEREiEhEREiIhEhEREiEjgkU=
command_off: AAAvANAGEaAI0AEaARoBGgNOARpUQhGgBGgBGrvOIgEiEREiEhEREiIhEhEREiEjgkU=
####################################################
# #
# MQTT #
# #
####################################################
- platform: mqtt
name: "POW1"
state_topic: "stat/pow1/POWER"
command_topic: "cmnd/pow1/POWER"
availability_topic: "tele/pow1/LWT"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: true
- platform: mqtt
name: "Basic1"
state_topic: "stat/basic1/POWER"
command_topic: "cmnd/basic1/POWER"
availability_topic: "tele/basic1/LWT"
qos: 1
payload_on: "ON"
payload_off: "OFF"
payload_available: "Online"
payload_not_available: "Offline"
retain: true
####################################################
# #
# REST SWITCHES #
# #
####################################################
#https://www.home-assistant.io/components/switch.rest/
- platform: rest
resource: http://192.168.1.24:8126/container/home-assistant
name: Home Assistant
body_on: '{"state": "start"}'
body_off: '{"state": "stop"}'
is_on_template: '{{ value_json is not none and value_json.state == "running" }}'
- platform: rest
resource: http://192.168.1.24:8126/container/ha-dockermon
name: HA Dockermon
body_on: '{"state": "start"}'
body_off: '{"state": "stop"}'
is_on_template: '{{ value_json is not none and value_json.state == "running" }}'
- platform: rest
resource: http://192.168.1.24:8126/container/unifi
name: Unifi
body_on: '{"state": "start"}'
body_off: '{"state": "stop"}'
is_on_template: '{{ value_json is not none and value_json.state == "running" }}'
- platform: rest
resource: http://192.168.1.24:8126/container/MQTT
name: MQTT
body_on: '{"state": "start"}'
body_off: '{"state": "stop"}'
is_on_template: '{{ value_json is not none and value_json.state == "running" }}'
- platform: rest
resource: http://192.168.1.24:8126/container/portainer
name: Portainer
body_on: '{"state": "start"}'
body_off: '{"state": "stop"}'
is_on_template: '{{ value_json is not none and value_json.state == "running" }}'
####################################################
# #
# WAKE ON LAN SWITCHES #
# #
####################################################
#https://home-assistant.io/components/switch.wake_on_lan/
- platform: wake_on_lan
name: HTPC Switch
mac_address: "78:2b:cb:9f:60:cd"
host: 192.168.1.5
turn_off:
service: shell_command.htpc
- platform: wake_on_lan
name: Desktop Switch
mac_address: "b8:ca:3a:8e:92:61"
host: 192.168.1.6
turn_off:
service: shell_command.desktop
- platform: wake_on_lan
name: NAS Switch
mac_address: "00:11:32:6e:f7:c5"
host: 192.168.1.14
####################################################
# #
# END OF CONFIGURATION FILE #
# #
####################################################