MFxMF made a python plugin for the Eastron SDM630 Smart meter. I modified his original code to make it suitable for the SDM72D-M smart meter.
The meter is connected via modbus and an RS485 USB adapter (very cheap on ebay!) No further coding needed!


Moderator: leecollings
bbossink wrote: ↑Tuesday 23 July 2019 20:47 Hi all,
MFxMF made a python plugin for the Eastron SDM630 Smart meter. I modified his original code to make it suitable for the SDM72D-M smart meter.
The meter is connected via modbus and an RS485 USB adapter (very cheap on ebay!) No further coding needed!
![]()
Credits to the original developer!
Tweakerd wrote: ↑Thursday 14 November 2019 10:36 Hello all,
I'm trieing to get things work, but still got this errors.
2019-11-14 10:29:57.624 Error: (power Modbus) 'onHeartbeat' failed 'OSError'.
2019-11-14 10:29:57.624 Error: (power Modbus) ----> Line 131 in '/home/pi/domoticz/plugins/SDM120Modbus-Domoticz-plugin/plugin.py', function onHeartbeat
2019-11-14 10:29:57.624 Error: (power Modbus) ----> Line 85 in '/home/pi/domoticz/plugins/SDM120Modbus-Domoticz-plugin/plugin.py', function onHeartbeat
2019-11-14 10:29:57.624 Error: (power Modbus) ----> Line 392 in '/home/pi/domoticz/plugins/SDM120Modbus-Domoticz-plugin/minimalmodbus.py', function read_float
2019-11-14 10:29:57.624 Error: (power Modbus) ----> Line 697 in '/home/pi/domoticz/plugins/SDM120Modbus-Domoticz-plugin/minimalmodbus.py', function _genericCommand
2019-11-14 10:29:57.624 Error: (power Modbus) ----> Line 795 in '/home/pi/domoticz/plugins/SDM120Modbus-Domoticz-plugin/minimalmodbus.py', function _performCommand
2019-11-14 10:29:57.624 Error: (power Modbus) ----> Line 930 in '/home/pi/domoticz/plugins/SDM120Modbus-Domoticz-plugin/minimalmodbus.py', function _communicate
I'm running Domoticz on a Pi3+, installed and compiled on the system.
Connected to my energy meter via P1 on USB0 working fine
My Eastron SDM72D-M connected via USB-RS485 on USB1
Found some settings in plugin.py te correct like USB port and in minimalmodbus.py sstandard speed from 19200 to 9600(Standard)
Whatever I'm doing, no result.
Please help
Regards,
Rene
Reading the above quoted text (correct me if misunderstood) I have the feeling of a misunderstanding of the operational concept of the RS485-Bus:The SDM72 with address 2 and SDM120 with 1.
The SDM72 for monitoring the electric consumption of the unit outside of the heat pump and the SDM120 for the inner part.
The speed/baud is different; 9600 and 2400, therefore I use two RS485-USB converters, with static USB port, because of the lack of an unique ID.
The easier solution gave the best result.Toulon7559 wrote: ↑Sunday 28 June 2020 16:09 - The easier solution is to set both Slaves at the same speed for communication: the data protocol for both SDMs has commands to change the speed of communication.
Thank you for this really useful remark with a tiny link referring to 'all you should know about RS485'.Toulon7559 wrote: ↑Sunday 28 June 2020 16:09
Note: Small other detail, but an RS485-Bus must be properly terminated for correct operation, according to the bus-spec.
Otherwise possibly 'surprises'.
Users browsing this forum: No registered users and 1 guest