-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapa102-flex.yml
135 lines (124 loc) · 1.98 KB
/
apa102-flex.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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# 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: green}
- { c: green}
- { c: yellow}
- from: 1150
leds:
- { c: green}
- { c: green}
- { c: yellow}
- { c: yellow}
- from: 1500
leds:
- { c: green}
- { c: green}
- { c: yellow}
- { c: yellow}
- { c: orange}
- from: 2000
leds:
- { c: green}
- { c: green}
- { c: yellow}
- { c: yellow}
- { c: orange}
- { c: orange}
- from: 2500
leds:
- { c: green}
- { c: green}
- { c: yellow}
- { c: yellow}
- { c: orange}
- { c: orange}
- { c: red}
- from: 3000
leds:
- { c: green}
- { c: green}
- { c: yellow}
- { c: yellow}
- { c: orange}
- { c: orange}
- { 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
# soll
# 0-500 g1
# 500-800 2g
# 800- 1100 1y
# 1100 - 1400 2y
# 1400 - 2000 1orange
# 2000 - 2500 2orange
# 2500 - 3000 1 rot
# 3000 + 2 rot
# laut ÖNORM EN 13779 (2008)
# Hoch: bis 800ppm
# Mittel: bis 1000ppm
# Mäßig: bis 1400ppm
# Niedrig: ab 1400ppm
# g bis 800
# y1 bis 1000
# y2 bos 1400
# o1 ab 1400