-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHomeAssistantButtonsGrid.yaml
323 lines (323 loc) · 7.56 KB
/
HomeAssistantButtonsGrid.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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
square: false
type: grid
title: MP60 Control
cards:
- type: custom:button-card
show_name: true
show_icon: true
styles:
card:
- background-color: '#01143c'
- font-size: 15px
icon:
- width: 24px
- height: 30px
- color: white
state:
- font-size: 15px
name:
- color: white
custom_fields:
operation_status:
- font-size: 15px
- color: var(--operation-status-color)
icon: mdi:shaker
tap_action:
action: call-service
confirmation: You want to TOGGLE Feed Mode?
service: >
[[[ return states['switch.esp32_mc_feed_mode'].state === 'on' ?
'script.turn_off_esp32_mc_feed_mode' :
'script.turn_on_esp32_mc_feed_mode' ]]]
data: {}
entity: switch.esp32_mc_feed_mode
show_state: true
name: F Mode
card_mod:
style: |
ha-card {
background: none;
border: none;
}
state:
- value: 'on'
styles:
state:
- color: lime
- value: 'off'
styles:
state:
- color: red
animation:
- blink 2s linear infinite
- value: unavailable
styles:
state:
- color: red
animation:
- blink 2s linear infinite
custom_fields:
operation_status:
card:
type: custom:button-card
show_name: false
show_icon: false
entity: sensor.esp32_mc_fm_status
state:
- value: Success
styles:
card:
- background-color: green
- value: Failed
styles:
card:
- background-color: red
- value: unavailable
styles:
card:
- background-color: red
- type: custom:button-card
show_name: true
show_icon: true
styles:
card:
- background-color: '#01143c'
- font-size: 15px
icon:
- width: 24px
- height: 30px
- color: white
state:
- font-size: 15px
name:
- color: white
custom_fields:
operation_status:
- font-size: 15px
- color: var(--operation-status-color)
icon: mdi:information-outline
entity: sensor.esp32_mc_fm_status
show_state: true
name: FM Status
card_mod:
style: |
ha-card {
background: none;
border: none;
}
state:
- value: Success
styles:
state:
- color: lime
- value: Failed
styles:
state:
- color: red
animation:
- blink 2s linear infinite
- value: unavailable
styles:
state:
- color: red
animation:
- blink 2s linear infinite
custom_fields:
operation_status:
card:
type: custom:button-card
show_name: false
show_icon: false
entity: sensor.esp32_mc_fm_status
state:
- value: Success
styles:
card:
- background-color: green
- value: Failed
styles:
card:
- background-color: red
- value: unavailable
styles:
card:
- background-color: red
- show_name: true
show_icon: true
type: custom:button-card
styles:
card:
- background-color: '#01143c'
- font-size: 15px
icon:
- width: 24px
- height: 30px
state:
- font-size: 15px
- color: lime
icon: mdi:timer-outline
tap_action:
action: more-info
haptic: heavy
icon_tap_action:
action: more-info
haptic: heavy
entity: sensor.esp32_mc_fm_timer
show_state: true
name: Timer
card_mod:
style: |
ha-card {
background: none;
border: none;
}
state:
- value: unavailable
styles:
state:
- color: red
animation:
- blink 2s linear infinite
- type: custom:button-card
show_name: true
show_icon: true
styles:
card:
- background-color: '#01143c'
- font-size: 15px
icon:
- width: 24px
- height: 30px
- color: white
state:
- font-size: 15px
name:
- color: white
custom_fields:
operation_status:
- font-size: 15px
- color: var(--operation-status-color)
icon: mdi:devices
entity: sensor.esp32_mc_qty_devices
show_state: true
name: '# Devices'
card_mod:
style: |
ha-card {
background: none;
border: none;
}
state:
- value: 2
styles:
state:
- color: lime
- value: 1
styles:
state:
- color: orange
animation:
- blink 2s linear infinite
- value: 0
styles:
state:
- color: red
animation:
- blink 2s linear infinite
- value: unavailable
styles:
state:
- color: red
animation:
- blink 2s linear infinite
custom_fields:
operation_status:
card:
type: custom:button-card
show_name: false
show_icon: false
entity: sensor.esp32_mc_qty_devices
state:
- value: 2
styles:
card:
- background-color: green
- value: 1
styles:
card:
- background-color: orange
- value: 0
styles:
card:
- background-color: red
- value: unavailable
styles:
card:
- background-color: red
- type: custom:button-card
show_name: true
show_icon: true
styles:
card:
- background-color: '#01143c'
- font-size: 15px
icon:
- width: 24px
- height: 30px
- color: white
state:
- font-size: 15px
name:
- color: white
custom_fields:
operation_status:
- font-size: 15px
- color: var(--operation-status-color)
icon: mdi:wifi
entity: sensor.esp32_mc_uptime
show_state: true
name: WiFi
card_mod:
style: |
ha-card {
background: none;
border: none;
}
state:
- value: Online
styles:
state:
- color: lime
- value: Offline
styles:
state:
- color: red
animation:
- blink 2s linear infinite
- value: unavailable
styles:
state:
- color: red
animation:
- blink 2s linear infinite
custom_fields:
operation_status:
card:
type: custom:button-card
show_name: false
show_icon: false
entity: sensor.esp32_mc_uptime
state:
- value: Online
styles:
card:
- background-color: green
- value: Offline
styles:
card:
- background-color: red
- value: unavailable
styles:
card:
- background-color: red
columns: 5