Minutes are showed in decimal of an hour… so 83% of one hour is 49 minutes and 48 seconds…
Can you share the content of your entity you want to display ?
It’s a new duration sensor. It’s a sensor with the main state as hours, minutes, or seconds and a corresponding unit_of_measurement. Some places in the UI will show it as hh:mm:ss, this is a ‘translated’ state. I.e. it’s translated into a friendly manner so people can understand it instead of it being 83947298437329 seconds. A history graph needs a single base number, so it’s going to use the main state, not the translated state.
I’m not sure what you mean. All I’m telling you is that the graph will always show the state, which will be in the unit of measurement that it is. In your case, it will be hours. If you put that sensor into an entities card, it will display as a time, HH:MM:SS.
This my code. But I think I have to enter attribute or app_id to the code which don’t allow me. With the current setup it doesn’t track usage and always stays at 0. My media player doesn’t show which app is currently playing on state instead it is only on ıdle or playing status. I have to enter app_id or attribute Is there another way to achieve this ?