Open sanderlv opened 7 months ago
I read somewhere that the wording "current power" was a bit poorly chosen. I just changed the yaml to:
...
Then add:
platform: template name: ${devicename} - Current Power id: "power" unit_of_measurement: W lambda: return id(ampere).state * 230;
platform: total_daily_energy name: "${devicename} - Daily Energy" power_id: "power" filters: # Multiplication factor from W to kW is 0.001
And this works fine and is pretty much what you have.
Perhaps the "current power" in the default yaml example should be changed to "current draw" ?
Power is in W Current is in A
Current Power means "current W" not A
...
Or A power.
Now I'm just joking but Current Power doesn't mean anything IMHO. It is just a mistake the original author made. Perhaps @ginkage is willing to change it or just create a pull request incorporating the other usefull code. I'm not the maintainer or this repo :)
I updated to the latest code and I get now Amps instead of Watt for:
But: Power is in W Current is in A
I noticed because I had in my old cofig:
To get an idea of the consumed power, by calculating the power=current+voltage (P=UxI).
For the sake of completeness, I have this also: