Hi
I followed this guide to set up the below config but there is no reading output from the sensor. Please help!
esphome:
name: bed-sensor
esp8266:
board: esp01_1m
logger:
api:
encryption:
key: "XXX"
ota:
password: "XXX"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: "Bed-Sensor Fallback Hotspot"
password: "XXX"
uart:
rx_pin: GPIO12
tx_pin: GPIO13
baud_rate: 9600
sensor:
- platform: pmsx003
type: PMSX003
pm_1_0:
name: "Particulate Matter <1.0µm Concentration"
pm_2_5:
name: "Particulate Matter <2.5µm Concentration"
pm_10_0:
name: "Particulate Matter <10.0µm Concentration"
update_interval: 30s
LOGS:
INFO ESPHome 2023.12.3
INFO Reading configuration /config/esphome/bed-sensor.yaml…
INFO Starting log output from 192.168.1.117 using esphome API
INFO Successfully connected to bed-sensor @ 192.168.1.117 in 0.004s
INFO Successful handshake with bed-sensor @ 192.168.1.117 in 2.710s
[23:37:00][I][app:102]: ESPHome version 2023.12.3 compiled on Dec 22 2023, 23:33:33
[23:37:00][C][wifi:573]: WiFi:
[23:37:00][C][wifi:405]: Local MAC: 34:94:54:61:BE:26
[23:37:00][C][wifi:410]: SSID: ‘cipka’[redacted]
[23:37:00][C][wifi:411]: IP Address: 192.168.1.117
[23:37:00][C][wifi:412]: BSSID: 34:97:F6:02:92:30[redacted]
[23:37:00][C][wifi:414]: Hostname: ‘bed-sensor’
[23:37:00][C][wifi:416]: Signal strength: -26 dB ▂▄▆█
[23:37:00][C][wifi:420]: Channel: 9
[23:37:00][C][wifi:421]: Subnet: 255.255.255.0
[23:37:00][C][wifi:422]: Gateway: 192.168.1.1
[23:37:00][C][wifi:423]: DNS1: 192.168.1.2
[23:37:00][C][wifi:424]: DNS2: 192.168.1.1
[23:37:00][C][logger:443]: Logger:
[23:37:00][C][logger:444]: Level: DEBUG
[23:37:00][C][logger:445]: Log Baud Rate: 115200
[23:37:00][C][logger:447]: Hardware UART: UART0
[23:37:01][C][uart.arduino_esp8266:102]: UART Bus:
[23:37:01][C][uart.arduino_esp8266:103]: TX Pin: GPIO13
[23:37:01][C][uart.arduino_esp8266:104]: RX Pin: GPIO12
[23:37:01][C][uart.arduino_esp8266:106]: RX Buffer Size: 256
[23:37:01][C][uart.arduino_esp8266:108]: Baud Rate: 9600 baud
[23:37:01][C][uart.arduino_esp8266:109]: Data Bits: 8
[23:37:01][C][uart.arduino_esp8266:110]: Parity: NONE
[23:37:01][C][uart.arduino_esp8266:111]: Stop bits: 1
[23:37:01][C][uart.arduino_esp8266:115]: Using software serial
[23:37:01][C][pmsx003:334]: PMSX003:
[23:37:01][C][pmsx003:339]: PM1.0 ‘Particulate Matter <1.0µm Concentration’
[23:37:01][C][pmsx003:339]: State Class: ‘measurement’
[23:37:01][C][pmsx003:339]: Unit of Measurement: ‘µg/m³’
[23:37:01][C][pmsx003:339]: Accuracy Decimals: 0
[23:37:01][C][pmsx003:339]: Icon: ‘mdi:chemical-weapon’
[23:37:01][C][pmsx003:340]: PM2.5 ‘Particulate Matter <2.5µm Concentration’
[23:37:01][C][pmsx003:340]: State Class: ‘measurement’
[23:37:01][C][pmsx003:340]: Unit of Measurement: ‘µg/m³’
[23:37:01][C][pmsx003:340]: Accuracy Decimals: 0
[23:37:01][C][pmsx003:340]: Icon: ‘mdi:chemical-weapon’
[23:37:01][C][pmsx003:341]: PM10.0 ‘Particulate Matter <10.0µm Concentration’
[23:37:01][C][pmsx003:341]: State Class: ‘measurement’
[23:37:01][C][pmsx003:341]: Unit of Measurement: ‘µg/m³’
[23:37:01][C][pmsx003:341]: Accuracy Decimals: 0
[23:37:01][C][pmsx003:341]: Icon: ‘mdi:chemical-weapon’
[23:37:01][C][captive_portal:088]: Captive Portal:
[23:37:01][C][mdns:115]: mDNS:
[23:37:01][C][mdns:116]: Hostname: bed-sensor
[23:37:01][C][ota:097]: Over-The-Air Updates:
[23:37:01][C][ota:098]: Address: bed-sensor.local:8266
[23:37:01][C][ota:101]: Using Password.
[23:37:01][C][api:139]: API Server:
[23:37:01][C][api:140]: Address: bed-sensor.local:6053
[23:37:01][C][api:142]: Using noise encryption: YES