Eastron SDM Energy Monitor

The sdm_meter sensor platform allows you to use Eastron SDM modbus energy monitors (website) with ESPHome.

../../_images/sdm220m-full.png

SDM220M Energy Monitor.

The communication with this integration is done over a UART bus using Modbus. You must therefore have a uart: entry in your configuration with both the TX and RX pins set to some pins on your board and the baud rate set to 9600.

# Example configuration entry
uart:
  rx_pin: D1
  tx_pin: D2
  baud_rate: 9600
  stop_bits: 1

sensor:
  - platform: sdm_meter
    phase_a:
      current:
        name: "SDM220M Current"
      voltage:
        name: "SDM220M Voltage"
      active_power:
        name: "SDM220M Power"
      power_factor:
        name: "SDM220M Power Factor"
      apparent_power:
        name: "SDM220M Apparent Power"
      reactive_power:
        name: "SDM220M Reactive Power"
      phase_angle:
        name: "SDM220M Phase Angle"
    frequency:
      name: "SDM220M Frequency"
    import_active_energy:
      name: "SDM220M Import Active Energy"
    export_active_energy:
      name: "SDM220M Export Active Energy"
    import_reactive_energy:
      name: "SDM220M Import Reactive Energy"
    export_reactive_energy:
      name: "SDM220M Export Reactive Energy"
    update_interval: 60s

Configuration variables:

  • phase_a (Optional): The group of exposed sensors for Phase A/1.

    • current (Optional): Use the current value of the sensor in amperes. All options from Sensor.

    • voltage (Optional): Use the voltage value of the sensor in volts. All options from Sensor.

    • active_power (Optional): Use the (active) power value of the sensor in watts. All options from Sensor.

    • power_factor (Optional): Use the power factor value of the sensor. All options from Sensor.

    • apparent_power (Optional): Use the apparent power value of the sensor in VA. All options from Sensor.

    • reactive_power (Optional): Use the reactive power value of the sensor in VAR. All options from Sensor.

    • phase_angle (Optional): Use the phase angle value of the sensor in degree. All options from Sensor.

  • phase_b (Optional): The group of exposed sensors for Phase B/2 on applicable meters. eg: SDM630

    • All options from phase_a

  • phase_c (Optional): The group of exposed sensors for Phase C/3 on applicable meters. eg: SDM630

    • All options from phase_a

  • frequency (Optional): Use the frequency value of the sensor in hertz. All options from Sensor.

  • import_active_energy (Optional): Use the import active energy value of the sensor in watt hours. All options from Sensor.

  • export_active_energy (Optional): Use the export active energy value of the sensor in watt hours. All options from Sensor.

  • import_reactive_energy (Optional): Use the import reactive energy value of the sensor in volt amps reactive hours. All options from Sensor.

  • export_reactive_energy (Optional): Use the export reactive energy value of the sensor in volt amps reactive hours. All options from Sensor.

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

  • address (Optional, int): The address of the sensor if multiple sensors are attached to the same UART bus. You will need to set the address of each device manually. Defaults to 1.

See Also