mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-06 18:08:45 +00:00
Tweak main dashboard
This commit is contained in:
@@ -73,7 +73,6 @@
|
|||||||
- top: 5px
|
- top: 5px
|
||||||
- right: 5px
|
- right: 5px
|
||||||
- font-size: 12px
|
- font-size: 12px
|
||||||
|
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: small
|
template: small
|
||||||
name: New filter
|
name: New filter
|
||||||
|
|||||||
@@ -120,28 +120,44 @@
|
|||||||
name: Pi-Hole
|
name: Pi-Hole
|
||||||
icon: mdi:pi-hole
|
icon: mdi:pi-hole
|
||||||
|
|
||||||
- type: vertical-stack
|
|
||||||
title: Presence
|
|
||||||
cards:
|
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
|
title: Brita
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: small
|
template: small
|
||||||
entity: binary_sensor.georgi_home
|
name: Pour water
|
||||||
|
entity: script.brita_pour_water
|
||||||
|
custom_fields:
|
||||||
|
remaining_liters: "[[[ return states['input_number.brita_remaining_liters'].state ]]]"
|
||||||
tap_action:
|
tap_action:
|
||||||
action: call-service
|
action: toggle
|
||||||
service: input_boolean.toggle
|
styles:
|
||||||
service_data:
|
card:
|
||||||
entity_id: input_boolean.georgi_home
|
- background: >
|
||||||
|
[[[
|
||||||
|
var remaining = states['input_number.brita_remaining_liters'].state;
|
||||||
|
var percent = 100 - (remaining / 150 * 100);
|
||||||
|
return 'linear-gradient(180deg, var(--paper-card-background-color) 0%, var(--paper-card-background-color)' + percent + '%, var(--primary-color) ' + percent + '%)'
|
||||||
|
]]]
|
||||||
|
- color: white
|
||||||
|
icon:
|
||||||
|
- color: white
|
||||||
|
custom_fields:
|
||||||
|
remaining_liters:
|
||||||
|
- position: absolute
|
||||||
|
- top: 5px
|
||||||
|
- right: 5px
|
||||||
|
- font-size: 12px
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: small
|
template: small
|
||||||
entity: device_tracker.mikrotik_carbon
|
name: New filter
|
||||||
name: Wifi
|
entity: script.brita_new_filter
|
||||||
|
tap_action:
|
||||||
|
action: toggle
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: small
|
template: small
|
||||||
entity: device_tracker.carbon
|
name: Filter
|
||||||
name: GPS
|
entity: binary_sensor.brita_should_change_filter
|
||||||
|
|
||||||
|
|
||||||
# Column 2
|
# Column 2
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
@@ -226,6 +242,29 @@
|
|||||||
entities:
|
entities:
|
||||||
- sensor.bedroom_weather_temperature
|
- sensor.bedroom_weather_temperature
|
||||||
|
|
||||||
|
- type: vertical-stack
|
||||||
|
title: Presence
|
||||||
|
cards:
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: custom:button-card
|
||||||
|
template: small
|
||||||
|
entity: binary_sensor.georgi_home
|
||||||
|
tap_action:
|
||||||
|
action: call-service
|
||||||
|
service: input_boolean.toggle
|
||||||
|
service_data:
|
||||||
|
entity_id: input_boolean.georgi_home
|
||||||
|
- type: custom:button-card
|
||||||
|
template: small
|
||||||
|
entity: device_tracker.mikrotik_carbon
|
||||||
|
name: Wifi
|
||||||
|
- type: custom:button-card
|
||||||
|
template: small
|
||||||
|
entity: device_tracker.carbon
|
||||||
|
name: GPS
|
||||||
|
|
||||||
|
|
||||||
# Column 3
|
# Column 3
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
|
|||||||
Reference in New Issue
Block a user