Colly wrote:Hi Aaron,
I've been meaning to create a few dashboards in Grafana with energy usage per day/week/month/year. Having looked at this for a bit tonight I think it would be beneficial to have the Total Energy data brought in to Indigo -
- Code: Select all
"shellies/shellyem-<deviceid>/emeter/<i>/total
This is the total energy in Wh (accumulated in device's non-volatile memory). The data is stored in the device and will be included in the next value returned after if it went offline for a period. This would allow for more accurate comparison with the utility bill and in future when I get a smart meter. An example of the Shelly going offline could be a restart of my Mac Mini.
Colly
I will have to take a look at this, but I have some logic built in to have the Indigo energy value survive a device restart. At least, that is what is supposed to happen, but I do not rely on this feature myself.
Would you like the value from this topic represented as an additional device state, say "total-energy"?