-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscript for popup
224 lines (224 loc) · 8.01 KB
/
script for popup
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
alias: Tap Action AC Infinty App
sequence:
- service: browser_mod.popup
data_template:
card_mod:
style:
ha-dialog$: |
div.mdc-dialog div.mdc-dialog__scrim {
backdrop-filter: blur(5px);
}
title: AC Infinity
size: normal
browser_id: "{{ browser_id }}"
content:
type: custom:vertical-stack-in-card
cards:
- type: vertical-stack
cards:
- type: custom:button-card
name: AC Infinity - Tent {{ tent_00X }}
styles:
card:
- justify-self: center
- font-size: 25px
card_mod:
style: |
ha-card {
margin-bottom: -3% !important;
}
- type: custom:mod-card
card_mod:
style: |
:host {
--grid-card-gap: 35px;
}
ha-card {
padding: 0px 50px 0px 50px !important;
border-radius: 10px;
border: none;
}
card:
type: grid
title: null
square: false
columns: 3
cards:
- type: custom:flex-horseshoe-card
card_mod:
style: |
ha-card {
border: none;
}
entities:
- entity: sensor.tent_{{tent_00X}}_temperature
decimals: 1
name: Temperature
show:
scale_tickmarks: true
horseshoe_style: fixed
layout:
states:
- id: 0
entity_index: 0
xpos: 50
ypos: 57
styles:
- font-size: 4em;
- opacity: 1.0;
names:
- id: 0
entity_index: 0
xpos: 50
ypos: 95
styles:
- font-size: 1.7em;
horseshoe_scale:
ticksize: 10
min: 0
max: 100
width: 6
color: var(--disabled-text-color)
horseshoe_state:
color: red
color_stops:
"68": yellow
"69": black
"70": yellow
- type: custom:flex-horseshoe-card
card_mod:
style: |
ha-card {
border: none;
}
entities:
- entity: sensor.tent_{{tent_00X}}_humidity
decimals: 1
name: Humidity
show:
scale_tickmarks: true
horseshoe_style: fixed
layout:
states:
- id: 0
entity_index: 0
xpos: 50
ypos: 57
styles:
- font-size: 4em;
- opacity: 1.0;
names:
- id: 0
entity_index: 0
xpos: 50
ypos: 95
styles:
- font-size: 1.7em;
horseshoe_scale:
ticksize: 10
min: 0
max: 100
width: 6
color: var(--disabled-text-color)
horseshoe_state:
color: blue
color_stops:
"68": yellow
"69": black
"70": yellow
- type: custom:flex-horseshoe-card
card_mod:
style: |
ha-card {
border: none;
}
entities:
- entity: sensor.tent_{{tent_00X}}_vpd
decimals: 2
name: VPD
show:
scale_tickmarks: true
horseshoe_style: fixed
layout:
states:
- id: 0
entity_index: 0
xpos: 50
ypos: 57
styles:
- font-size: 4em;
- opacity: 1.0;
names:
- id: 0
entity_index: 0
xpos: 50
ypos: 95
styles:
- font-size: 1.7em;
horseshoe_scale:
ticksize: 0.1
min: 0
max: 3
width: 6
color: var(--disabled-text-color)
horseshoe_state:
color: green
color_stops:
"68": yellow
"69": black
"70": yellow
- type: custom:gap-card
height: 10
- type: custom:tabbed-card
option: null
attributes: null
tabs:
- card:
type: custom:stack-in-card
mode: vertical
cards:
- type: custom:decluttering-card
variables:
- dec_var_tent: "{{tent_00X}}"
- dec_var_port: "001"
template:
- ac_infinity_app_001_declutter
attributes:
label: Port 01
- card:
type: custom:stack-in-card
mode: vertical
cards:
- type: custom:decluttering-card
variables:
- dec_var_tent: "{{tent_00X}}"
- dec_var_port: "002"
template:
- ac_infinity_app_001_declutter
attributes:
label: Port 02
- card:
type: custom:stack-in-card
mode: vertical
cards:
- type: custom:decluttering-card
variables:
- dec_var_tent: "{{tent_00X}}"
- dec_var_port: "003"
template:
- ac_infinity_app_001_declutter
attributes:
label: Port 03
- card:
type: custom:stack-in-card
mode: vertical
cards:
- type: custom:decluttering-card
variables:
- dec_var_tent: "{{tent_00X}}"
- dec_var_port: "004"
template:
- ac_infinity_app_001_declutter
attributes:
label: Port 04
icon: mdi:gesture-tap