-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfpl-projectedbill.yaml
35 lines (35 loc) · 1009 Bytes
/
fpl-projectedbill.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
cards:
- card:
entities:
- entity: sensor.fpl_4362074298_as_of_days
entity_row: true
max: ${ vars[0] }
name: Days
positions:
icon: 'off'
indicator: 'off'
title: inside
value: inside
severity:
- color: Green
from: 0
to: ${ vars[0] * 0.5 }
- color: Yellow
from: ${ vars[0] * 0.5 + 1}
to: ${ vars[0] * 0.80 }
- color: Red
from: ${ vars[0] * 0.80 + 1}
to: ${ vars[0] }
style: 'ha-card{border-radius: 0;}'
type: custom:bar-card
title: FPL
type: entities
entities:
- sensor.fpl_4362074298_as_of_days
type: custom:config-template-card
variables:
- states['sensor.fpl_4362074298_service_days'].state
- entity: sensor.fpl_4362074298_projected_bill
name: Projected Bill
type: entity
type: custom:vertical-stack-in-card