display only n/100 digits for fewer distraction, changed thresholds, changed font to 'Gidole regular'
This commit is contained in:
parent
e1c3c27ca1
commit
bf12994b4f
1 changed files with 12 additions and 5 deletions
|
@ -78,7 +78,7 @@ sensor:
|
||||||
sensor.in_range:
|
sensor.in_range:
|
||||||
id: mhz19_co2
|
id: mhz19_co2
|
||||||
above: 800
|
above: 800
|
||||||
below: 1500
|
below: 1000
|
||||||
then:
|
then:
|
||||||
- light.turn_on:
|
- light.turn_on:
|
||||||
id: ws2812
|
id: ws2812
|
||||||
|
@ -92,7 +92,7 @@ sensor:
|
||||||
condition:
|
condition:
|
||||||
sensor.in_range:
|
sensor.in_range:
|
||||||
id: mhz19_co2
|
id: mhz19_co2
|
||||||
above: 1500
|
above: 1000
|
||||||
then:
|
then:
|
||||||
- light.turn_on:
|
- light.turn_on:
|
||||||
id: ws2812
|
id: ws2812
|
||||||
|
@ -109,6 +109,10 @@ sensor:
|
||||||
# level: "20%"
|
# level: "20%"
|
||||||
# - delay: 10ms
|
# - delay: 10ms
|
||||||
# - output.turn_off: buzzer
|
# - output.turn_off: buzzer
|
||||||
|
- delay: 500ms
|
||||||
|
- light.toggle: ws2812
|
||||||
|
- delay: 500ms
|
||||||
|
- light.toggle: ws2812
|
||||||
- delay: 500ms
|
- delay: 500ms
|
||||||
- light.toggle: ws2812
|
- light.toggle: ws2812
|
||||||
- delay: 500ms
|
- delay: 500ms
|
||||||
|
@ -125,7 +129,7 @@ i2c:
|
||||||
font:
|
font:
|
||||||
- file: "font.ttf"
|
- file: "font.ttf"
|
||||||
id: cust_font
|
id: cust_font
|
||||||
size: 28
|
size: 70
|
||||||
|
|
||||||
display:
|
display:
|
||||||
- platform: ssd1306_i2c
|
- platform: ssd1306_i2c
|
||||||
|
@ -136,8 +140,11 @@ display:
|
||||||
pages:
|
pages:
|
||||||
- id: boot
|
- id: boot
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.printf(64, 32, id(cust_font), COLOR_ON, TextAlign::TOP_CENTER, "starte...");
|
it.printf(64, 0, id(cust_font), COLOR_ON, TextAlign::TOP_CENTER, ":-)");
|
||||||
- id: co2
|
- id: co2
|
||||||
lambda: |-
|
lambda: |-
|
||||||
it.printf(64, 32, id(cust_font), COLOR_ON, TextAlign::TOP_CENTER, "%.0fPPM", id(mhz19_co2).state);
|
int ergb;
|
||||||
|
ergb = id(mhz19_co2).state/100;
|
||||||
|
it.printf(64, 0, id(cust_font), COLOR_ON, TextAlign::TOP_CENTER, "%.0i", ergb);
|
||||||
|
# it.printf(64, 16, id(cust_font), COLOR_ON, TextAlign::TOP_CENTER, "%.0fPPM", id(mhz19_co2).state);
|
||||||
# it.printf(64, 40, id(cust_font),TextAlign::TOP_CENTER, "%.0f°C", id(mhz19_temp).state);
|
# it.printf(64, 40, id(cust_font),TextAlign::TOP_CENTER, "%.0f°C", id(mhz19_temp).state);
|
||||||
|
|
Loading…
Reference in a new issue