Skip to content

Battery_sim 2.4.0: Average energy value

Choose a tag to compare

@dewi-ny-je dewi-ny-je released this 05 Jun 09:59
3a23b28

New Features

  • Introduce a minimum user-selectable SOC in the battery settings (default to 10%), since that's how real batteries work.
  • Add a monetary stored-energy value model that is updated on charge, discharge, degradation and resets with the battery. Only energy above the minimum user-selectable SOC is tracked, since energy which cannot be discharged has no value.
  • Expose an average energy value sensor representing the monetary value per kWh of the energy currently stored, with persistence and restoration support.
  • Introduce a battery_sim.set_stored_energy_value service to manually set the total stored-energy value (total, not average!) for a given simulated battery device.

Documentation

Document the new average energy value sensor, how its value is computed from tariffs and efficiencies, and how to adjust it via the new service.

Full Changelog: v2.3.0...v2.4.0