Hi! I have a eating system in my house that is controlled by thermostat controling a sonoff switch. Now i would like to know how many time during the entire day the switch is on, and this results must be as percentage.
For example, if the switch is on 12 h, during 24 day hours, the result should be 50%.
I have InfluxDB and Grafana installed, so I should have track of the switch status history.
i have searched but I cannot find something can fix with my request.
Can someone please help?
Thanks!!