Is there a way I can display a bar chart (ideally with mini-graph-chart) that displays the total kWh used each day by a Sonoff S31 power monitoring plug?
I have already set the sensor for watts in HA but I can’t find how to import the daily kWh from the eWeLink app
Basically what I want to do is to have the same bar chart as the one in the official eWeLink app:
ideally the last 30 days with 1 bar representing 1 day, but I don’t mind if it’s just the current month like in the app
I have also added the sonoff sensor to HA’s energy tab, but I want the bar chart to display as a LoveLace card and not just when clicking in the energy section
Let’s begin with the kWh. The eWeLink app has a feature to track the kWh but I couldn’t find how to import it in HA. So I am using the “integration sensor” workaround here: Integration - Riemann sum integral - Home Assistant
An integration sensor is quite useful in energy billing scenarios since energy is generally billed in kWh and many sensors provide power in W (Watts).
If you have a sensor that provides you with power readings in Watts (uses W as unit_of_measurement), then you can use the integration sensor to track how much energy is being spent.