-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautomations.yaml
144 lines (130 loc) · 3.1 KB
/
automations.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
- id: a_ps1_online
alias: Power Stripe 1 Online
trigger:
- payload: 1
platform: mqtt
topic: lwt/ps1
action:
- service: notify.bivabori
data:
message: 4 port power stripe-1 is online now. Please choose buttons for desired action.
data:
keyboard:
- '/switch01on, /switch01off'
- '/switch02on, /switch02off'
- '/switch03on, /switch03off'
- '/switch04on, /switch04off'
- id: a_switch01_on
alias: switch01_on
trigger:
- platform: event
event_type: telegram_command
event_data:
command: /switch01on
action:
- service: switch.turn_on
entity_id: switch.switch01
- service: notify.bivabori
data:
message: Socket Number 1 is Switched On
- id: a_switch02_on
alias: switch02_on
trigger:
- platform: event
event_type: telegram_command
event_data:
command: /switch02on
action:
- service: switch.turn_on
entity_id: switch.switch02
- service: notify.bivabori
data:
message: Socket Number 2 is Switched On
- id: a_switch03_on
alias: switch03_on
trigger:
- platform: event
event_type: telegram_command
event_data:
command: /switch03on
action:
- service: switch.turn_on
entity_id: switch.switch03
- service: notify.bivabori
data:
message: Socket Number 3 is Switched On
- id: a_switch04_on
alias: switch04_on
trigger:
- platform: event
event_type: telegram_command
event_data:
command: /switch04on
action:
- service: switch.turn_on
entity_id: switch.switch04
- service: notify.bivabori
data:
message: Socket Number 4 is Switched On
- id: a_switch01_off
alias: switch01_off
trigger:
- platform: event
event_type: telegram_command
event_data:
command: /switch01off
action:
- service: switch.turn_off
entity_id: switch.switch01
- service: notify.bivabori
data:
message: Socket Number 1 is Switched Off
- id: a_switch02_off
alias: switch02_off
trigger:
- platform: event
event_type: telegram_command
event_data:
command: /switch02off
action:
- service: switch.turn_off
entity_id: switch.switch02
- service: notify.bivabori
data:
message: Socket Number 2 is Switched Off
- id: a_switch03_off
alias: switch03_off
trigger:
- platform: event
event_type: telegram_command
event_data:
command: /switch03off
action:
- service: switch.turn_off
entity_id: switch.switch03
- service: notify.bivabori
data:
message: Socket Number 3 is Switched Off
- id: a_switch04_off
alias: switch04_off
trigger:
- platform: event
event_type: telegram_command
event_data:
command: /switch04off
action:
- service: switch.turn_off
entity_id: switch.switch04
- service: notify.bivabori
data:
message: Socket Number 4 is Switched Off
- id: a_ps1_offline
alias: Power Stripe 1 Offline
trigger:
- payload: 0
platform: mqtt
topic: lwt/ps1
action:
- service: notify.bivabori
data:
message: 4 port power stripe-1 is offline now.