Energy from template power sensor #1702
-
So here is my use case: So I created two template sensors to generate the required values and I'm trying to use powercalc to generate the required energy sensors for me. However it's not going so well as the energy sensors don't get created. this is what I have in my configuration.yaml:
Note that the first three sensors are real power sensors and they do generate the expected energy sensors, it's the template ones that do not. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
So, it turns out I don't even need powercalc :-) I can just create an integral helper for my power sensor which ill do the exact same thing! So my use case is solved but I'm not sure if you want to investigate this any further. |
Beta Was this translation helpful? Give feedback.
-
You could also use a template in powercalc power sensor configuration. Like this. See https://homeassistant-powercalc.readthedocs.io/en/latest/strategies/fixed.html
But of course there are multiple ways to Rome. |
Beta Was this translation helpful? Give feedback.
So, it turns out I don't even need powercalc :-) I can just create an integral helper for my power sensor which ill do the exact same thing! So my use case is solved but I'm not sure if you want to investigate this any further.