mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-06 18:08:45 +00:00
Add network card
This commit is contained in:
@@ -40,6 +40,12 @@ views:
|
|||||||
|
|
||||||
- binary_sensor.motion_1_ias_zone
|
- binary_sensor.motion_1_ias_zone
|
||||||
- binary_sensor.motion_2_ias_zone
|
- binary_sensor.motion_2_ias_zone
|
||||||
|
|
||||||
|
- input_boolean.floorplan_night_mode
|
||||||
|
- input_boolean.floorplan_show_all
|
||||||
|
- input_boolean.guest_mode
|
||||||
|
- input_boolean.speech_notifications
|
||||||
|
- input_boolean.georgi_home
|
||||||
card:
|
card:
|
||||||
type: picture-elements
|
type: picture-elements
|
||||||
image: /local/images/floorplan/floorplan_night_transparent.png
|
image: /local/images/floorplan/floorplan_night_transparent.png
|
||||||
|
|||||||
@@ -0,0 +1,59 @@
|
|||||||
|
network_card:
|
||||||
|
default:
|
||||||
|
- title:
|
||||||
|
- icon:
|
||||||
|
card:
|
||||||
|
type: vertical-stack
|
||||||
|
cards:
|
||||||
|
- type: entities
|
||||||
|
title: "[[title]]"
|
||||||
|
icon: "[[icon]]"
|
||||||
|
entities:
|
||||||
|
- type: custom:dummy-entity-row
|
||||||
|
entity: sensor.fast_com_download
|
||||||
|
name: Open admin UI
|
||||||
|
icon: mdi:firefox
|
||||||
|
tap_action:
|
||||||
|
action: url
|
||||||
|
url_path: http://router.lan
|
||||||
|
- type: "custom:mini-graph-card"
|
||||||
|
animate: true
|
||||||
|
points_per_hour: 1
|
||||||
|
hours_to_show: 72
|
||||||
|
show:
|
||||||
|
graph: bar
|
||||||
|
average: true
|
||||||
|
extrema: true
|
||||||
|
entities:
|
||||||
|
- entity: sensor.fast_com_download
|
||||||
|
|
||||||
|
- type: "custom:mini-graph-card"
|
||||||
|
animate: true
|
||||||
|
points_per_hour: 1
|
||||||
|
hours_to_show: 72
|
||||||
|
show:
|
||||||
|
graph: bar
|
||||||
|
average: true
|
||||||
|
extrema: true
|
||||||
|
entities:
|
||||||
|
- entity: sensor.speedtest_download
|
||||||
|
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: custom:mini-graph-card
|
||||||
|
points_per_hour: 0.3
|
||||||
|
hours_to_show: 72
|
||||||
|
font_size: 75
|
||||||
|
line_color: var(--accent-color)
|
||||||
|
line_width: 6
|
||||||
|
entities:
|
||||||
|
- sensor.speedtest_upload
|
||||||
|
|
||||||
|
- type: custom:mini-graph-card
|
||||||
|
font_size: 75
|
||||||
|
points_per_hour: 0.3
|
||||||
|
hours_to_show: 72
|
||||||
|
line_color: var(--accent-color)
|
||||||
|
line_width: 6
|
||||||
|
entities:
|
||||||
|
- sensor.speedtest_ping
|
||||||
@@ -24,6 +24,17 @@
|
|||||||
- tap_action:
|
- tap_action:
|
||||||
action: more-info
|
action: more-info
|
||||||
|
|
||||||
|
# Router
|
||||||
|
- type: custom:decluttering-card
|
||||||
|
template: floorplan_state_with_icon
|
||||||
|
variables:
|
||||||
|
- entity: sensor.fast_com_download
|
||||||
|
- top: 54%
|
||||||
|
- left: 54%
|
||||||
|
- icon: mdi:router-wireless
|
||||||
|
- tap_action:
|
||||||
|
action: more-info
|
||||||
|
|
||||||
# Shield + TV
|
# Shield + TV
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: floorplan_state_with_icon
|
template: floorplan_state_with_icon
|
||||||
|
|||||||
@@ -96,46 +96,8 @@ cards:
|
|||||||
entities:
|
entities:
|
||||||
- sensor.pi_hole_seen_clients
|
- sensor.pi_hole_seen_clients
|
||||||
|
|
||||||
- type: vertical-stack
|
- type: custom:decluttering-card
|
||||||
cards:
|
template: network_card
|
||||||
- type: "custom:mini-graph-card"
|
variables:
|
||||||
animate: true
|
- title: Network
|
||||||
points_per_hour: 1
|
- icon: mdi:router-wireless
|
||||||
hours_to_show: 72
|
|
||||||
show:
|
|
||||||
graph: bar
|
|
||||||
average: true
|
|
||||||
extrema: true
|
|
||||||
entities:
|
|
||||||
- entity: sensor.fast_com_download
|
|
||||||
|
|
||||||
- type: "custom:mini-graph-card"
|
|
||||||
animate: true
|
|
||||||
points_per_hour: 1
|
|
||||||
hours_to_show: 72
|
|
||||||
show:
|
|
||||||
graph: bar
|
|
||||||
average: true
|
|
||||||
extrema: true
|
|
||||||
entities:
|
|
||||||
- entity: sensor.speedtest_download
|
|
||||||
|
|
||||||
- type: horizontal-stack
|
|
||||||
cards:
|
|
||||||
- type: custom:mini-graph-card
|
|
||||||
points_per_hour: 0.3
|
|
||||||
hours_to_show: 72
|
|
||||||
font_size: 75
|
|
||||||
line_color: var(--accent-color)
|
|
||||||
line_width: 6
|
|
||||||
entities:
|
|
||||||
- sensor.speedtest_upload
|
|
||||||
|
|
||||||
- type: custom:mini-graph-card
|
|
||||||
font_size: 75
|
|
||||||
points_per_hour: 0.3
|
|
||||||
hours_to_show: 72
|
|
||||||
line_color: var(--accent-color)
|
|
||||||
line_width: 6
|
|
||||||
entities:
|
|
||||||
- sensor.speedtest_ping
|
|
||||||
|
|||||||
@@ -8,6 +8,9 @@ broader_popup_style: &broad_popup_style
|
|||||||
width: 40%
|
width: 40%
|
||||||
min-width: 500px
|
min-width: 500px
|
||||||
|
|
||||||
|
no_margin: &no_margin
|
||||||
|
margin-bottom: 0
|
||||||
|
|
||||||
binary_sensor.house_mode:
|
binary_sensor.house_mode:
|
||||||
title: House mode
|
title: House mode
|
||||||
style: *popup_style
|
style: *popup_style
|
||||||
@@ -170,8 +173,8 @@ sensor.synology_dsm_type_volume_1:
|
|||||||
title: Platinum
|
title: Platinum
|
||||||
style:
|
style:
|
||||||
<<: *popup_style
|
<<: *popup_style
|
||||||
|
<<: *no_margin
|
||||||
height: 80%
|
height: 80%
|
||||||
margin-bottom: 0;
|
|
||||||
card:
|
card:
|
||||||
type: custom:decluttering-card
|
type: custom:decluttering-card
|
||||||
template: platinum_card
|
template: platinum_card
|
||||||
@@ -184,3 +187,12 @@ switch.titanium_power:
|
|||||||
card:
|
card:
|
||||||
type: custom:decluttering-card
|
type: custom:decluttering-card
|
||||||
template: titanium_card
|
template: titanium_card
|
||||||
|
|
||||||
|
sensor.fast_com_download:
|
||||||
|
title: Network Speed
|
||||||
|
style:
|
||||||
|
<<: *popup_style
|
||||||
|
<<: *broad_popup_style
|
||||||
|
card:
|
||||||
|
type: custom:decluttering-card
|
||||||
|
template: network_card
|
||||||
|
|||||||
Reference in New Issue
Block a user