I understand the issue. The simplest fix is manually tracking peak values. When power exceeds your stored variable, overwrite it and reset the value nightly. Compare all sources this way to find the highest peak.
Something like [power is changed] => power is more than [variable] => Overwrite [variable] with power.
And reset [variable] every night.
I would prefer calculations to happen outside Dashboard Studio. Perhaps I can modify the THEN insight card to output minimum, maximum, and average values. Ill let this brew a bit in my head.
I personally crammed 5 graphs into one and I gave each their own scale:
I use a fixed 31-hour window from midnight until 6:00 AM the following day. This allows me to monitor overnight activity and review the previous night’s data the next morning.
I build the graph tables myself. My hourly consumption data follows this format:
{“0”:1.232,“1”:0.543,“2”:4.929,“3”:5.114,“4”:5.131,“5”:5.086,“6”:0.452,“7”:0.51,“8”:-3.925,“9”:-4.034,“10”:-3.412,“11”:0.916,“12”:0,“13”:0,“14”:0,“15”:0,“16”:0,“17”:0,“18”:0,“19”:0,“20”:0,“21”:0,“22”:0,“23”:0,“24”:0,“25”:0,“26”:0,“27”:0,“28”:0,“29”:0,“30”:0}
A Homey flow updates the relevant hour every five minutes:
One script assigns values to the correct hour while another identifies the peak value. Because the timeline extends past hour 24 into hours 25 through 30, a reset script copies those values back into slots 0 through 6 each morning.
Thin red bar graph lines show consumption, turning dark green when returning power to the grid. The red number 5.13 indicates 5.13 kW. The green line graph represents solar power, currently peaking at 544W. Thick white/grey bars represent dynamic tariffs starting at a 17ct base (This is the tax-rate base). Green and red squares indicate battery charging and discharging. The hour labels at the bottom is also a separate text-based graph. (with just 0,2,4,6,8,…)
While this layout is complex, it provides for me an immediate and clear overview. It has even a WAF stamp
(The Wife Acceptance Factor) I could merge solar and consumption onto one scale or use calculated peaks for the max settings, but I prefer individual scales for now. Note: I haven’t updated this dashboard since before the Homey release, so it definitely needs some love haha. “The shoemaker’s children go barefoot”. I’ve been way too busy developing the software instead of actually use it! 