Advertisement
xangin

IKEA PM2.5 SHT

Jul 3rd, 2023 (edited)
855
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.43 KB | None | 0 0
  1. substitutions:
  2.   device_name: ikea-pm25-sht
  3.  
  4. esphome:
  5.   name: ikea-pm25-sht
  6.   friendly_name: ikea-pm25-sht
  7.  
  8. esp8266:
  9.   board: d1_mini
  10.  
  11. # Enable logging
  12. logger:
  13. # Enable Home Assistant API
  14. api:
  15. ota:
  16.   password: "876543210"
  17.  
  18. wifi:
  19.   ssid: !secret my_ap_ssid
  20.   password: !secret my_ap_password
  21.  
  22.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  23.   ap:
  24.     ssid: "ikea-pm25-sht"
  25.     password: "12345678"
  26.  
  27. captive_portal:
  28. web_server:
  29. i2c:
  30.   sda: D5
  31.   scl: D6
  32.   scan: true
  33.    
  34. uart:
  35.   rx_pin: D2
  36.   baud_rate: 9600
  37.  
  38. sensor:
  39.   - platform: pm1006
  40.     pm_2_5:
  41.       name: "${device_name} PM2.5 sensor"
  42.  
  43.   - platform: sht3xd
  44.     address: 0x44  
  45.     update_interval: 30s  
  46.     temperature:
  47.       name: "${device_name} Temperature"
  48. #      filters:
  49. #        - calibrate_polynomial:
  50. #            degree: 2
  51. #            datapoints:
  52. #              - 0.0 -> 0.0    
  53. #              - 31.9 -> 29.2
  54. #              - 31.4 -> 28.3
  55.     humidity:
  56.       name: "${device_name} Humidity"
  57. #      filters:
  58. #        - calibrate_polynomial:
  59. #            degree: 2
  60. #            datapoints:
  61. #              - 0.0 -> 0.0
  62. #              - 60.6 -> 71
  63. #              - 51 -> 62
  64. #              - 49.7 -> 61
  65.              
  66.      
  67.   - platform: wifi_signal
  68.     name: "${device_name} WiFi Signal"
  69.     update_interval: 60s
  70.  
  71. binary_sensor:
  72.   - platform: status
  73.     name: "${device_name} WiFi Status"    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement