mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-07 17:34:42 +00:00
COVID-19: use mini graphs
This commit is contained in:
@@ -20,23 +20,46 @@ covid_19:
|
|||||||
name: Recovered
|
name: Recovered
|
||||||
icon: "mdi:emoticon-cool-outline"
|
icon: "mdi:emoticon-cool-outline"
|
||||||
|
|
||||||
- type: "custom:mini-graph-card"
|
- type: horizontal-stack
|
||||||
animate: true
|
cards:
|
||||||
icon: mdi:emoticon-confused
|
- type: "custom:mini-graph-card"
|
||||||
line_width: 3
|
name: Current
|
||||||
line_color:
|
animate: true
|
||||||
- var(--paper-orange-400)
|
hours_to_show: 168
|
||||||
- var(--paper-green-400)
|
points_per_hour: 0.04
|
||||||
- var(--accent-color)
|
font_size: 75
|
||||||
hours_to_show: 168
|
icon: "mdi:emoticon-sad-outline"
|
||||||
points_per_hour: 0.04
|
line_color: var(--accent-color)
|
||||||
entities:
|
line_width: 8
|
||||||
- entity: sensor.[[location]]_coronavirus_deaths
|
show:
|
||||||
index: 0
|
state: false
|
||||||
|
entities:
|
||||||
|
- sensor.[[location]]_coronavirus_current
|
||||||
|
|
||||||
|
- type: "custom:mini-graph-card"
|
||||||
name: Deaths
|
name: Deaths
|
||||||
- entity: sensor.[[location]]_coronavirus_recovered
|
animate: true
|
||||||
index: 1
|
hours_to_show: 168
|
||||||
|
points_per_hour: 0.04
|
||||||
|
font_size: 75
|
||||||
|
icon: "mdi:emoticon-cry-outline"
|
||||||
|
line_color: "#e74c3c"
|
||||||
|
line_width: 8
|
||||||
|
show:
|
||||||
|
state: false
|
||||||
|
entities:
|
||||||
|
- sensor.[[location]]_coronavirus_deaths
|
||||||
|
|
||||||
|
- type: "custom:mini-graph-card"
|
||||||
name: Recovered
|
name: Recovered
|
||||||
- entity: sensor.[[location]]_coronavirus_current
|
animate: true
|
||||||
index: 2
|
hours_to_show: 168
|
||||||
name: "Current"
|
points_per_hour: 0.04
|
||||||
|
font_size: 75
|
||||||
|
icon: "mdi:emoticon-cool-outline"
|
||||||
|
line_color: var(--paper-green-400)
|
||||||
|
line_width: 8
|
||||||
|
show:
|
||||||
|
state: false
|
||||||
|
entities:
|
||||||
|
- sensor.[[location]]_coronavirus_recovered
|
||||||
|
|||||||
Reference in New Issue
Block a user