In my bathroom I have a 150W electric towel-rail (on-off) and 160W electric underfloor heating (temperature modulated). The controllers are integrated into HA as a switch and a climate entity.
switch.towel_rail_2
climate.bathroom_2
I want to monitor the electricity usage in HA.
My proposed approach is to create one new platform sensor which has the value 150 when switch.towel_rail_2 is “on” and a second new platform sensor which has the value 160 when climate.bathroom_2 hvac_action is “heating”. Then create two more integration sensors to integrate these sensors to record the total Watts used.
Is this a sensible approach or is there a simpler way to achieve my outcome?
That looks very promising, not sure how I didn’t find it when searching this community. It looks like I want some fixed sensors. I will try it and report back
Initial feed-back is that the installation instructions are sparse.
I installed it (three times) and expected to find something under integrations (as with my other HACS custom component) but nothing. Instead of giving up, I just tried to build a couple of power sensors and it seems to be working:
Hi, I am the developer of powercalc component. The reason you don’t see it at integrations is because it does not provide functionality to set things up with the UI. Only integrations which have are configurable with the UI are visible there.
Let me know what you are missing in the installation/setup instructions, we can see if we can improve it.
Hello Bram, Chapeau. Your Powercalc component seems to be solving al my issues. I will raise an issue/enhancement on Github regarding the installation.