solmoller / eversolar-monitor

Script to capture data and create statistics from Eversolar/zeversolar Solar Inverters. Includes easy install image files for Raspberry Pi. Working edition since 2012 :-)
https://github.com/solmoller/eversolar-monitor/blob/wiki/Introduction.md
MIT License
30 stars 20 forks source link

RS485 to USB converter #71

Closed tobiasnorbo closed 5 months ago

tobiasnorbo commented 5 months ago

Hi,

I'm sorry, but I don't know, where else to ask this. Would this converter be sufficient? And in that case, how would you connect the wires of an RS485 cable?

https://raspberrypi.dk/produkt/industriel-usb-til-rs485-bidirectional-converter/

solmoller commented 5 months ago

That looks promising. Please let me know if it works

In addition, if you use a new rpi with current OS, i'd like to hear if the installation procedure needs updating. The old sd card image is outdated.

I run on an updated RPI4, but the OS is highly modified for other purposes

BR Henrik

ons. 1. maj 2024 21.04 skrev tobiasnorbo @.***>:

Hi,

I'm sorry, but I don't know, where else to ask this. Would this converter be sufficient? And in that case, how would you connect the wires of an RS485 cable?

https://raspberrypi.dk/produkt/industriel-usb-til-rs485-bidirectional-converter/

— Reply to this email directly, view it on GitHub https://github.com/solmoller/eversolar-monitor/issues/71, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQL6ECZRBVWU6TNEY5R5I3ZAE4EVAVCNFSM6AAAAABHCNGPDWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGI3TIMBSGMYDKNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

tobiasnorbo commented 5 months ago

I will let you know. I was just concerned, that there is only A+, B- and GND on this converter. Which wires would I connect to these?

I have bought a RPI2 B used, so I am not able to provide input on that part just yet :)

solmoller commented 5 months ago

That is in the WIKI

ons. 1. maj 2024 21.40 skrev tobiasnorbo @.***>:

I will let you know. I was just concerned, that there is only A+, B- and GND on this converter. Which wires would I connect to these?

I have bought a RPI2 B used, so I am not able to provide input on that part just yet :)

— Reply to this email directly, view it on GitHub https://github.com/solmoller/eversolar-monitor/issues/71#issuecomment-2088994799, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQL6EBWNLXKNOESB3RB72TZAFAKDAVCNFSM6AAAAABHCNGPDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBYHE4TINZZHE . You are receiving this because you commented.Message ID: @.***>

tobiasnorbo commented 5 months ago

I figured it out. I should have used "serial" and not "eth2ser".

It works great now. But if you read this. Could you point me in the direction of how to get this into HA. And is there a way to shut the inverter down or stop export to grid?

solmoller commented 5 months ago

Great!

Yes, latest version can do HA, and we have an open issue on limiting the inverter

Good news: you can throttle the thing!

tors. 2. maj 2024 19.52 skrev tobiasnorbo @.***>:

I figured it out. I should have used "serial" and not "eth2ser".

It works great now. But if you read this. Could you point me in the direction of how to get this into HA. And is there a way to shut the inverter down or stop export to grid?

— Reply to this email directly, view it on GitHub https://github.com/solmoller/eversolar-monitor/issues/71#issuecomment-2091166705, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQL6EG7CIKD23DIFHNJD33ZAJ4MXAVCNFSM6AAAAABHCNGPDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJRGE3DMNZQGU . You are receiving this because you commented.Message ID: @.***>

tobiasnorbo commented 5 months ago

That sounds great! I am looking forward to that addition, so we can help the grid, when there is too much solar power on it.

Do you have a link to some documentation on getting the data into HA? The Danish forum that the wiki links to is not available anymore.

solmoller commented 5 months ago

I just updated the Wiki, it's MQTT that does the trick

And as for throttling, I have other projects, so I doubt I'll find time. Maybe you can lend a hand?

I am also interested in hearing what you went through to install on modern RPI

BR

Henrik

solmoller commented 5 months ago

Throttling is #66 - so you used the image in an RPI2 with success?

tobiasnorbo commented 5 months ago

Thanks a lot. I will look into the wiki and get HA up and running.

I would be happy to contribute, but I'm not sure I will get it to work, since my coding skills are limited.

And yes, I succeeded in using the image for the RPI2, and to complete the hardware I successfully used:

The rs485 converter in question for this 'issue', and it worked perfectly. See link below. http://www.waveshare.com/wiki/USB_TO_RS485

Other hardware used was: RaspberryPi 2B from 2015 RasPiKey 16gb, I was concerned about the lifetime of the SD cards, so chose this eMMC module version of a SD card: https://www.uugear.com/doc/RasPiKey_UserManual.pdf

Thanks a lot for all the help

solmoller commented 5 months ago

I can recomment trying! That's what got most of us up and things to work. I think ChatGPT and some debuging could make vast strides. The big issue is getting data into the system and throttling - that depends on your other hardware, so I'd go for extracting a HA variable.

tobiasnorbo commented 5 months ago

Just a small update.

I am not able to install musquitto on the Raspbberry wheezy version, that is part of the img file. So I will need to backup the files and upgrade to a newer OS.

I will therefore suggest that the wiki explains, that it is suggested to run on a newer RPI and not use the img file if you want to use MQTT for HA integration.

Right now I run HA on a RPI5, and the eversolar script on RPI2. But I am considering to execute both on the RPI5, now that I am running into these problems.

solmoller commented 5 months ago

Thanks! I have updated the Wiki

I did a crash installation on my RPI4, simply by adding modules as the perl script failed. I did not write down the work though..