2021-05-31 06:06:23 +02:00
Eastron SDM Energy Monitor
==========================
.. seo ::
:description: Instructions for setting up SDM power monitors.
2022-01-31 08:05:20 +01:00
:image: sdm220m.jpg
2022-08-16 18:28:53 +02:00
:keywords: SDM230M, SDM220, SDM630, SDM120M, SDM72
2021-05-31 06:06:23 +02:00
The `` sdm_meter `` sensor platform allows you to use Eastron SDM modbus energy monitors
(`website <http://www.eastrongroup.com/product_detail.php?id=170&menu1=&menu2=> `__ )
with ESPHome.
.. figure :: images/sdm220m-full.png
:align: center
:width: 50.0%
2022-08-16 18:28:53 +02:00
SDM230M Energy Monitor.
2021-05-31 06:06:23 +02:00
2024-05-07 07:16:56 +02:00
The communication with this component is done via a :ref: `UART <uart>` using the :ref: `Modbus protocol <modbus>`
2021-08-10 13:36:54 +02:00
over RS485 wiring. You will need an RS485 to UART converter for communication.
2021-05-31 06:06:23 +02:00
You must therefore have a `` uart: `` entry in your configuration with both the TX and RX pins set
2022-08-16 18:28:53 +02:00
to some pins on your board and the baud rate set to 9600bps.
2022-08-21 15:00:31 +02:00
! For the SDM230M, SDM120M Energy Monitor the default factory baud rate is 2400bps. You either need to change the code to 2400bps for these models or change the settings on your Energy Meter For more information search for your model: (`eastron's website <https://www.eastroneurope.com/products/category/din-rail-mounted-metering> `__ ).
2021-05-31 06:06:23 +02:00
.. code-block :: yaml
# Example configuration entry
uart:
rx_pin: D1
tx_pin: D2
2022-08-21 15:02:47 +02:00
baud_rate: 9600 #if your energy meter is SDM230M or SDM120M than change the baud_rate: 2400
2021-05-31 06:06:23 +02:00
stop_bits: 1
sensor:
- platform: sdm_meter
phase_a:
current:
2022-08-16 18:28:53 +02:00
name: "SDM230M Current"
2021-05-31 06:06:23 +02:00
voltage:
2022-08-16 18:28:53 +02:00
name: "SDM230M Voltage"
2021-05-31 06:06:23 +02:00
active_power:
2022-08-16 18:28:53 +02:00
name: "SDM230M Power"
2021-05-31 06:06:23 +02:00
power_factor:
2022-08-16 18:28:53 +02:00
name: "SDM230M Power Factor"
2021-05-31 06:06:23 +02:00
apparent_power:
2022-08-16 18:28:53 +02:00
name: "SDM230M Apparent Power"
2021-05-31 06:06:23 +02:00
reactive_power:
2022-08-16 18:28:53 +02:00
name: "SDM230M Reactive Power"
2021-05-31 06:06:23 +02:00
phase_angle:
2022-08-16 18:28:53 +02:00
name: "SDM230M Phase Angle"
2021-05-31 06:06:23 +02:00
frequency:
2022-08-16 18:28:53 +02:00
name: "SDM230M Frequency"
2022-01-10 00:23:04 +01:00
total_power:
2022-08-16 18:28:53 +02:00
name: "SDM230M Total Power"
2021-05-31 06:06:23 +02:00
import_active_energy:
2022-08-16 18:28:53 +02:00
name: "SDM230M Import Active Energy"
2021-05-31 06:06:23 +02:00
export_active_energy:
2022-08-16 18:28:53 +02:00
name: "SDM230M Export Active Energy"
2021-05-31 06:06:23 +02:00
import_reactive_energy:
2022-08-16 18:28:53 +02:00
name: "SDM230M Import Reactive Energy"
2021-05-31 06:06:23 +02:00
export_reactive_energy:
2022-08-16 18:28:53 +02:00
name: "SDM230M Export Reactive Energy"
2021-05-31 06:06:23 +02:00
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
:ref: `Sensor <config-sensor>` .
2021-10-14 09:01:47 +02:00
- **voltage** (*Optional* ): Use the voltage value of the sensor in volts (V).
2021-05-31 06:06:23 +02:00
All options from :ref: `Sensor <config-sensor>` .
2021-10-14 09:01:47 +02:00
- **active_power** (*Optional* ): Use the (active) power value of the sensor in watts (W). All options
2021-05-31 06:06:23 +02:00
from :ref: `Sensor <config-sensor>` .
- **power_factor** (*Optional* ): Use the power factor value of the sensor.
All options from :ref: `Sensor <config-sensor>` .
2021-10-14 09:01:47 +02:00
- **apparent_power** (*Optional* ): Use the apparent power value of the sensor in volt amps (VA). All
2021-05-31 06:06:23 +02:00
options from :ref: `Sensor <config-sensor>` .
2021-10-14 09:01:47 +02:00
- **reactive_power** (*Optional* ): Use the reactive power value of the sensor in volt amps reactive (VAR). All
2021-05-31 06:06:23 +02:00
options from :ref: `Sensor <config-sensor>` .
2021-10-14 09:01:47 +02:00
- **phase_angle** (*Optional* ): Use the phase angle value of the sensor in degrees (°). All options
2021-05-31 06:06:23 +02:00
from :ref: `Sensor <config-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 :ref: `Sensor <config-sensor>` .
2022-01-10 00:23:04 +01:00
- **total_power** (*Optional* ): Use the total power value of the sensor in watts (W).
All options from :ref: `Sensor <config-sensor>` .
2021-10-14 09:01:47 +02:00
- **import_active_energy** (*Optional* ): Use the import active energy value of the sensor in kilowatt
hours (kWh). All options from :ref: `Sensor <config-sensor>` .
- **export_active_energy** (*Optional* ): Use the export active energy value of the sensor in kilowatt
hours (kWh). All options from :ref: `Sensor <config-sensor>` .
2021-05-31 06:06:23 +02:00
- **import_reactive_energy** (*Optional* ): Use the import reactive energy value of the sensor in
2021-10-14 09:01:47 +02:00
kilovolt amps reactive hours (kVArh). All options from :ref: `Sensor <config-sensor>` .
2021-05-31 06:06:23 +02:00
- **export_reactive_energy** (*Optional* ): Use the export reactive energy value of the sensor in
2021-10-14 09:01:47 +02:00
kilovolt amps reactive hours (kVArh). All options from :ref: `Sensor <config-sensor>` .
2021-05-31 06:06:23 +02:00
- **update_interval** (*Optional* , :ref: `config-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
--------
- :ref: `sensor-filters`
- :apiref: `sdm220m/sdm220m.h`
- :ghedit: `Edit`
2022-08-21 15:00:31 +02:00