SM300D2 7-in-1 Air Quality Sensor

The sm300d2 sensor platform allows you to use the SM300D2 7-in-1 Air Quality Sensor with ESPHome.

../../_images/sm300d2-full.jpg

SM300D2 7-in-1 Air Quality Sensor.

../../_images/sm300d2-ui.png

The SM300D2 sensor supports connections via UART or RS485. This platform only supports UART-connections. Make sure you have a UART bus in your configuration with the rx_pin connected to the TX pin of the sensor. The sensor does not support receiving data, so the tx_pin does not need to be connected. The sensor expects the baud rate to be set at 9600.

# Example configuration entry
uart:
  rx_pin: D0
  tx_pin: D1
  baud_rate: 9600

sensor:
  - platform: sm300d2
    co2:
      name: "SM300D2 CO2 Value"
    formaldehyde:
      name: "SM300D2 Formaldehyde Value"
    tvoc:
      name: "SM300D2 TVOC Value"
    pm_2_5:
      name: "SM300D2 PM2.5 Value"
    pm_10_0:
      name: "SM300D2 PM10 Value"
    temperature:
      name: "SM300D2 Temperature Value"
    humidity:
      name: "SM300D2 Humidity Value"
    update_interval: 60s

Configuration variables:

  • co2 (Required): The CO₂ data from the sensor in parts per million (ppm).

    • name (Required, string): The name of the CO₂ sensor.

    • id (Optional, ID): Set the ID of this sensor for use in lambdas.

    • All other options from Sensor.

  • formaldehyde (Required): The formaldehyde data of the sensor in micrograms per cubic meter air (µg/m³).

    • name (Required, string): The name of the formaldehyde sensor.

    • id (Optional, ID): Set the ID of this sensor for use in lambdas.

    • All other options from Sensor.

  • tvoc (Required): The total volatile organic compounds (TVOC) data of the sensor in micrograms per cubic meter air (µg/m³).

    • name (Required, string): The name of the TVOC sensor.

    • id (Optional, ID): Set the ID of this sensor for use in lambdas.

    • All other options from Sensor.

  • pm_2_5 (Required): The PM2.5 data of the sensor in micrograms per cubic meter air (µg/m³).

    • name (Required, string): The name of the PM2.5 sensor.

    • id (Optional, ID): Set the ID of this sensor for use in lambdas.

    • All other options from Sensor.

  • pm_10_0 (Required): The PM10 data of the sensor in micrograms per cubic meter air (µg/m³).

    • name (Required, string): The name of the PM10 sensor.

    • id (Optional, ID): Set the ID of this sensor for use in lambdas.

    • All other options from Sensor.

  • temperature (Required): The temperature data of the sensor in degrees celsius (°C).

    • name (Required, string): The name of the temperature sensor.

    • id (Optional, ID): Set the ID of this sensor for use in lambdas.

    • All other options from Sensor.

  • humidity (Required): The humidity data of the sensor in percent relative humidity (%).

    • name (Required, string): The name of the humidity sensor.

    • id (Optional, ID): Set the ID of this sensor for use in lambdas.

    • All other options from Sensor.

  • update_interval (Optional, Time): The interval to check the sensor. Defaults to 60s.

  • uart_id (Optional, ID): Manually specify the ID of the UART Component if you want to use multiple UART buses.

  • id (Optional, ID): Manually specify the ID used for actions.

../../_images/sm300d2-pins.jpg

Pins on the SM300D2. UART RX is not in use.

Note

5V should be connected to power supply (supported voltage is 4.8 V to 5.2 V), GD to GND pin

See Also