Coder Social home page Coder Social logo

venusos_acload_prioritize's Introduction

Victron Venus OS: Prioritize AC load over battery charge

Victron Venus OS addon: Prioritize AC load over battery charge in ESS mode 1 when the batteries are empty.

The script is used in an ESS mode 1 environment where the PV power is mainly used for the AC loads (=household) and to charge the battery. The battery delivers the power for the AC loads during the night.

On cloudy days with almost no sun, all PV power is directly needed by the AC loads.

Default behaviour of Venus OS

When the battery SOC is <= Minimum SOC (unless Grid fails), discharging is stopped and ESS status #1 is active.

grafik

When the battery is re-charged to minimum-soc + 3, ESS status #1 is deasserted and discharging is re-enabled.

In case PV power is lees than AC load power, the battery will be discharged immediately again (with up to maximum inverter power). This results in continuous charge-discharge cycles of around 3%.

In addition to the charge-discharge losses, the battery is unnecessarily loaded and the discharge capacity is not limited.

Script behaviour

The script controls the Maximum inverter power setting over DBus: com.victronenergy.settings, /Settings/CGwacs/MaxDischargePower, see Victron DBus.

  1. When the battery SOC is < Minimum SOC (unless Grid fails), the inverter power is set to 0, what effectively stopps the discharge (ESS status #7).
  2. When the battery SOC is in the range from Minimum SOC to Minimum SOC + 5, then the inverter power is set to ~80% of the PV power (when PV power > 100W, otherwise 0%). The value 80% is used so that the battery is not discharged despite conversion losses.
  3. When the battery SOC is in the range from Minimum SOC + 5 to Minimum SOC + 10, then the inverter power is set
  • A) in charge phase to ~80% of the PV power (when PV power > 100W, otherwise 0%),
  • B) in discharge phase to 50% of the maximum power.
  1. When the battery SOC is above Minimum SOC+10, the inverter power will be slowly increased to the maximum.

User settings

  1. The VenusOS setting Maximum inverter power is controlled by the script and can't be used anymore in the GUI.
  2. Minimum SOC (unless Grid fails) shoud be set to 5% below the desired limit
  3. The maximum inverter power should be set in the Python script self._max_discharge_power (approx. line 34)

Venus OS daemon service

The script is running as a daemon service. Detailed instructions on how to add a new daemon service can be found on Victron's website, see chapter 'Adding or modifying services': Adding or modifying services

And here is a link to the daemon tools used. It is helpful to know their syntax: daemontools.

venusos_acload_prioritize's People

Contributors

t0bias-r avatar

Stargazers

Christian F5UII avatar Lukáš Prokop avatar Matej Sekoranja avatar Markus Niemann avatar  avatar Stefan Bärthel avatar Uli avatar  avatar

Watchers

 avatar

Forkers

keshwarsingh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.