-
Notifications
You must be signed in to change notification settings - Fork 1
/
person_card_lite.yaml
67 lines (67 loc) · 1.96 KB
/
person_card_lite.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
type: custom:stack-in-card
cards:
- type: custom:mushroom-person-card
entity: person.simone
icon_type: entity-picture
tap_action:
action: none
double_tap_action:
action: none
hold_action:
action: none
primary_info: name
name: Simone
secondary_info: last-updated
layout: horizontal
fill_container: true
- type: custom:mushroom-chips-card
card_mod:
style: |
ha-card {
--chip-font-size: 0.3em;
--chip-icon-size: 0.5em;
--chip-border-width: 0;
--chip-box-shadow: none;
--chip-background: none;
--chip-border: none;
--chip-spacing: none;
--chip-font-weight: bold;
}
chips:
- type: template
entity: sensor.simone_battery_level
icon: "{{states('sensor.simone_battery_icon')}}"
icon_color: "{{states('sensor.simone_battery_color')}}"
content: "{{states('sensor.simone_battery_level')}}%"
tap_action:
action: more-info
- type: template
entity: sensor.simone_internal_storage
icon: mdi:harddisk
content: "{{states('sensor.simone_internal_storage')}}%"
tap_action:
action: more-info
- type: template
entity: sensor.simone_network_type
icon: |-
{% if is_state('sensor.simone_network_type','wifi')%}
mdi:wifi
{% elif is_state('sensor.simone_network_type','cellular')%}
mdi:signal-5g
{% else %} mdi:network-strength-off
{% endif %}
icon_color: |-
{% if is_state('sensor.simone_network_type','wifi')%}
green
{% elif is_state('sensor.simone_network_type','cellular')%}
red
{% else %} grey
{% endif %}
content: ""
hold_action:
action: none
double_tap_action:
action: none
tap_action:
action: more-info
alignment: center