izak / ib.victron

9 stars 4 forks source link

Force inverter switch on/off batteries #4

Open sanitariu opened 2 years ago

sanitariu commented 2 years ago

Hello, Your project is very good. Working as expected. Do you know an easy way to add a command we can send to the inverter so it switches from batteries to AC main and then the opposite. Lets say I am watching: Battery Voltage 27.03 V. When i see for example voltage 26.0V i want to force the inverter to switch to AC mains. Then later when i see Battery Voltage 27V i want to force the inverter to switch to batteries again. Yes i know this can be done from victron panel but i would like this done from linux. I have Lifepo4 batteries which i monitor from other linux scripts. Victron charger is off.

Regards, Todor

sanitariu commented 2 years ago

This is the output from monitor


Inverter mode Bypass Mains Voltage 235.21 V AC output Voltage 235.21 V Battery Voltage 18.93 V Discharge current 0.0 A DC Power draw 0.0 W AC Power draw 444.5469 VA

Actually I need only to set Inverter mode. (Bypass and Inverter). Do you have any idea how this can be achieved ?

sanitariu commented 2 years ago

I see that there is already a function set_state but i do not know how to use it. Seems like if i can set_state 8 will solve what i want. Please, guide me how to do it ?

sanitariu commented 1 year ago

I have tried many things but seems like set_state does not work. I hope writer will look at this some day and fix it. I can supply remote testing with Victron 1200 model. Just contact me.