Hi All,
So I am all into the Home-Assistant now, it is awesome!
However, I am running into an issue which I cannot seem to figure out;
Situation; I have 3D printers connected to 2 smart sockets that individually track the energy consumption. I want to add these together and display them as 1 entity on the energy dashboard.
What I did to try and achieve it;
- I made a Template sensor helper that adds the 2 energy consumption together., which works if I check the values. (Image 1)
However, 2 things go wrong;
- The combined sensor value occasionally drops to (or near) zero. Looking at the history graphs for the individual smart plugs, these drops do not exist thereβonly in the combined template sensor. When the sensor drops to 0 and then jumps back to its actual value (e.g., 1.34 kWh), the dashboard seems to interpret that jump as a massive surge of consumption. Currently, my dashboard shows 10 kWh used when the actual total is only 1.34 kWh. (Image 2 and 3)
- The second issue is that the energy consumption values from the smart plugs reset every week. However, I would like my combined template sensor to be a "total increasing" sensor that keeps climbing regardless of the weekly resets of the child sensors.
My questions;
- How can I prevent the template sensor from dropping to 0 randomly? (I have a feeling it has something to do with a disruption in connection)
- Is there a better way to ensure the combined total doesn't reset when the plugs do?