PMS5003ST via esphome on ESP32 Lolin

Hello,

I try to connect a PMS5003ST via esphome with homeassistant.

Esphome works greate, but I dont get any values of my PMS.

The switch code I took here, it is connected to set

On my sensor I can hear the fan running when sensor is turned on, but I dont get any values.

uart:
  rx_pin: GPIO2 #Richtigen GPIO ergänzen
  baud_rate: 9600
 

time:
  - platform: homeassistant
    id: homeassistant_time

switch:
  - platform: gpio
    pin: 
      number: GPIO4  #GPIO ergänzen
      inverted: yes
    id: pms_set
       
interval:
  - interval: 60s
    then:
      - switch.turn_on: pms_set
      - delay: 5s
      - switch.turn_off: pms_set
   

sensor:

  - platform: pmsx003
    type: PMS5003ST
    #pm_1_0:
    #name: "${friendly_name} Partikel <1.0µm µg/m³"
    pm_2_5:
     name: "${friendly_name} Partikel <2.5µm µg/m³"
    #pm_10_0:
    # name: "${friendly_name} Partikel <10µm µg/m³"
    humidity:
     name: "${friendly_name} Luftfeuchte PMS in %"
    formaldehyde:
     name: "${friendly_name} Formaldehyd µg/m³"
   

Any help is apreceated,
Stefan

Hi there, any chance you ever resolved this? I’m having a similar issue…

I think I swapp. I had to use tx on rx.

Best regards, Stefan

ok thanks, I’ll give that a shot!

Hello,

Is your sensor working now?