@TomTomTom
I can confirm Modbus on the SDM630 works in the 1p2w settings as well.
Waveshare settings that I used:
Work mode: TCP Server.
Protocol: Modbus TCP to RTU
With that I tested if I could pull data using other tools first. With QModMaster I was able to pull data (0x04), Unit ID to what you set the SDM630 to, Start address 200, nr of registers 2, data format float, precision 3. This gave an output of 237 which is the L1 Voltage.
After this I got it to work on the Raspberry that has HASS installed. First I tried to replicate above using a Modbus integration in Node-Red as this makes it easier to play around with.
it’s my first time here so forgive any dumb mistakes.
but i had the same problems as descript above, i have the feeling it’s due to the fact the baudrate is to low for the modbus to function correctly, i have the same Waveshare modbus and the SDM630, and had the same problem.
I’ve set the baudrate on the SDM630 to 38400 and in the setting of the modbus.
mine is now working perfectly without losing any data or disconnection all the time. and its responding really quick.
here is my YAML and some pics of the settings that i have used.
What do you mean? In HA configuration, or the configuration of the power meters?
Your power meters need to be configured to different addresses. Then, in HA, you basically use these addresses to talk to the devices. I am happy to share some pictures, but it would be great if you could tell a bit more on what you want to know.
Page 14 shows how to set the address on the SDM630. In HA the device address is mentioned in the YAML as ‘slave’. That is what you use to differentiate between different devices. Note that ‘address’ means a different address within a device to read different values (power, amps, volts, etc…). It is typically called coil, register, location or address.
Hello, I am concerned with how to easily add data from only one specific electricity meter to the HA control panel, when there will be more electricity meters (approx. 30 units). I would have multiple control panels in HA, each with one meter.
Thank you.
I can’t speak English, translate by Google.
Hello, I understand the address settings in the SDM630 electricity meter and the slave in YAML. I found your YAML where sdm630a and sdm630b are. How to easily create one control panel in HA for sdm630a only and another control panel for sdm630b only.
Thank you.
Excellent. If you have 30 units, that is lot. I’d love to see some pictures of that. Also, you may want to use something else then A, B, C, etc… maybe the address of the device. When doing that, you also can easily use search and replace on on the YAML.
Hello, that’s just my goal (30 pcs). I just got the SDM630 and HA connection now. My next problem is creating a network between buildings. Only some of the buildings have an Ethernet cable.
Hello,
I would like to buy a SDM630 Modbus and it seems that only the V3 version is available.
What changes between versions V2 and V3?
Do they have the same register numbers?
Thanks
I’m strugging getting data returned from my Eastron SDM630 Modbus in combination with a Waveshare RS485 to ETH (B) device. I have read all the posts above and tried many of the examples but still no result.
The error message I consistently get for all entities is:
Eastron Modbus: Error: device: 103 address: 72 -> Modbus Error: [Input/Output] ERROR: No response received after 3 retries
It seems my Waveshare device is operating as it should since I see the correct lights (Link light = blue, Active light = blue so it should be returning data). I’m using baudrate 9.6k, parity none, stop bits 1 on both the Waveshare and SDM630. I have triple checked my modbus addresses (101 and 103; in addition I have also connected a Nibe heat pump which uses address 1 and no problem in receiving data from this device).
What else have I tried in various combinations (without result):
Baudrate 38400
Protocol Modbus TCP to RTU
type ‘rtuovertcp’ as well as ‘tcp’
I notice in previous posts the use of ‘count: 2’ and ‘float32’ to specify sensors. However, I’m getting an error message when I use this (float32 already specifies 2 registers to read)
@fsfikke@jghek can you perhaps have a look at my problem … thanks in advance.
I have reset my RS485-to-ETH to factory defaults and changed the IP adress to DHCP (static 192.168.200.78), port 502, work mode ‘TCP Server’ (default), 9600 baud.
I can access the converter with Modbus Master app. However, I consistently get an Error code 2 (‘Illegal address’). See attached screenshot (modbus instruction and resulting error code visible at bottom of screenshot).
I also tried different baudrates but this didn’t make any difference.
I also tried start address 1 but this also didn’t make a difference. I attached an over view of the first few SDM630 input registers below. I still think the addresses should be even and starting from 0, 2, 4 etc.
What I did discover just now is that even with the SDM630 not connected to the RS485-to-ETH converter, the error message is still the same “Illegal address”. That strikes me as odd.
I used another modbus analyzer (QdModMaster instead of Modbus Master). QdModMaster gives more and better detail wrt response codes:
when querying the ‘modbus diagnostics’ QdModMaster clearly distinguishes between the SDM630 being connected to the gateway (response ‘Read diagnostics data failed. Error : Timeout’) or not (response ‘not connected’). My conclusion is that my SDM630 is connected.
When trying to read an address the response is consistently ‘Read data failed. Error : Timeout’
QUESTION: One earlier remark above was to swap the A and B labelled connectors (+ and -). Can I try this without damaging the gateway or SDM630?
I have 4 eastron SDM 72DM also with modbus which I have to connect to my HA Server running on a Pi 4 roughly 35m aways (cable meter).
Any recommendations what to look for and what would be usefull ?
ESP Data Collector or is there a hub that could collect the data of these 4 and send those via LAN ?
LAN and WLAN are available - otherwise I would have to lay a new 35 m long LAN cable to use its 4x twisted pair cables for the 4 eastron SDM72 meter.
yes, you can switch them around. But usually there is clear description from the meter and which pin to be use on the adapter or maybe inverter.
Might be good to show your current wiring too. Cause it is quite unusual in my opinion.
If you have the right wires connected properly then the FIRST SIGN should be that you should see a TELEPHON RECEIVER in the upper left corner, you know back from the 80s
This is a photo which I had put together to make it clear.
Right wires (usually people tend to use a LAN Cable with 4 twisted pair wires) and properly connected is key.
If you are starting always try to start with a short pair of cables first cause that makes things a lot easier.
I did it with an old LAN cable where I had cut off the RJ 45 plugs on one site and used the other RJ45 on the inverter side.
WHen that had worked for me I added a double clutch to the cable as connector cause I added a 35 m long lang cable which made a total length of 37 m. I took the LAN and went throught the rooms of the house to the inverter room to do the next checke if the SDM could communicate again this time with the inverter. Once it had worked out I started to finaly pull the wire via attic and roof as the final solution.
Hi guys,
I have this meter connected to HA and hardware/ software wise everything is working. The thing I cannot figure out is how to setup the energy meter in terms actual data… I have the meter connected at the entry of my 3 phase installation. The energy can flow in and out. My question is:
Which registers exactly, and how recalculated, can be used to get the actual balance of energy (in kWh) that is present at the moment? I mean here, there must be a better way than integrating the power on each phase and summing it? The thing I dont get about this meter is why is it summuing the import anx export kWh values instead of subtracting one from another.
Also, how to hook it up with the Energy panel in home assistant?