-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathYAML
63 lines (50 loc) · 1.81 KB
/
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
type: horizontal-stack
cards:
- type: conditional
conditions:
- entity: sensor.u_s_air_pollution_level
state: good
card:
type: markdown
content: >-
<center><img src='/local/healthy-icon.svg' width='50%'><BR>
<font size = 4px> The Air Quality Today Is <font color = green> Good
</font></font>
The AQI is: <font size = 4px color = green> {{
states('sensor.u_s_air_quality_index') }} </font></center>
- type: conditional
conditions:
- entity: sensor.u_s_air_pollution_level
state: moderate
card:
type: markdown
content: >-
<center><img src='/local/moderate-icon.svg' width='50%'><BR>
<font size = 4px> The Air Quality Today Is <font color = yellow>
Moderate </font></font>
The AQI is: <font size = 4px color = green> {{
states('sensor.u_s_air_quality_index') }} </font></center>
- type: conditional
conditions:
- entity: sensor.u_s_air_pollution_level
state: unhealthy
card:
type: markdown
content: >-
<center><img src='/local/unhealthy-icon.svg' width='50%'><BR>
<font size = 4px> The Air Quality Today Is <font color = red> Moderate
</font></font>
The AQI is: <font size = 4px color = green> {{
states('sensor.u_s_air_quality_index') }} </font></center>
- type: conditional
conditions:
- entity: sensor.u_s_air_pollution_level
state: hazardous
card:
type: markdown
content: >-
<center><img src='/local/hazardous-icon.svg' width='50%'><BR>
<font size = 4px> The Air Quality Today Is <font color = red> HAZARDOUS
</font></font>
The AQI is: <font size = 4px color = green> {{
states('sensor.u_s_air_quality_index') }} </font></center>