Dear Cognoscenti
I have a PM2.5 particulate sensor (https://www.aliexpress.com/item/4001039451614.html?spm=a2g0o.order_list.order_list_main.60.12641802Hsgrxr)
Until about a month ago HA was showing 3 values/entities - PM1.0, PM2.5 and PM10.
Since then, and still using the configuration I had before, HA has shown only 2 of these.
If the configuration includes all 3 values, HA shows the PM10 and PM2.5. By blocking one of these lines and adding the PM1.0 lines in the ESP configuration file, it will show the PM1.0 value and the other PM value specified in the ESP configuration file.
Here is the full configuration file:
esphome:
name: esp322
friendly_name: ESP322
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# level: VERBOSE
# Enable Home Assistant API
api:
encryption:
key: ""
ota:
password: ""
wifi:
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
priority: 1
- ssid: !secret wifi_ssid1
password: !secret wifi_password
priority: 0
# Define local domain name
domain: .xx.local
# Add static ip address
manual_ip:
static_ip: 192.168.1.xxx
gateway: 192.168.1.xxx
subnet: 255.255.255.0
dns1: 192.168.1.xxx
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esp322 Fallback Hotspot"
password: ""
captive_portal:
uart:
tx_pin: GPIO17
rx_pin: GPIO16
baud_rate: 9600
sensor:
- platform: pmsx003
type: PMSX003
pm_1_0:
name: "PM1.0"
pm_2_5:
name: "PM2.5"
pm_10_0:
name: "PM10"
update_interval: 60s
Here is a line of text from the log showing all 3 values are being passed by the PM sensor:
[22:51:10][D][pmsx003:236]: Got PM1.0 Concentration: 6 µg/m^3, PM2.5 Concentration 9 µg/m^3, PM10.0 Concentration: 9 µg/m^3
[22:51:10][D][sensor:110]: 'PM1.0': Sending state 6.00000 µg/m³ with 0 decimals of accuracy
[22:51:10][D][sensor:110]: 'PM2.5': Sending state 9.00000 µg/m³ with 0 decimals of accuracy
[22:51:10][D][sensor:110]: 'PM10': Sending state 9.00000 µg/m³ with 0 decimals of accuracy
I have also noticed that the PM2.5 and PM10 values have become identical - is the PM2.5 value a subset of the PM10 ie in the readings above there are no particles sized between 2.5 and 10 µg?
Thank you all for your advice.