-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathioniq 5 back view card alt.yaml
320 lines (320 loc) · 7.72 KB
/
ioniq 5 back view card alt.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
type: picture-elements
image: /local/ioniqa/ioniq5-back.png
elements:
- type: image
entity: lock.ioniq_5_door_lock
image: /local/ioniqa/ioniq5-back.png
style:
left: 50%
top: 50%
width: 100%
- type: image
entity: sensor.ioniq_battery_dots
tap_action:
action: none
image: /local/ioniqa/centre-squares.png
state_image:
"10": /local/ioniqa/10.png
"20": /local/ioniqa/20.png
"30": /local/ioniqa/30.png
"40": /local/ioniqa/40.png
"50": /local/ioniqa/50.png
"60": /local/ioniqa/60.png
"70": /local/ioniqa/70.png
"80": /local/ioniqa/80.png
"90": /local/ioniqa/90.png
"100": /local/ioniqa/100.png
style:
left: 50%
top: 50%
width: 100%
heigth: 100%
style: |
ha-card {
box-shadow: none;
}
- type: state-label
entity: sensor.ioniq_5_last_updated_at
style:
top: 51.5%
left: 50%
- type: image
entity: binary_sensor.ioniq_5_engine
tap_action:
action: none
image: /local/ioniqa/night-light.png
state_image:
"on": /local/ioniqa/night-light-on.png
style:
left: 50%
top: 50%
width: 100%
heigth: 100%
- type: image
entity: device_tracker.ioniq5_device_tracker
image: /local/ioniqa/backpanel.png
style:
left: 50%
top: 50%
width: 100%
heigth: 100%
- type: image
entity: binary_sensor.ioniq_5_ev_battery_charge
tap_action:
action: none
image: /local/ioniqa/brake-light.png
state_image:
"on": /local/ioniqa/brake-light-on.png
"off": /local/ioniqa/brake-light.png
style:
left: 50%
top: 50%
width: 100%
heigth: 100%
- type: image
entity: binary_sensor.ioniq_5_ev_battery_plug
state_image:
"off": /local/ioniqa/unplugged.png
"on": /local/ioniqa/pluggedin.png
style:
top: 31%
left: 88%
width: 11%
transform: initial
- type: custom:button-card
entity: lock.ioniq_5_door_lock
name: Doors
color: white
tap_action:
action: toggle
haptic: medium
hold_action:
action: more-info
haptic: medium
styles:
card:
- aspect-ratio: 1/1
- border-radius: 20px
- size: 00%
- box-shadow: none
- background: transparent
- border: none
icon:
- color: white
grid:
- grid-template-areas: "\"i\" \"n\""
- grid-template-columns: 1fr
name:
- color: white
- font-family: null
state:
- value: unlocked
icon: mdi:lock-open-alert
styles:
icon:
- color: red
- animation: blink 2s ease infinite
name:
- color: red
style:
top: 13%
left: 8%
width: 20%
- type: custom:button-card
entity: sensor.ioniq_5_car_battery_level
name: 12V
show_name: false
show_icon: false
show_state: true
hold_action:
action: default
styles:
card:
- aspect-ratio: 1/1
- border-radius: 20px
- size: 00%
- border: none
icon:
- size: 100%
name:
- font-family: poxel
- padding-right: 00%
state:
- font-family: null
- font-size: 110%
- color: |
[[[
if (entity.state <= 50) return 'red';
else if (entity.state <= 75) return 'orange';
else if (entity.state <= 100) return 'white';
else return 'red';
]]]
card_mod:
class: soft-ui
style: |
ha-card {
box-shadow: none;
background: transparent;
}
style:
top: 18%
left: 89%
transform: scale(1)
- type: custom:button-card
entity: sensor.ioniq_5_car_battery_level
name: 12V
show_name: false
show_icon: true
show_state: false
hold_action:
action: default
styles:
card:
- aspect-ratio: 1/1
- border-radius: 20px
- size: 00%
- border: none
icon:
- size: 100%
- color: |
[[[
if (entity.state <= 50) return 'red';
else if (entity.state <= 75) return 'orange';
else if (entity.state <= 100) return 'white';
else return 'red';
]]]
card_mod:
class: soft-ui
style: |
ha-card {
box-shadow: none;
background: transparent;
}
style:
top: 1%
left: 85%
transform: scale(1.4)
- type: custom:slider-entity-row
entity: number.ioniq_5_dc_charging_limit
name: DC Limit
style:
top: 88%
left: 18%
width: 59%
font-family: null
transform: scale(1,1)
- type: custom:slider-entity-row
entity: number.ioniq_5_ac_charging_limit
name: AC Limit
style:
top: 81%
left: 18%
width: 59%
font-family: null
transform: scale(1,1)
- type: custom:button-card
entity: sensor.ioniq_5_ev_battery_level
color: auto
size: 100%
name: EV Battery
show_name: true
show_state: true
show_icon: false
hold_action:
action: default
styles:
card:
- border-radius: 20px
- box-shadow: none
name:
- font-size: 100%
- padding-right: 0%
- padding-bottom: 0%
- color: white
state:
- font-size: 100%
- color: white
card_mod: null
style:
left: 34%
top: 74%
width: 20%
style: |
ha-card {
background-color: rgba(0, 0, 0, 0.1);
}
- type: custom:button-card
entity: sensor.ioniq_average_energy_consumption_mi_kwh
color: auto
size: 100%
name: m/kWh
show_name: true
show_state: true
show_icon: false
hold_action:
action: default
styles:
card:
- border-radius: 20px
- box-shadow: none
name:
- font-size: 100%
- padding-right: 0%
- padding-bottom: 0%
- color: white
state:
- font-size: 100%
- color: white
style:
left: 64%
top: 74%
width: 20%
- type: custom:button-card
entity: sensor.ioniq_5_ev_range
color: auto
size: 80%
name: GuessOmeter
show_name: false
show_state: true
show_icon: false
hold_action:
action: default
styles:
card:
- aspect-ratio: 4/1
- border-radius: 4px
- box-shadow: black
- background-color: " #FFFF00"
- border-color: black
- border: solid 3px black
name:
- font-size: 100%
- padding-right: 40%
- padding-bottom: 0%
- color: white
state:
- font-size: 130%
- color: black
- font-family: uknumberplate
- font-weight: 800
style:
left: 49%
top: 61.9%
width: 23%
- type: image
entity: sensor.ioniq_battery_percentage_state
state_image:
"0": /local/chargeport/state-0.gif
"1": /local/chargeport/state-1.gif
"2": /local/chargeport/state-2.gif
"3": /local/chargeport/state-3.gif
"4": /local/chargeport/ioniq-state-fully-charged.png
"6": /local/chargeport/state-6.png
"7": /local/chargeport/state-7.png
"8": /local/chargeport/state-8.png
"9": /local/chargeport/state-9.png
"10": /local/chargeport/state-10.png
style:
left: 56%
top: 50%
width: 80%