Skip to content

Calculating total consumption is wrong when there are multiple items of the same name #56

@neronim1141

Description

@neronim1141

Describe the bug
When using items with the same name for example 'Popsicle Fridge' or 'White Industrial Fridge' or just lights the total consumption seems to rise exponentialy:

obraz_2024-04-29_015724883
obraz_2024-04-29_015733579
obraz_2024-04-29_015737325
obraz_2024-04-29_015742268
obraz_2024-04-29_015747289

items | consumption in Ah
0 | 16
1 | 120
2 | 224
3 | 432
4 | 744
5 | 1160
6 | 1680
desmos point plots scaled down for more representation:
image

To Reproduce
Steps to reproduce the behavior:

  1. build powerbank
  2. place few items with the same name nearby
  3. check consumption

Expected behavior
I'm expecting the consumption to be additive, and it seems to work like that with items of different names, check the attached images
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions