-
Notifications
You must be signed in to change notification settings - Fork 0
/
apa102-allsame.yml
114 lines (106 loc) · 1.63 KB
/
apa102-allsame.yml
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# target value
target:
measurement: gas
tags:
sensor: SCD30
value: CO2_ppm
busfreq: 20000
leds: 9
skip: 0
fixed: 1 # nr leds before strip
timeout_s: 10
brightness: 100
colors:
green: 0x00FF00
yellow: 0xFFAA00
orange: 0xFF3300
red: 0xFF0000
blue: 0x0000FF
max: 0x8E44AD # violet
thresholds:
-
- 0 # from this value on
- green
-
- 800
- yellow
-
- 1500
- orange
-
- 2500
- red
thresholds_single:
- 0 # from this value on
- 500
- 800
- 1150
- 1500
- 2000
- 2500
- 3000
maxvalue: 4000
ledcfg:
-
from: 0
leds:
- { c: green , bn: 1}
-
from: 500
leds:
- { c: green , bn: 1} #bn: 1 default
- { c: green}
- from: 800
leds:
- { c: yellow}
- { c: yellow}
- { c: yellow}
- from: 1150
leds:
- { c: yellow}
- { c: yellow}
- { c: yellow}
- { c: yellow}
- from: 1500
leds:
- { c: orange}
- { c: orange}
- { c: orange}
- { c: orange}
- { c: orange}
- from: 2000
leds:
- { c: orange}
- { c: orange}
- { c: orange}
- { c: orange}
- { c: orange}
- { c: orange}
- from: 2500
leds:
- { c: red}
- { c: red}
- { c: red}
- { c: red}
- { c: red}
- { c: red}
- { c: red}
- from: 3000
leds:
- { c: red}
- { c: red}
- { c: red}
- { c: red}
- { c: red}
- { c: red}
- { c: red}
- { c: red}
# should be
# 0-500 1g
# 500-800 2g
# 800- 1150 1y
# 1150 - 1500 2y
# 1500 - 2000 1orange
# 2000 - 2500 2orange
# 2500 - 3000 1 rot
# 3000 + 2 rot