Skip to content

Releases: woopstar/hsem

v3.0.0-beta5

20 Jan 10:35
Compare
Choose a tag to compare
v3.0.0-beta5 Pre-release
Pre-release

v3.0.0-beta4

20 Jan 10:18
Compare
Choose a tag to compare
v3.0.0-beta4 Pre-release
Pre-release

v3.0.0-beta3

17 Jan 09:27
Compare
Choose a tag to compare
v3.0.0-beta3 Pre-release
Pre-release

How to Calculate the Minimum Charging Price for a Battery Schedule

When scheduling charging for your battery system, it's essential to account for the battery wear cost. The cost, referred to as depreciation per kWh, depends on the purchase price, the expected capacity loss over the battery's lifetime, the number of cycles, and the battery's capacity.

Formula for Depreciation per kWh

To calculate the depreciation cost for each kWh of energy cycled through the battery, use the following formula:

Depreciation per kWh = (Purchase Price * Capacity Loss) / (Number of Cycles * Capacity)

Example Calculation

Assume the following parameters:

  • Purchase Price: 48,000 DKK
  • Capacity Loss (Degeneration): 30% (0.30)
  • Number of Cycles: 6,000
  • Capacity: 10 kWh

Using the formula:

Depreciation per kWh = (48,000 * 0.30) / (6,000 * 10)
Depreciation per kWh = 14,400 / 60,000
Depreciation per kWh = 0.24 DKK / kWh

Conclusion

For it to be economically viable to charge the battery, the price difference between charging and discharging must exceed 0.24 DKK per kWh. This ensures that the revenue generated from using the battery offsets the cost of its wear.

Full Changelog: v3.0.0-beta2...v3.0.0-beta3

v3.0.0-beta2

15 Jan 10:02
Compare
Choose a tag to compare
v3.0.0-beta2 Pre-release
Pre-release

v3.0.0-beta1

14 Jan 21:34
Compare
Choose a tag to compare
v3.0.0-beta1 Pre-release
Pre-release

What's Changed

Full Changelog: v2.2.0...v3.0.0-beta1

v2.2.0

23 Dec 20:13
dabc171
Compare
Choose a tag to compare

Changes

This change fixes the function that finds the best time to charge the battery. There was an error in the function that did not use the hours correctly if negative net consumption was available, meaning we had surplus power from the solar system to charge the battery.

It contains two new commendations:

  • batteries_charge_solar: Now used when the battery will charge from solar power solely

  • batteries_charge_grid: Now used when the battery will charge from the grid. This recommendation will also be used if solar power is available but not enough.

  • force_batteries_charge: This recommendation has now been removed.

Dashboard / Visualisation

Regarding issue #30, an available Apexchart will now show the recommendations during the day. Look at the Wiki for more information:

https://github.com/woopstar/hsem/wiki/Dashboard

⚒️ Breaking Changes

  • #83 fix: update _async_find_best_time_to_charge and recommendations @woopstar

🐛 Bug Fixes

  • #83 fix: update _async_find_best_time_to_charge and recommendations @woopstar

What's Changed

Full Changelog: v2.1.1...v2.2.0

v2.1.1

18 Dec 16:33
d3ac134
Compare
Choose a tag to compare

Changes

🐛 Bug Fixes

📦 Dependencies

  • #80 build(deps): bump homeassistant from 2024.12.3 to 2024.12.4 @dependabot

What's Changed

Full Changelog: v2.1.0...v2.1.1

v2.1.0

17 Dec 10:54
3cff586
Compare
Choose a tag to compare

Changes

🚀 Features

  • #79: fix: update translations @woopstar
  • #79 fix: add hsem_extended_attributes and hsem_verbose_logging switches @woopstar
  • #79 fix: add hsem_extended_attributes and hsem_verbose_logging switches @woopstar
  • #79 fix: add minimum version check for huawei solar integration @woopstar

🐛 Bug Fixes

  • #79 fix: ha_get_entity_state_and_convert did not throw errros correct @woopstar
  • #79 fix: do not check for entities not defined in the EV flow @woopstar
  • #79 fix: fix bugs in working mode and house sensors logic @woopstar

📦 Dependencies

What's Changed

Full Changelog: v2.0.1...v2.1.0

v2.0.1

13 Dec 10:41
a866e52
Compare
Choose a tag to compare

Changes

🐛 Bug Fixes

  • #75 fix: minor bug in _async_find_best_time_to_charge @woopstar

What's Changed

Full Changelog: v2.0.0...v2.0.1

v2.0.0

06 Dec 17:39
f5c4e59
Compare
Choose a tag to compare

⚒️ Breaking Changes

Calculate AC Charge Cutoff %
HSEM will now calculate the AC Charge Cutoff percentage based on the surplus available from solar panels. If we have a surplus available after we force the battery to charge, we will decrease the percentage we charge to accommodate this and hence only charge what is needed.

Implement pricing checks
The working mode sensor will now contain additional attributes about pricing, such as:

  • is_night_price_lower_than_morning
  • is_night_price_lower_than_afternoon
  • is_night_price_lower_than_evening
  • is_night_price_lower_than_late_evening
  • is_afternoon_price_lower_than_evening
  • is_afternoon_price_lower_than_late_evening

Implement Home Assistant config validation
There is now more validation in the configuration and options flow to ensure you enter correct sensor information, etc., when setting up the HSEM integration.

Add descriptions to input fields in config flow
In the configuration and options flow, there are now descriptions for each input field, making what to enter or select clearer.

Re-do the get_config_value method
The get config value has been redone to streamline the code and make it easier to set default values.

Update priority of when to charge battery
The priority for force charging the battery now also looks for negative import prices and surplus available. It will use the following sorting each hour by priority:

  1. Negative import price
  2. Surplus (net_consumption < -0.5 kWh)
  3. Lowest import price

'hsem' sets option flow config_entry explicitly, which is deprecated
The option flow used a deprecated functionality that has now been resolved to ensure HSEM continues working.

Implement update interval
It is now possible to set the update interval for the working mode sensor. It defaults to every 5 minutes. It can be configured between 1 and 59 minutes.

Implement controls
HSEM now has controls for Read Only, charging during the day and/or night, and the interval between charges.

Feedback

Please report any feedback or issues at #24

What's Changed

Full Changelog: v1.2.5...v2.0.0