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

[BUG] Solar production calculation incorrectly sums the whole available interval of the source sensor when 'day' is selected. #149

Open
nmartin9319 opened this issue Jan 8, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@nmartin9319
Copy link

[BUG] Solar production calculation incorrectly sums the whole available interval of the source sensor when 'day' is selected.

The daily PV production sensor's value gets summed for the whole available interval when 'day' is selected in Energy Period Selector Plus Card instead of showing just the current state of the sensor. Works correctly for other periods.

I've set kwh_mwh_threshold to 4000 to present that the whole available data gets summed in this case.

Card:
type: custom:energy-flow-card-plus
entities:
grid:
entity:
consumption: sensor.p1_meter_energy_import
production: sensor.p1_meter_energy_export
solar:
entity: sensor.symo_6_0_3_m_1_energy_day
home: {}
clickable_entities: true
display_zero_lines: true
use_new_flow_rate_model: true
energy_date_selection: true
wh_decimals: 1
kwh_decimals: 1
min_flow_rate: 1
max_flow_rate: 6
max_expected_energy: 2000
min_expected_energy: 10
wh_kwh_threshold: 1000
kwh_mwh_threshold: 4000

When day is selected, the summation should start only from current day midnight, or simply the sensor's value should be presented if a daily utility meter sensor is provided.

Weekly data presented correctly (compared to the original dashboard)
w1
w2

Last month's data presented correctly (compared to the original dashboard)
m1
m2

Daily data is incorrect. It can be seen that the PV production equals with the all time production since I have the PV system installed:
d1
d2

@nmartin9319 nmartin9319 added the bug Something isn't working label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant