msalad

Untitled

Aug 2nd, 2025
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.07 KB | None | 0 0
  1. # This is a custom firmware for PM Sensor PM25-1
  2. # https://docs.screek.io/pm25-1
  3. esphome:
  4. name: screek-pm-sensor-1
  5. comment: Screek PM Sensor PM25-1
  6. friendly_name: PM Sensor PM25-1
  7. name_add_mac_suffix: True
  8. platformio_options:
  9. board_build.flash_mode: dio
  10. project:
  11. name: Screek.PM_Sensor_PM25-1
  12. version: 25.07.10.1
  13.  
  14. esp32:
  15. board: lolin_c3_mini
  16. framework:
  17. type: arduino
  18. version: 2.0.7
  19. platform_version: 6.0.1
  20.  
  21. external_components:
  22. - source:
  23. type: git
  24. url: https://github.com/screekworkshop/custom_components_support_for_screek_2a
  25. ref: main
  26. components: [uart]
  27.  
  28. # Enable logging
  29. logger:
  30.  
  31. # Enable Home Assistant API
  32. api:
  33. encryption:
  34. key: "eN0CwpPlwrGJ8FuU1PrMYb5nw74beUeFbncK5TYwsMk="
  35.  
  36. ota:
  37. - platform: esphome
  38. password: "857d7481818264919e953f937a5757d8"
  39.  
  40. web_server:
  41. port: 80
  42. version: 3
  43.  
  44. wifi:
  45. power_save_mode: HIGH
  46. ssid: !secret wifi_ssid
  47. password: !secret wifi_password
  48.  
  49. captive_portal:
  50.  
  51. improv_serial:
  52.  
  53. i2c:
  54. sda: GPIO4
  55. scl: GPIO5
  56. scan: true
  57. id: bus_a
  58.  
  59. binary_sensor:
  60. - platform: status
  61. name: Online
  62. id: ink_ha_connected
  63.  
  64. sensor:
  65. - platform: template
  66. id: sys_esp_temperature
  67. name: ESP Temperature
  68. lambda: return temperatureRead();
  69. unit_of_measurement: °C
  70. device_class: TEMPERATURE
  71. update_interval: 30s
  72. entity_category: "diagnostic"
  73. - platform: uptime
  74. name: Uptime
  75. id: sys_uptime
  76. update_interval: 60s
  77. - platform: wifi_signal
  78. name: RSSI
  79. id: wifi_signal_db
  80. update_interval: 60s
  81. entity_category: "diagnostic"
  82. - platform: template
  83. id: esp_memory
  84. icon: mdi:memory
  85. name: ESP Free Memory
  86. lambda: return heap_caps_get_free_size(MALLOC_CAP_INTERNAL) / 1024;
  87. unit_of_measurement: 'kB'
  88. state_class: measurement
  89. entity_category: "diagnostic"
  90. disabled_by_default: True
  91. update_interval: 60s
  92. - platform: sps30
  93. pm_1_0:
  94. name: "PM1.0"
  95. pm_2_5:
  96. name: "PM2.5"
  97. pm_4_0:
  98. name: "PM4.0"
  99. pm_10_0:
  100. name: "PM10.0"
  101. pmc_0_5:
  102. name: "Particle <0.5µm"
  103. unit_of_measurement: "count/m^3"
  104. pmc_1_0:
  105. name: "Particle <1.0µm"
  106. unit_of_measurement: "count/m^3"
  107. pmc_2_5:
  108. name: "Particle <2.5µm"
  109. unit_of_measurement: "count/m^3"
  110. pmc_4_0:
  111. name: "Particle <4.0µm"
  112. unit_of_measurement: "count/m^3"
  113. pmc_10_0:
  114. name: "Particle <10.0µm"
  115. unit_of_measurement: "count/m^3"
  116. update_interval: 10s
  117.  
  118. light:
  119. - platform: status_led
  120. name: sys_status
  121. pin:
  122. number: GPIO12
  123. ignore_pin_validation_error: true
  124. internal: True
  125. restore_mode: ALWAYS_OFF
  126. - platform: status_led
  127. name: sys_status
  128. pin:
  129. number: GPIO13
  130. ignore_pin_validation_error: true
  131. internal: True
  132. restore_mode: ALWAYS_OFF
  133.  
  134. button:
  135. - platform: restart
  136. icon: mdi:power-cycle
  137. name: "ESP Reboot"
  138. - platform: factory_reset
  139. disabled_by_default: True
  140. name: Factory Reset
  141. id: factory_reset_all
Advertisement
Add Comment
Please, Sign In to add comment