❔ How to calculate sec to hour for additional info
Closed this issue · 1 comments
n3de commented
Hey,
first thank you very much for this great card! It is awesome. I'm unsing it so show the energy from my devices:
type: custom:mini-graph-card
hours_to_show: 8
points_per_hour: 60
graph: line
animate: true
line_width: 2
line_color: green
hour24: true
show:
average: true
extrema: true
entities:
- entity: sensor.gefrierschrank_leistungswert
- entity: sensor.gefrierschrank_stromzahler
show_state: true
show_graph: false
- entity: sensor.gefrierschrank_betriebsstunden
show_state: true
show_graph: false
As you can see, the "betriebsstunden" (working hours) are in seconds. Is there any option to display this in hour directly in the card?
ildar170975 commented
Is there any option to display this in hour directly in the card?
No.
Use a template sensor to convert value in seconds to a value in hours, then use this sensor in the card.