Browse Source

ohm

esphome
Hendrik Langer 3 years ago
parent
commit
21271df38b
  1. 3
      common/display.yaml

3
common/display.yaml

@ -3,6 +3,7 @@ font:
- file: 'fonts/Vera.ttf' - file: 'fonts/Vera.ttf'
id: font1 id: font1
size: 10 size: 10
glyphs: '!"%()+=,-_.:°0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz/²³µΩ'
- file: 'fonts/Vera.ttf' - file: 'fonts/Vera.ttf'
id: font2 id: font2
size: 20 size: 20
@ -78,7 +79,7 @@ display:
it.printf(133, 51, id(icon_font), weather_icon_map[id(weather_icon).state.c_str()].c_str()); it.printf(133, 51, id(icon_font), weather_icon_map[id(weather_icon).state.c_str()].c_str());
} }
it.printf(133, 21, id(font1), "Temp Out: %.1f°C", id(temperature_outside).state); it.printf(133, 21, id(font1), "Temp Out: %.1f°C", id(temperature_outside).state);
it.printf(133, 31, id(font1), "VOC : %.1f k\xe9", id(voc).state); it.printf(133, 31, id(font1), "VOC : %.1f k\u03A9", id(voc).state);
# it.printf(133, 21, id(font1), "PM2.5: %.1f", id(pm2).state); # it.printf(133, 21, id(font1), "PM2.5: %.1f", id(pm2).state);
# it.printf(133, 31, id(font1), "PM10 : %.1f", id(pm10).state); # it.printf(133, 31, id(font1), "PM10 : %.1f", id(pm10).state);
# it.printf(133, 51, id(font1), "Lux : %.1f lx", id(lux).state); # it.printf(133, 51, id(font1), "Lux : %.1f lx", id(lux).state);

Loading…
Cancel
Save