Am Wed, 5 Jan 2022 13:47:21 -0800 (PST)
schrieb Terry Wood <
te...@woody.net.au>:
Not sure whether this is much help to you, but in the general context
of switching power sockets with automate I'm using sispmctl controlled
devices, with good success: about 20 sockets automatically switched
by different means, including mobile devices. sispmctl is the small
program able to operate on the sockets, and even my (OpenWRT reflashed)
wifi router can do that.
Example of sispmctl compatible devices are the gembird/energenie
eg-pms* power rails, which pack 4 individually switchable sockets into
one power rail. The come with USB, ethernet and wifi connectivity. I'm
using exclusively the USB variants.
But for merely switching charger of mobile device off at a certain
charge level, and on again when below another level, I've moved away
from switching grid power to the charger several years ago
already: several software solutions exist (admitting charging
voltage is software controllable by relatively modern mobile
device hardware), which allow you to set the charge level hysteresis for
enabling/disabling power.
That's easier because this works with any charger, anywhere, without
the need to tell automate somehow when it is allowed to control charger
(it won't help if Automate finds that charging is needed and turns on
the charger, while it may not even be connected to it.