-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathui-system-devices.yaml
103 lines (103 loc) · 3.57 KB
/
ui-system-devices.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
views:
- path: system-devices
cards:
- title: System
type: entities
show_header_toggle: false
entities:
- entity: sensor.current_version
name: Home Assistant Version
type: custom:multiple-entity-row
show_state: false
entities:
- entity: sensor.current_version
name: Current
- entity: sensor.latest_version
name: Available
tap_action:
action: url
url_path: https://www.home-assistant.io/latest-release-notes/
- entity: sensor.load_1m
name: System Load
type: custom:multiple-entity-row
show_state: false
entities:
- entity: sensor.load_1m
name: 1 Minute
- entity: sensor.load_5m
name: 5 Minute
- entity: sensor.load_15m
name: 15 Minute
- entity: sensor.memory_use_percent
name: Memory/Disk Use
type: custom:multiple-entity-row
show_state: false
entities:
- entity: sensor.memory_use_percent
name: Memory
- entity: sensor.disk_use_percent
name: Disk
- entity: sensor.speedtest_download
name: Internet
type: custom:multiple-entity-row
show_state: false
entities:
- entity: sensor.speedtest_ping
name: Ping
- entity: sensor.speedtest_upload
name: Upload
- entity: sensor.speedtest_download
name: Download
- entity: sensor.ssl_certificate_expiry
type: custom:multiple-entity-row
unit: Days
- sensor.hacs
- title: Disconnected Devices
type: custom:auto-entities
show_empty: false
card:
title: Disconnected Devices
type: entities
sort:
method: name
filter:
include:
- attributes:
device_class: connectivity
options:
type: custom:card-templater
entity_row:
secondary_info: last-changed
name_template: >-
{{ state_attr('this.entity_id', 'friendly_name') | replace(' Status', '') }}
exclude:
- state: 'on'
- entity_id: binary_sensor.chris_phone_connected_to_g35
- entity_id: binary_sensor.chris_phone_connected_to_suburban
- title: Devices
type: custom:auto-entities
card:
title: Devices
type: entities
sort:
method: name
filter:
template: |
{% for sensor in states.binary_sensor %}
{% if sensor.attributes.device_class == 'connectivity' %}
{% set wifi = sensor.entity_id | replace('binary_sensor.', 'sensor.') | replace('_status', '_wifi_signal') -%}
{% if states(wifi) == 'unknown' %}
{{ sensor.entity_id }}
{% endif %}
{% endif %}
{% endfor %}
include:
- entity_id: "*_wifi_signal"
options:
type: custom:card-templater
entity_row:
name_template: >-
{{ state_attr('this.entity_id', 'friendly_name') | replace(' WiFi Signal', '') | replace(' Status', '') }}
exclude:
- state: 'off'
- state: 'unavailable'