Closed camel1cz closed 1 year ago
The connector for modbus RS485 is described in the manual: https://github.com/SmartEVSE/SmartEVSE-3/blob/main/manual/SmartEVSEv3_install_v3.0.pdf
You should wire your EVmeter just like you would wire a sensorboxin the manual, so the lower lwft connectioms connect A, B and ground to the respective connections of your EVmeter. When you select Smart or Solar mode you can configure a MainsMeter and an EVMeter on the LCD screen. It is unusual to connect an EVMeter without installing a Mainsmeter.
Thank you! I'll give it a try hopefully tomorrow...
It is unusual to connect an EVMeter without installing a Mainsmeter.
Hmm, I want to use the SmartEVSE like this:
Don't know if it's possible nor anyone using SmartEVSE like this.
Yes, only in Normal mode, and Yes. You would run in Normal mode anyways if you have no Mainsmeter installed, just put in in Smart mode to configure your EVmeter and back to Normal mode after that.
I am also trying to connect an Eastron Modbus sdm630 but have not been successful. I use the mains meter API so the EV meter is the only Modbus device I am using. I have only connected a and b for Modbus, is the ground necessary?
The mains meter values work perfectly but I cannot get the EV meter readings.
Any thoughts? Update: Wait, I just found the other issue concerning debug not working. The fix is described there: when API is used for mains meter Modbus is not initialised. When you comment the line: //if(MainsMeter == EM_API) return;
it works perfectly.
I too would like to be able to start, stop charging and set the charging current from HA.
My connection is only 1x35A so I use the smart mode with a sensorbox. However, it is then no longer possible to set the charging current.
When I charge at 32A there is a voltage drop of 10V in my house and despite the fact that I have connected everything with 6mm2 cables, quite a bit of heat is noticeable. To limit losses I would like to charge only with 25 or 16 A. However, sometimes it is urgent to load the 32A.
My Eastron SDM120CT-MV still worked well with the original firmwere. With release v1.5.3 only the EV Meter currents are visible, Power, total and charged kwh remain at 0.
Thank you for this project, it has been a very educational process for me
SDM120 and SDM230 use other addresses. We should have 2 definitions, Eastron1P and Eastron3P
See https://github.com/SmartEVSE/SmartEVSE-2/issues/4 and https://github.com/reaper7/SDM_Energy_Meter/blob/2d6b9935306553975031dc309df3d3a63551cffa/SDM.h#L103
You could try to configure an EM_CUSTOM meter; I am not sure what the implications on the total algorithm are, and since I cannot test it in real life Im not going to touch this...
On another topic: in NL changing from 1x32A or 1x40A to 3x25A is free, and fits better modern electricity usage, so you might opt for that...
Not free :-(( , "1-phase to 3-phase: you have 1x10A/1x20A/1x25A/1x35A - you want 3x25A (or higher up to 3x80A) €334.58".
And with all the problems on the power grid, we might also pay for maximum peak use, just like in Belgium. Unfortunately Load balancing is the way to go.
Call them. E.g. Liander has a goal to get away from 1 phase connections. They moved me and my 3 neighbours from 1x40A to 3x25A for free... but that was 10 years ago. And they had the same rates on the website then....
EDIT: I remember this had to do with the fact that me and my 3xneigbours shared the same cable to the network. My house was connected to the grid, the other houses were connected to our house (we all had our own meter). This situation was considered unwanted or even illegal...
@fluppie @royspeed Ok I was tempted to make a test version anyways; remember this is UNTESTED, so I need you guys to test this thoroughly, by looking at the values presented at the http://your-ip/settings page:
Have fun! UNTESTED-master-20230310+eastron1p.zip
I have uploaded it to my SmartEVSE, only the sign is wrong. Current is - at the moment because of solar.
While charging (current is + at the moment):
So power and charged kWh work now. What did you exactly change? Normally changing this: https://github.com/serkri/SmartEVSE-3/blob/7f8410b541434f854651db74237ad0cdadfbe013/SmartEVSE-3/src/evse.cpp#L225 is enough. The code ignores if L2 and L3 are not received by the modbus read stuff. So normally you should not change that part.
@fluppie , I pushed my changes to branch "UNTESTED-eastron-1p" so you can look at the changes I made.
Just to be 100% clear:
SDM230 Yes Yes Yes :-)
I think you can keep the same code for Eastron3P as for Eastron1P, maybe completing the loop for some reason gets the minus there?
UNTESTED-master-20230310+eastron1p+testing-current-fix.zip
It wouldn't make sense to me, but test this version... I pushed the (possible) fix to the branch so you can keep track of the changes.
Hilarious but it works, I also don't really get why. I'll try charging but battery is 100% atm.
Triggering the heating can trigger charging :)
Ok so currents, power, and energy are all ok now?
Yes indeed.
Ok thx I will merge it into master in a few weeks....
for my SDM120CT-MV there is no change. Still no power data.
You have to go into the menu and change EV Meter Eastron3P to the Eastron1P ;-). Also the currents of your EV meter are minus? The EV meter needs to be a positive sign?
Call them. E.g. Liander has a goal to get away from 1 phase connections. They moved me and my 3 neighbours from 1x40A to 3x25A for free... but that was 10 years ago. And they had the same rates on the website then....
EDIT: I remember this had to do with the fact that me and my 3xneigbours shared the same cable to the network. My house was connected to the grid, the other houses were connected to our house (we all had our own meter). This situation was considered unwanted or even illegal...
Long phone calls with Liander. According to the employee, an upgrade from 1x35 to 1x40A is free. So request this one. Have to wait 3 months.
Maybe I can make a cheaper deal with the mechanic, everything is already connected only 2 extra fuses need to be installed. Strange that they charge 340 euros for that.
@fluppie
fantastic! It seems to be working fine now. Stupid of me, the smd120m meter was indeed connected incorrectly (L in- L out).
@fluppie @royspeed Guys I need you to test again; I find it a problem that every time I add a new meter configuration, some people will see their configuration messed up when they upgrade to a new firmware version; e.g. your eastron1p would now be the default for everybody who had an EM_CUSTOM meter configured in the past; they would only notice it because of errors and then have to find out themselves they have to reconfigure their mainsmeter and/or evmeter and/or pvmeter.
To prevent this I added some empty slots in the firmware; I also had to add some logic to prevent people choosing those empty slots.
So my question to you guys is, would you please test the attached firmware, ESPECIALLY on your LCD screen, when you step through the possible options for your meter type, that after the option eastron1p NO unused slots are shown but ONLY the EM_CUSTOM option can be selected? Please test this for MainsMeter, EVMeter and PVMeter.
I didn't change anything in the 1P logic but you might want to check your outputs anyways...
Thanks in advance! eastron1p+empty-slots.zip
@dingo35, I have on the LCD screen:
MAINSMET: Sensorbox, Phoenix C, Finder, Eastron3P, InvEastrn, ABB, SolarEdge, Wago, API, Eastron1P, Custum, Sensorbox.
EV METER: Eastron1P, Custom, Disabled, Phoenix C, Finder, Eastron3P, InvEastrn, ABB, SolarEdge, Wago, Eastron1P.
I did not have a PVMeter in my setup. I have artificial thatch on my roof. I haven't been able to find an installer yet.
All data looks correct.
I confirm the same order as @royspeed
@royspeed @fluppie thank you guys!
Merged into release 1.5.5
Hello,
I started to use SmartEVSE3 with original FW and quickly switched to serkri fork with great results. Basic functions work fine same as HA integration. Thank you!
My question (rather ask for help/explanation) is about connection of EV meter. I have dedicated EV meter in the junction box of the SmartEVSE which can provide data via modbus/RS485.
The question is if it is possible to connect the modbus EV meter to SmartEVSE and read at least energy consumed (kWh) to the car? And if yes, then how to do it? How to wire the A/B and what to set in the SmartEVSE.
It would be nice to avoid fiddling with ESP just because of this... I saw a lot of notes about possibility to connect EV meter, but there is also mentioned smartbox, smartbox2, no need of smartbox, P1 connector, A/B/GND on the low power connector - sorry buddies, I'm confused and lost.
Could someone help me? Thanks a lot!