-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathaqi.yaml
36 lines (35 loc) · 849 Bytes
/
aqi.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
# Configuration for showing AQI status with the RGB LED
script:
- id: show_bad
then:
- if:
condition:
binary_sensor.is_on: co2_calibrated
then:
- light.turn_on:
id: led_rgb
red: 100%
green: 0%
blue: 0%
- id: show_acceptable
then:
- if:
condition:
binary_sensor.is_on: co2_calibrated
then:
- light.turn_on:
id: led_rgb
red: 100%
green: 100%
blue: 0%
- id: show_good
then:
- if:
condition:
binary_sensor.is_on: co2_calibrated
then:
- light.turn_on:
id: led_rgb
red: 0%
green: 100%
blue: 0%