All I want is for the X axis to match the selected time period (so say for example, the last 8 hours and the X axis would be broken down hour by hour the last 8 hours) and the Y axis to be a bar chart where the bar is taller the longer the sensor is “on” and then no vertical bar present at all for when the sensor is “off” with one bar over each hour (or no bar for a given hour if the sensor wasn’t on during that hour).
Essentially just take those “orange” parts of the binary sensor and turn them 90 degrees so they’re vertical bars representing how long they were on and the gray parts wouldn’t be vertical bars at all and the X axis remains equally separated time periods based on the time period selected.
It get’s me very close, but it’s represented as “on/off” without demonstrating how long it was on/off. For example, when I mouseover/hover on an “on” section of the binary sensor as it’s represented horizontally it will say it was on for (for example) 5 minutes and it will be a wider segment on the horizontal scale than another time that it was only “on” for 1 minute. When I try to represent it in the mini graph card, all the vertical bars are the same height.
In the example image below, you can see there are 8 bar segments, representing the last 8 hours. If the bar is there, it means “tiger seen” was “on” in that hour, but it’s the same height as any other bar that’s “on” without visually representing how long it was on for.
The way to do this would be to make a history stats sensor, make it daily resetting or something (interval don’t exactly matter), change the state class to total_increasing, and then plot an hourly statistics graph card bar chart of the ‘change’ statistic.
To change the state_class you currently need to use customize.
For anyone who comes across this in the future, I got it figured out…well, I didn’t…Claude helped me out lol. I’m super stubborn and had been trying to get this figured out without the help of AI as I haven’t used it at all for anything at any point during my years long usage of HA but I caved…and it worked…which is somehow more frustrating haha. Anyway, here’s the solution (rolling 8 hour graph, totaling out how long it was “on” in any given hour and represented as a bar chart)