Skip to content

Battery_sim 2.4.0: Average energy value

Choose a tag to compare

@dewi-ny-je dewi-ny-je released this 17 May 20:03
1c2df19

Track and expose the monetary value of energy stored in the simulated battery, including a new average value sensor and a service to manage it.

New Features

Add a monetary stored-energy value model that is updated on charge, discharge, degradation and resets with the battery.
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 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.

What's Changed