-
-
Notifications
You must be signed in to change notification settings - Fork 14
Feature: add dynamic battery energy price from Home-Assistant/OpenHAB #172
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
Feature: add dynamic battery energy price from Home-Assistant/OpenHAB #172
Conversation
e5891b4 to
c6f66e7
Compare
c6f66e7 to
9169b5c
Compare
…on - fixes Max grid charge rate wrong calculation Fixes ohAnd#171
Files changed: M src/version.py
|
nice idea / extension ... before we going deeper - I'm currently more interested in how your battery costs are calculated/aggregated for provisioning – it would have to be some kind of rolling average over the last few charging cycles regarding PV charging (~0 ct) vs. grid charging at the current price (while charging), in order to represent the cost per Wh of the current battery capacity. Can you explain a little in this direction - also with the idea to extend the feature directly to external / internal / fixed ... |
…rge_demand method - fixes Override Charge funktioniert nicht mehr unter EOS Connect develop Fixes ohAnd#173
Files changed: M src/version.py
…ion in get_pv_akku_data function - fixes part 2 of evopt lädt zu wenig/langsam Fixes ohAnd#167
…ogic and updating related MQTT topics to reflect final states after overrides - fixes Missing State in HA for Allow Discharge EVCC Fixes ohAnd#175
Files changed: M src/version.py
…obustness against None values and API errors - closes ohAnd#178 [FIX] catch more exceptions in main loop
…itial SOC clamping
|
@rockinglama ... ping ;-) |
…compatibility and user experience - fixes Copy to clipboard funktioniert nicht Fixes ohAnd#180
…n_max_charge_power_w for consistent value conversion - fixes evopt lädt zu wenig/langsam Fixes ohAnd#167
Files changed: M src/version.py
Files changed: M src/version.py
…b.com/rockinglama/eos_connect into pr/rockinglama/172
|
Sorry for the late response. I was a little busy the last few weeks. This is all still work in progress, but working pretty well so far. My battery is never discharged below ~15%. |
|
@rockinglama I've refactored a little to have reuse inner battery interface and removed the second config param for source ... usually either HA or OH if used by external source ... and if no sensor name is given the fixed one will be used For the other topic "internal generation of battery price" I will create a new issue to discuss further... |
Summary
EOS currently supports only a fixed battery energy price.
This change allows
price_euro_per_wh_accuto be provided dynamically by a sensor in Home Assistant or an item in OpenHAB, instead of only from static configuration.In my setup, a Home Assistant entity exposes the current cost of using stored battery energy, which improves forecasting and decisions about when to draw from the grid versus the battery, this is especially helpful during darker months with limited PV production.
Key Changes
price_euro_per_wh_accufrom config/home-assistant/openhabCompatibility
Fully backward compatible: the default remains the static
price_euro_per_wh_sourceset in the config file, so existing setups continue to work unchanged.Special notes for the reviewer
I verified the Home Assistant path end-to-end.
I implemented but could not manually test the OpenHAB path, as I don’t have an OpenHAB installation available.
The ha_addon config should be updated as well to expose these new options.
I’m happy to open a follow-up PR there if this feature is generally accepted.