-
Notifications
You must be signed in to change notification settings - Fork 0
/
lovelace_views.yaml
157 lines (146 loc) · 4.74 KB
/
lovelace_views.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
- name: main
position: footer
chip:
type: action
icon: mdi:home
card_mod:
class: chipbadge
style:
.: |
ha-card:after { {% if states('zone.home')|float(0) > 0 %}content: "{{ states('zone.home') }}";{% endif %} }
- name: security
position: footer
chip:
type: alarm-control-panel
entity: alarm_control_panel.alarm
content_info: none
- name: lights
position: footer
chip:
type: light
entity: light.alles
content_info: none
use_light_color: true
hold_action:
action: more-info
card_mod:
class: chipbadge
style:
.: |
ha-card:after { {% if (expand(config.entity) | selectattr('state','eq','on') | list | count) > 0 %}content: "{{ expand(config.entity) | selectattr('state','eq','on') | list | count }}";{% endif %} }
- name: devices
position: footer
chip:
type: template
icon: mdi:wrench-clock
icon_color: blue
- name: media
position: footer
chip:
type: template
entity: media_player.global
content_info: none
icon_color: indigo
icon: "{% set media_type = state_attr(config.entity, 'media_content_type') %}{% if media_type == 'tvshow' %}mdi:television-classic{% elif media_type == 'movie' %}mdi:movie-roll{% elif media_type == 'music' %}mdi:music{% elif media_type == 'playlist' %}mdi:music{% else %}mdi:play{% endif %}"
hold_action:
action: more-info
card_mod:
class: chipbadge
style:
.: |
ha-card:after {
{% if (expand('media_player.alles') | selectattr('state','ne','off') | list | count) > 0 %}content: "{{ expand('media_player.alles') | selectattr('state','ne','off') | list | count }}";{% endif %}
}
- name: location
position: footer
chip:
type: template
icon: mdi:heart
icon_color: red
hold_action:
action: assist
start_listening: true
card_mod:
class: chipbadge
style:
.: |
ha-card:after { {% if (states.persistent_notification | selectattr('state','eq','notifying') | list | count) > 0 %}content: "{{ states.persistent_notification | selectattr('state','eq','notifying') | list | count }}";{% endif %} }
- name: finance
position: header
chip:
type: template
entity: sensor.uitgegeven_vandaag
card_mod:
class: chipbadge
style:
.: |
ha-card:after { content: "{{ states('sensor.uitgegeven_vandaag')|float(0)|int }}"; }
icon_color: "{% if states('sensor.uitgegeven_vandaag')|float(0) >= states('sensor.te_besteden_per_dag')|float(0) %}red{% else %}green{% endif %}"
icon: "{% if states('sensor.te_besteden_per_dag')|float(0) < 70 %}mdi:currency-eur-off{% else %}mdi:currency-eur{% endif %}"
- name: winston
position: header
chip:
type: entity
entity: vacuum.winston
icon_color: red
icon: mdi:robot-vacuum
content_info: none
card_mod:
class: chipbadge
style:
.: |
ha-card:after { {% if states('vacuum.winston') != 'docked' %}content: "{{ states('sensor.winston_current_room') }}";{% endif %} }
- name: plants
position: header
chip:
type: action
icon_color: light-green
icon: mdi:sprout
card_mod:
class: chipbadge
style:
.: |
ha-card:after {
{% if (states.plant | selectattr('state','eq','problem') | list | count) > 0 %}
content: "{{ states.plant | selectattr('state','eq','problem') | list | count }}";
{% endif %}
}
- name: climate
position: header
chip:
type: template
#icon_color: "{% if state_attr('climate.opentherm_livingroom_central_heating', 'hvac_action') == 'heating' %}red{% else %}grey{% endif %}"
#icon: "{% if state_attr('climate.opentherm_livingroom_central_heating', 'hvac_action') == 'off' %}mdi:thermometer{% else %}mdi:thermostat{% endif %}"
content: |
{% set temp = states('sensor.target_for_cv') | float(none) %}
{% if temp is not none %}
{{ temp | round(1) }}
{% endif %}
card_mod:
class: chipbadge
style:
.: |
{% set temp = states('sensor.occupied_rooms_average_temperature') | float(none) %}
{% if temp is not none %}
ha-card:after { content: "{{ temp | round(1) }}"; }
{% endif %}
- name: weather
position: header
chip:
type: weather
entity: weather.buienradar
card_mod:
class: chipbadge
style:
.: |
{% set temp = states('sensor.area_temperature_degc_exterior') | float(none) %}
{% if temp is not none %}
ha-card:after { content: "{{ temp | round(1) }}"; }
{% endif %}
- name: time
position: header
chip:
type: template
content: |
{% from 'easy_time.jinja' import clock %}
{{ clock('24-hr') }}