Replies: 2 comments 3 replies
|
Of course, possibly such a solution could also be integrated into PowerCalc, because well, there is still one obvious caveat: if the phone is powered off while charging, you get no measurements. 🤔 This would involve quite complex guessing of the energy usage (I guess?) based on the battery capacity of the phone (which in turns requires identifying the phone model – apps like AccuBattery can do that, BTW) and the last and new battery percentage, though? Or well… it could also be simple math, but quite complex for a "simple home assistant-only solution". It would also make creating all these sensors more easy, I guess. |
@rugk That is a nice idea in itself, but the implementation runs into two additional problems. First, the sensor measures the net current flow, which can result in negative values during concurrent use despite being plugged in. Second, dynamic charging curves are lost due to the rigid polling intervals of one to fifteen minutes, while the internal Android measurements only provide imprecise estimates anyway. PS |
Uh oh!
There was an error while loading. Please reload this page.
Just for the record, because the community here may care about that: With the official Home Assistant companion app you can enable a battery power sensor (at least on Android), and thus you can also calculate the power and energy usage of your phone.
Some caveats/problems make it a little more complex though:
I did describe my solution in the official Home Assistant forum in detail, but basically with some custom sensor templates and Riemanns sum/integral, this can be accomplished (without PowerCalc BTW).
All reactions