ErwinRieger / venus-os_dbus-up5000-hybrid

Venus-os dbus driver for a Offgridtec_IC-24_IC-48 hybrid pv inverter, some epever/whatever up5000 clone.
GNU General Public License v3.0
0 stars 0 forks source link

Install script #1

Open Cyberb29 opened 10 months ago

Cyberb29 commented 10 months ago

Hello,

Pretty cool what you have done here, since it grabs info from RS485 im curious to see if this would work with other inverter brands too. You should create a service that installs this for you, perhaps this can be introduced to be installed via Package Manger from KWindrem

Kind regards,

Cyberb29 commented 10 months ago

Good day,

So I installed this on a RPI 3b+ and was running Venus OS 2.94 is your Python scripts written in Python 2 or 3?

I did actually also end up testing this on my deye/sunsynk inverter, did not work unfortunately, I was not expecting it to but was trying my luck.

You should create a service like this for Sunsynk/Deye inverters, a lot of users looking for this Integration and you seem like the person with the skills to do it.

Kind regards

ErwinRieger commented 10 months ago

Hi @Cyberb29, thanks for your comments :-)

Yes, you are right, setting it up using a "installer" like SetupHelper would be nice. Currently it's installed manually by copying and linking files around. Maybe i create one, if there is enough demand for it...

Is using python3, i've updated the readme about this.

I am running venus-os v2.89 (on a raspi), don't know if it works with newer versions.

About your tests with a deye inverter:

Feel free to ask more questions/give more suggestions.

Kind regards :-)

Cyberb29 commented 10 months ago

Good day,

Yes I make use of a USB 2.0 to TTL Serial RS485 converter, far better than the one Victron supplies, under normal circumstances it picks it up as ttyUSB1 but since I have a Victron MPPT connected via USB TO VE.Direct it picks it up as ttyUSB0. When using "dmesg" it also picks up ttyUSB0 and ttyUSB1

I have done what I can in terms of copying and creating the files in cd /data/dbus-up5000-hybrid, I have also chmod +x __ to make the files executable but when I try to ./run in service it given some unable to start error, but its probably me just being a noob lol.

Kind regards

ErwinRieger commented 10 months ago

Hi,

what's the output/error(s) you get? Can you capture the output and post it here?

You can try running it manually, using: python3 /dbus-up5000-hybrid.py ttyUSBx

For example: python3 /opt/victronenergy/dbus-up5000-hybrid/dbus-up5000-hybrid.py ttyUSB0

:-)

zadraveca commented 5 months ago

Hi, this is exactly what I need. I have Upower up3000 and i think it should work for me also... But I am not very used to this and I can not figure out, where to put files. I copied everything to: /opt/victronenergy/dbus-up5000-hybrid/ I figured out and added run part to service dir. but now I'm lost. edited two files also, but nothing started. Manual start did work (i can see comunication to adapter, altho inverter is not connected, because it is on other location). run with TTY didn't work, so I changed to ttyUSB0 (where my adapter is) and it started comunicating, but no service is visible.


It seems to be working now, this is how I installed the module: cd /data wget https://github.com/ErwinRieger/venus-os_dbus-up5000-hybrid/archive/refs/heads/master.zip unzip master.zip cp -rfp venus-os_dbus-up5000-hybrid-master /opt/victronenergy/dbus-up5000-hybrid mkdir /opt/victronenergy/service-templates/dbus-up5000-hybrid cp -rfp /data/venus-os_dbus-up5000-hybrid-master/service/* /opt/victronenergy/service-templates/dbus-up5000-hybrid/. rm master.zip

I left the venus-os_dbus-up5000-hybrid-master dir in data to reinstall after Venus OS upgrade

edited files

reboot

I didn't test it with inverter yet...