-
Notifications
You must be signed in to change notification settings - Fork 1
/
dashboard.yaml
94 lines (94 loc) · 3.36 KB
/
dashboard.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
views:
- title: Home
cards:
- type: vertical-stack
cards:
- type: vertical-stack
title: Nobreak
cards:
- type: conditional
conditions:
- condition: state
entity: sensor.tsshara_status_data
state_not: unavailable
card:
type: grid
square: false
columns: 3
cards:
- type: custom:button-card
entity: sensor.tsshara_status_data
name: Status
icon: |
[[[
if (entity.state === 'OL') return 'mdi:power-plug';
if (entity.state === 'OB') return 'mdi:car-battery';
return 'mdi:help-circle-outline';
]]]
styles:
name:
- font-size: 15px
card:
- height: 136px
- padding-bottom: 23px
icon:
- color: |
[[[
return entity.state === 'OL' ? 'var(--success-color)' : entity.state === 'OB' ? 'red' : '';
]]]
- width: 100%
- margin-top: 5%
- type: gauge
name: Battery %
entity: sensor.tsshara_battery_charge
min: 0
severity:
green: 100
yellow: 50
red: 0
max: 100
- type: gauge
name: Load
entity: sensor.tsshara_load
min: 0
max: 100
severity:
green: 0
yellow: 50
red: 80
- type: gauge
name: Temp
entity: sensor.tsshara_ups_temperature
min: 0
max: 100
severity:
green: 0
yellow: 30
red: 50
- type: gauge
name: Input Voltage
entity: sensor.tsshara_input_voltage
min: 0
max: 240
severity:
green: 0
yellow: 230
red: 240
- type: gauge
name: Output Voltage
entity: sensor.tsshara_output_voltage
min: 0
max: 240
severity:
green: 0
yellow: 230
red: 240
unit: V
- type: conditional
conditions:
- condition: state
entity: sensor.tsshara_status_data
state: unavailable
card:
type: markdown
content: Nobreak is not available