Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nodejs integration #24

Open
martijndierckx opened this issue Jan 9, 2022 · 6 comments
Open

Nodejs integration #24

martijndierckx opened this issue Jan 9, 2022 · 6 comments

Comments

@martijndierckx
Copy link

Hi all

Just wanted to let you guys know, I'm working on an integration for Nodejs.
The first alpha version allows you to poll for all the values. It doesn't yet allow you to set them. That's for next weekend :-)

Link: https://github.com/martijndierckx/node-smartevse

@martijndierckx
Copy link
Author

I do have some trouble interpreting some of the Modbus registers. A bit more documentation on what each line does would come in handy.

@kennyschuoler
Copy link

kennyschuoler commented Jan 10, 2022

Hey Martijn,

What more info do you need ? I can try to help you : I just wrote a first version of a custom integration for home assistant ( https://github.com/kennyschuoler/homeassistant-smartevse )

@fluppie
Copy link

fluppie commented Jan 10, 2022

@kennyschuoler what HW interface do you have towards the SmartEVSE? Modbus over TCP?

@kennyschuoler
Copy link

@fluppie i'm using a Waveshare RS232485 ( https://www.amazon.de/-/en/gp/product/B07RQSPYFV/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&th=1 ) ( mainly because this is located in my electrical box , otherwise you can also use the smaller RS485 version )
I have configured it currently with Modbus RTU over TCP , but depending on the config in Waveshare it is also possible to use Modbus over TCP ( i was able to get the values )

@fluppie
Copy link

fluppie commented Jan 11, 2022

Is this module acting as a second Modbus master? Or is it invisible to the SmartEVSE and eventual kWh meters? Myself I have 2x Eastron SDM230 for house load and EV charged kWh's. In the future one for Solar could join the party.
Would a ESP32 be able to be a RTU to TCP bridge or is your software specifically made for the Waveshare module?

https://github.com/eModbus/eModbus

@kennyschuoler
Copy link

kennyschuoler commented Jan 11, 2022

The Waveshare device is indeed acting as a second Modbus master, therefor i have to make sure that i only request data every +30 secs ( I am using the latest master branch software ).

To give you an idea : My setup contains a sensorbox v2 ( 3-phase using clamps), 2 x Smart EVSE ( master + node ) devices and 2 x Eastron SDM630 modbus v2 devices.

The sensorbox is connected via RS485.

I also have solar panels with an energy meter, but this is completely isolated.

The 2 eastron devices i have connected to 1 Waveshare device, and the other Waveshare device contains the 2 Smart EVSE devices and the sensorbox. They share the exact same configuration, so it should be able to connect them all to the same device.( just make sure that the eastron devices use an unused modbus address )

And to answer your last question, the Waveshare is just a proxy device to transmit the serial data over TCP ( to use it somewhere else ), which can be replaced with something else.

Hope this helps !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants