Releases: woopstar/hsem
v3.0.0-beta5
Full Changelog: v3.0.0-beta4...v3.0.0-beta5
v3.0.0-beta4
Full Changelog: v3.0.0-beta3...v3.0.0-beta4
v3.0.0-beta3
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
Full Changelog: v3.0.0-beta1...v3.0.0-beta2
v3.0.0-beta1
What's Changed
Full Changelog: v2.2.0...v3.0.0-beta1
v2.2.0
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
🐛 Bug Fixes
What's Changed
Full Changelog: v2.1.1...v2.2.0
v2.1.1
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
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
- #78 build(deps): bump isort from 5.11.5 to 5.13.2 @dependabot
- #77 build(deps): bump homeassistant from 2024.12.0 to 2024.12.3 @dependabot
- #76 build(deps): bump black from 24.8.0 to 24.10.0 @dependabot
What's Changed
Full Changelog: v2.0.1...v2.1.0
v2.0.1
v2.0.0
⚒️ 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:
- Negative import price
- Surplus (net_consumption < -0.5 kWh)
- 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