-
Notifications
You must be signed in to change notification settings - Fork 24
/
lovelace.yaml
116 lines (116 loc) · 3.72 KB
/
lovelace.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
cards:
- type: horizontal-stack
cards:
- type: button
tap_action:
action: toggle
entity: switch.phev_cool
- type: button
tap_action:
action: toggle
entity: switch.phev_heat
- type: button
tap_action:
action: toggle
entity: switch.phev_windscreen
- type: horizontal-stack
cards:
- type: picture-elements
elements:
- type: state-icon
entity: light.phev_park_lights
style:
top: 95%
left: 30%
- type: state-icon
entity: light.phev_head_lights
style:
top: 5%
left: 50%
- type: state-icon
entity: binary_sensor.phev_boot
style:
top: 90%
left: 50%
- type: state-icon
entity: binary_sensor.phev_bonnet
style:
top: 17%
left: 50%
- type: state-icon
entity: binary_sensor.phev_front_left_door
icon: mdi:car-door
style:
top: 50%
left: 7%
- type: state-icon
entity: binary_sensor.phev_front_right_door
icon: mdi:car-door
style:
top: 50%
left: 90%
- type: state-icon
entity: binary_sensor.phev_rear_left_door
icon: mdi:car-door
style:
top: 65%
left: 7%
- type: state-icon
entity: binary_sensor.phev_rear_right_door
icon: mdi:car-door
style:
top: 65%
left: 90%
- type: state-icon
entity: binary_sensor.phev_charger_connected
style:
top: 80%
left: 90%
- type: state-icon
entity: binary_sensor.phev_locked
style:
top: 60%
left: 50%
image: https://ha.cactii.net/local/car-top-1.png
- type: gauge
tap_action:
action: toggle
entity: sensor.phev_battery
unit: '%'
- type: custom:button-card
entity: binary_sensor.phev_charger_connected
name: Charger
aspect_ratio: 1/1.7
tap_action:
action: more-info
entity: switch.phev_disable_charge_timer
styles:
grid:
- position: relative
custom_fields:
notification:
- background-color: |
[[[
if (states['binary_sensor.phev_charging'].state == "on")
return "green";
return "red";
]]]
- border-radius: 50%
- position: absolute
- left: 60%
- top: 10%
- height: 40px
- width: 40px
- font-size: 14px
- line-height: 40px
custom_fields:
notification: >
[[[ return
Math.floor(states['sensor.phev_charge_remaining'].state) +'m']]]
state:
- value: 'on'
icon: mdi:power-plug
label: Plugged In
- value: 'off'
icon: mdi:power-plug-off
label: Unplugged