You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added a Helper which accumulates the used power of my grids power meter. This gets reset monthly. (so e.g. my power meter goes from 7000 kWh to 7100 kWh = 100kWh, next month: it goes from 7100 to 7222 = 122kWh etc.)
The sensos "sensor.verbrauchpromonat" increases and gehts reset to 0 every month.
hours_to_show: 8760 = one year
I think the issue is "group_by" - I'm missing something like "monthly" there...
Now it looks like this:
Why are there so many bars? Interval of the sensor = month (so 30 days). 30 days = 720h, 8760 / 720h = 12 (around 12).
Also: Why is the inverval so odd? So., 12., 18:14 - Do.,16., 13.28?
That's 3 days, 19 hours, 14 minutes ...
But I want to display the past 12 months in 12 bars showing the monthly power consumption.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I added a Helper which accumulates the used power of my grids power meter. This gets reset monthly. (so e.g. my power meter goes from 7000 kWh to 7100 kWh = 100kWh, next month: it goes from 7100 to 7222 = 122kWh etc.)
Tried a lot of things but now I'm kinda lost.
Here is my code:
The sensos "sensor.verbrauchpromonat" increases and gehts reset to 0 every month.
hours_to_show: 8760 = one year
I think the issue is "group_by" - I'm missing something like "monthly" there...
Now it looks like this:
![grafik](https://user-images.githubusercontent.com/17554764/220043626-f37635e5-181d-4063-a1a7-2855bacd38a8.png)
Why are there so many bars? Interval of the sensor = month (so 30 days). 30 days = 720h, 8760 / 720h = 12 (around 12).
Also: Why is the inverval so odd?
So., 12., 18:14 - Do.,16., 13.28?
That's 3 days, 19 hours, 14 minutes ...
But I want to display the past 12 months in 12 bars showing the monthly power consumption.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions