-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Remaining of children or parent + type: passthrough = wrong calculations #246
Comments
This could be floating point error because you have such small numbers. Try adding |
Yes. I thinking too about prefix but:
Will be very stage if 3 digits after decimal separator is a problem for calculations,the root of cause should be in other place, I guess on formula behind calc remaining. |
I see the issue now, after a lot of staring. The problem is not the passthrough. You have 3 options:
|
Thank you, yes now I see it also. The middle section should update every 5 min where end meters every 3 min hence the difference. Regarding answers, option 1. and 2. is not what I search. Can you tell me how 3rd option implement correctly? |
You can try adding all the children of |
Hello
I see discrepancy for parent and children calculation longer time but cannot show ease as now due to many entities in graphs.
The issue is related to calculations of remaining parent.children probably where is used
type: passthrough
because only this chart i found I issue wrong calculated discrepancy.My Sankey displaying square meters of water, where one liter is is equal 1/1000 of m3. Left site of picture is main water supply and right site is end water meters. Between is sub water meter for boiling room. I build two Sankey graphs with and without middle section with sub water meter. And unfortunately both graphs always calculate difference values of remaining of children or parent.
For the period (from 0:00 to 1:00) is only two liters (0.002 m3) consumed.
I will show two examples, correct and wrong.
Correct example
8 liter = 6 liter + 1 liter + 1 liter ==> TRUE
Issue example
8 liters =/= 7 liters + 1 liter + 1 liter ==> FALSE
There is in middle entity related to "sensor.wmbus_reader_v2_wezel_zw_do_cwu_wifi_total" but zero registered
Example for the same yesterday period and please check "reszta" / remaining value. Fiers with middle section, 2nd without middle section.
Another day:
The text was updated successfully, but these errors were encountered: