mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-07 17:34:42 +00:00
Add quarantine metrics
This commit is contained in:
@@ -131,6 +131,19 @@ cards:
|
|||||||
- entity: input_boolean.alarm_enabled
|
- entity: input_boolean.alarm_enabled
|
||||||
name: Alarm
|
name: Alarm
|
||||||
- input_datetime.alarm_time
|
- input_datetime.alarm_time
|
||||||
|
- type: entities
|
||||||
|
title: Quarantine
|
||||||
|
icon: mdi:biohazard
|
||||||
|
entities:
|
||||||
|
- type: custom:decluttering-card
|
||||||
|
template: percentage_card
|
||||||
|
variables:
|
||||||
|
- name: Quarantined percent
|
||||||
|
- entity: sensor.quarantined_percent
|
||||||
|
- icon: mdi:percent
|
||||||
|
- orange: 100
|
||||||
|
- red: 100
|
||||||
|
- sensor.quarantine_times_left
|
||||||
- type: "custom:weather-card"
|
- type: "custom:weather-card"
|
||||||
current: true
|
current: true
|
||||||
details: true
|
details: true
|
||||||
|
|||||||
@@ -51,6 +51,26 @@ binary_sensor:
|
|||||||
{% else %} mdi:account-off-outline
|
{% else %} mdi:account-off-outline
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: history_stats
|
||||||
|
name: Quarantined percent
|
||||||
|
entity_id: input_boolean.georgi_home
|
||||||
|
state: "on"
|
||||||
|
type: ratio
|
||||||
|
duration:
|
||||||
|
days: 14
|
||||||
|
end: "{{ now() }}"
|
||||||
|
|
||||||
|
- platform: history_stats
|
||||||
|
name: Quarantine times left
|
||||||
|
entity_id: input_boolean.georgi_home
|
||||||
|
state: "on"
|
||||||
|
type: count
|
||||||
|
duration:
|
||||||
|
days: 14
|
||||||
|
end: "{{ now() }}"
|
||||||
|
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
# When my state changes to "home", wait for 15 minutes for the door to be opened, and then mark me as home
|
# When my state changes to "home", wait for 15 minutes for the door to be opened, and then mark me as home
|
||||||
- alias: Presence · Arrival detection
|
- alias: Presence · Arrival detection
|
||||||
|
|||||||
Reference in New Issue
Block a user