Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is a custom firmware for PM Sensor PM25-1
- # https://docs.screek.io/pm25-1
- esphome:
- name: screek-pm-sensor-1
- comment: Screek PM Sensor PM25-1
- friendly_name: PM Sensor PM25-1
- name_add_mac_suffix: True
- platformio_options:
- board_build.flash_mode: dio
- project:
- name: Screek.PM_Sensor_PM25-1
- version: 25.07.10.1
- esp32:
- board: lolin_c3_mini
- framework:
- type: arduino
- version: 2.0.7
- platform_version: 6.0.1
- external_components:
- - source:
- type: git
- url: https://github.com/screekworkshop/custom_components_support_for_screek_2a
- ref: main
- components: [uart]
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- encryption:
- key: "eN0CwpPlwrGJ8FuU1PrMYb5nw74beUeFbncK5TYwsMk="
- ota:
- - platform: esphome
- password: "857d7481818264919e953f937a5757d8"
- web_server:
- port: 80
- version: 3
- wifi:
- power_save_mode: HIGH
- ssid: !secret wifi_ssid
- password: !secret wifi_password
- captive_portal:
- improv_serial:
- i2c:
- sda: GPIO4
- scl: GPIO5
- scan: true
- id: bus_a
- binary_sensor:
- - platform: status
- name: Online
- id: ink_ha_connected
- sensor:
- - platform: template
- id: sys_esp_temperature
- name: ESP Temperature
- lambda: return temperatureRead();
- unit_of_measurement: °C
- device_class: TEMPERATURE
- update_interval: 30s
- entity_category: "diagnostic"
- - platform: uptime
- name: Uptime
- id: sys_uptime
- update_interval: 60s
- - platform: wifi_signal
- name: RSSI
- id: wifi_signal_db
- update_interval: 60s
- entity_category: "diagnostic"
- - platform: template
- id: esp_memory
- icon: mdi:memory
- name: ESP Free Memory
- lambda: return heap_caps_get_free_size(MALLOC_CAP_INTERNAL) / 1024;
- unit_of_measurement: 'kB'
- state_class: measurement
- entity_category: "diagnostic"
- disabled_by_default: True
- update_interval: 60s
- - platform: sps30
- pm_1_0:
- name: "PM1.0"
- pm_2_5:
- name: "PM2.5"
- pm_4_0:
- name: "PM4.0"
- pm_10_0:
- name: "PM10.0"
- pmc_0_5:
- name: "Particle <0.5µm"
- unit_of_measurement: "count/m^3"
- pmc_1_0:
- name: "Particle <1.0µm"
- unit_of_measurement: "count/m^3"
- pmc_2_5:
- name: "Particle <2.5µm"
- unit_of_measurement: "count/m^3"
- pmc_4_0:
- name: "Particle <4.0µm"
- unit_of_measurement: "count/m^3"
- pmc_10_0:
- name: "Particle <10.0µm"
- unit_of_measurement: "count/m^3"
- update_interval: 10s
- light:
- - platform: status_led
- name: sys_status
- pin:
- number: GPIO12
- ignore_pin_validation_error: true
- internal: True
- restore_mode: ALWAYS_OFF
- - platform: status_led
- name: sys_status
- pin:
- number: GPIO13
- ignore_pin_validation_error: true
- internal: True
- restore_mode: ALWAYS_OFF
- button:
- - platform: restart
- icon: mdi:power-cycle
- name: "ESP Reboot"
- - platform: factory_reset
- disabled_by_default: True
- name: Factory Reset
- id: factory_reset_all
Advertisement
Add Comment
Please, Sign In to add comment