Everything presence lite -add particulate sensor

I am very new to ESPHOME.

I bought the everything presence lite and I want to add a particulate sensor (SPS30) to it. I just dumped in the code I used when I got it working on my ESP32 dev board and I’m afraid I’m out of my depth. It gives this error:

Failed config

sensor.bh1750: [source /data/packages/0c1ca49c/common/everything-presence-lite-base.yaml:107]
  platform: bh1750
  name: Illuminance
  id: illuminance_sensor
  
  Couldn't find ID 'bus_a'. Please check you have defined an ID with that name in your configuration.
  i2c_id: bus_a
  address: 0x23
  update_interval: 2s
  accuracy_decimals: 0
  filters: 
    - lambda: !lambda |-
        return x + id(illuminance_offset_ui).state;
    - or: 
        - delta: 

Here is my config, I added everything to below the wifi config to the default ESPLite config:

substitutions:
  name: everything-presence-lite-13d01c
  friendly_name: Nursery Presence Sensor ESP32
packages:
  EverythingSmartTechnology.Everything Presence Lite: github://everythingsmarthome/everything-presence-lite/everything-presence-lite-ha.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}
api:
  encryption:
    key: [redacted]


wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password


i2c:
  sda: 27
  scl: 26
  scan: True


sensor:
  - platform: sps30
    pm_1_0:
      name: "Nursery <1µm Weight concentration"
      id: "nursery__1_0"
    pm_2_5:
      name: "Nursery <2.5µm Weight concentration"
      id: "nursery__2_5"
    pm_4_0:
      name: "Nursery<4µm Weight concentration"
      id: "nursery__4_0"
    pm_10_0:
      name: "Nursery <10µm Weight concentration"
      id: "nursery__10_0"
    pmc_0_5:
      name: "Nursery <0.5µm Number concentration"
      id: "nursery_C_0_5"
    pmc_1_0:
      name: "Nursery <1µm Number concentration"
      id: "nursery_C_1_0"
    pmc_2_5:
      name: "Nursery <2.5µm Number concentration"
      id: "nursery_C_2_5"
    pmc_4_0:
      name: "Nursery <4µm Number concentration"
      id: "nursery_C_4_0"
    pmc_10_0:
      name: "Nursery <10µm Number concentration"
      id: "nursery_C_10_0"
    pm_size:
      name: "Typical Particle size"
      id: "pm_size"
    address: 0x69
    update_interval: 10s

The sensor is trying to reference i2c_id: bus_a but you don’t have it defined.

You likely need to add i2c_id: bus_a under i2c: similar to the example here:

Shoot yes, I meant to post an update
Specifying an ID was the answer
If you dig deeper into the EPL code you’ll note that bus_a is for the presence sensor.
Therefore I put i2c_id: bus_b under the i2c definition above and again under the sensor.

1 Like