I´m looking to create a device energy sensor for all energy that is not defined by a device on the total energy by taking the Total energy use and subtract all the devices energy basically.
However i´m not getting the result i need as the sensor wont show as a Energy device and i know im missing some entities for this to work but i´m at a loss and hope someone is kind to show me in the right direction or has an example.
you are right, when i use the new template it does seem to work better and i can see the sensor in the devices.
Also, as you suspected I was using the wrong entities wich brings me another question, right now i use the Dayly usage in Kwh for the other devices, do need to specify that somehow for the template sensor?
I believe that would work, but I have little to compare myself to be 100% sure
I have one total_increasing sensor for water_usage, which unit is m3 and I feed it with another sensor that is in m3…that works for me…maybe other can chime in?
Still having some issues and not sure how to get around it, some sensors that i need to subtract are only giving me the total energy use (Shelly Plug S) and not the daily usage so the new sensor value is way off.
How do i go about this, is there a way to get the daily usage values of the plugs energy reading? and if so, how will the value the new sensor get affect the long time statistics of the new sensor when i use the daily usage as a reference, do i set the state_class as measurement on the sensor?
I.E. All sensors above are set as devices in the Energy dashboard, and i want to have the new sensor (added as device) to show the amount of energy that is not being monitored.
I have three kWh meters with pulse output. One for Electric vehicle charging (EV), heatpump (MLP) and main (ALL). I have integrated all these to Home Assitant. They show accurate and consistent power value (W).
I want to substract EV and heatpump (MLP) from total consumption (ALL) in order to add them all to “Energy” dashboard to see the consumption and price in one bar. I made helpers to convert Power to Energy end added them respectively to dash. BUT the problem is unaccurate values.
Is it possible to import kWh reading straight to Home Assistant as I have possibility to do that.
But I did not find any way to import just Energy. The system is built so that the only way is to import POWER and export it to ENERGY by using ** Reiman integration**
Continuous integration .
I can get the kWh reading from API interface, but it does not seem to be possible to import …or use… that measurement.The only possibility sems to be import power and using reiman integration to convert W to Wh.
I already have running and working sytem…it’s just very unaccurate therefore I’m looking for alternative possibilities.
I am still not sure what you mean with ‘import’ …import where? Can you read it from the API by other means but it is not loaded/visible in a HA sensor? Or is it visble in a HA sensor but you cannot add this to the enrgy dash?
And everythig works just fine.I can import the POWER and have a helper to convert it to ENERGY.
Power readings from API are all good and accurate… But the ENERGY is very unaccurate (maybe due to Reiman integral) In fact so unaccurate that I satarted to think some alternative way to calculate ENERY.
Energomonitor offets ENERGY readings as well via API (based on 1 hour POWER) so I started to think if I can use that reading straight.
I see, so for the MLP you use the Rieman integration and with spikes like that…did you try to compare left with middle with right?
I myself only calculate Rieman from a few plugs and no way to see if this is corrcet or not…
So if you can get this from the API then that would be best, for my household I use what the meter is telling ,me…but now I will also try a calcaultation just for the fun