iproshopDIY

IKEA PM2.5 Display SSD1603 - ESPHome

Oct 25th, 2022
766
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. captive_portal:
  2.  
  3. font:
  4. - file: "Kanit-Thin.ttf"
  5. id: kanit
  6. size: 25
  7.  
  8. uart:
  9. rx_pin: GPIO16
  10. baud_rate: 9600
  11.  
  12. sensor:
  13. - platform: pm1006
  14. pm_2_5:
  15. name: "Office PM2.5"
  16. id: pm2_5
  17.  
  18. - platform: wifi_signal
  19. name: "pm25 WiFi Strength"
  20. update_interval: 60s
  21.  
  22. - platform: uptime
  23. name: "pm25 Uptime"
  24.  
  25. i2c:
  26. scl: GPIO21
  27. sda: GPIO22
  28.  
  29. display:
  30. - platform: ssd1306_i2c
  31. model: "SSD1306 128x32"
  32. address: 0x3C
  33. lambda: |-
  34. it.printf(0, 0, id(kanit), "PM2.5: %.1f", id(pm2_5).state);
  35.  
  36. switch:
  37. - platform: restart
  38. name: "pm25 reboot"
  39.  
  40. text_sensor:
  41. - platform: wifi_info
  42. ip_address:
  43. name: IP Address
  44. id: ip
  45. ssid:
  46. name: Connected SSID
  47. id: ssid
  48.  
Advertisement
Add Comment
Please, Sign In to add comment