Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/time reserve battery triggering #56

Merged
merged 5 commits into from
Jan 21, 2025

Conversation

atbore-phx
Copy link
Owner

issue: #47

  • battery_reserve_charge_start_hr (if empty default: start_hr)
  • battery_reserve_charge_end_hr (if empty default: end_hr)

These will be exposed in the add-on configuration to allow customization.

For every crontab occurrence t, if the PW_battery_reserve is not met, SBAM will charge the reserve only when:
start_hr <= PW_battery_reserve_charge_start_hr <= t <= PW_battery_reserve_charge_end_hr <= end_hr.

@atbore-phx atbore-phx self-assigned this Jan 19, 2025
@atbore-phx atbore-phx added this to the V1.4.0 milestone Jan 19, 2025
@atbore-phx atbore-phx force-pushed the feat/time-rerve-battery-triggering branch from 5f5ab16 to c98ceae Compare January 19, 2025 16:07
@atbore-phx atbore-phx changed the title Feat/time rerve battery triggering Feat/time reserve battery triggering Jan 19, 2025
Copy link

codecov bot commented Jan 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.70%. Comparing base (7068f5a) to head (1beb034).
Report is 1 commits behind head on release/v1.4.0.

Additional details and impacted files
@@               Coverage Diff               @@
##           release/v1.4.0      #56   +/-   ##
===============================================
  Coverage           98.70%   98.70%           
===============================================
  Files                  10       10           
  Lines                 309      309           
===============================================
  Hits                  305      305           
  Misses                  4        4           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@atbore-phx atbore-phx changed the base branch from main to release/v1.4.0 January 19, 2025 16:08
@atbore-phx atbore-phx force-pushed the feat/time-rerve-battery-triggering branch from c98ceae to c2a683e Compare January 19, 2025 16:10
@atbore-phx atbore-phx mentioned this pull request Jan 19, 2025
@atbore-phx atbore-phx force-pushed the feat/time-rerve-battery-triggering branch from 9715278 to c70e4a3 Compare January 20, 2025 17:08
@atbore-phx atbore-phx force-pushed the feat/time-rerve-battery-triggering branch from 126cc2d to 14dc7fe Compare January 20, 2025 18:07
@atbore-phx atbore-phx merged commit ec6eebb into release/v1.4.0 Jan 21, 2025
4 checks passed
atbore-phx added a commit that referenced this pull request Jan 22, 2025
* feat(init): init release v1.4.0

* feat(fronius::schedule): Net power available is derived from the reserve rather than the actual battery capacity (#55)

* Feat/time reserve battery triggering (#56)

* feat(fronius::schedule): The reserve battery is now charged based on time

* feat(params): tuning parameters

* feat(doc): adding doc

* feat(ha): fixing regexp

* Update DOCS.md

* fix(ha): adding start and end battery reserve hours for export

* feat(fronius::schedule): Adding hysteresis logic when charging (#57)

* feat(fronius::schedule): Adding hysteresis logic when charging

* fix(doc): adding doc

* Update DOCS.md

* fix(test): fix test build script dir

* fix(forecast): if forecast site is unavailable disable forecast charging only (#58)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant