Skip Navigation
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)BR
bremen15 @feddit.org
Posts 5
Comments 33

How can battery charging be limited with Easer (≈Tasker) and WIFI Plug (Shelly Plug S)?

I have an unrooted GrapheneOS phone. I was surprised that it doesn’t offer a native option to limit battery charging to a specific upper limit (e.g., 80%) to preserve battery health and prolong the battery's life.

To work around this, I decided to implement a charging limit feature using automation software and a Wi-Fi-controllable plug. After some research, I bought a Shelly Plug S for this purpose. I'm trying to keep things open-source, so I avoid Google Play apps when possible. The closest Tasker alternative I found on F-Droid is Easer. Unfortunately, Easer seems to lack some crucial features that would make this process easier, such as switching Wi-Fi networks or starting external apps.

Here’s my plan so far:

  • My phone’s charger is plugged into the Shelly Plug S, which is connected to my Wi-Fi network.
  • I want to use Easer to automate the process: It would turn on the plug when the charger is connected, monitor the battery level, and, once it reaches 80%, turn off the Shelly Plug S by making an HTTP call to its local web interface (or an API call).
  • I prefer to block the Shelly Plug from accessing the Internet entirely (to avoid leaking data to the cloud) by setting up firewall rules that restrict its access to only my local network.

However, Easer seems to have some limitations that make this more challenging than expected:

  • Easer cannot switch Wi-Fi networks: I was hoping to use the Shelly Plug’s local access point (AP mode) for a more portable solution, but since Easer doesn’t have permission to switch networks, I'm restricted to my home network.
  • Easer cannot start external apps: It also can’t trigger external apps that might help with network switching or more advanced controls.

At the moment, I’m stuck with these limitations and was wondering if anyone has experience with similar setups or has already written code to implement something like this. Specifically:

Has anyone written or seen code to automate switching off a Shelly Plug once a certain battery level is reached? Are there any workarounds for Easer’s limitations, or should I consider switching to a different automation tool that fits my FOSS preference?

I would greatly appreciate any tips, code snippets, or discussions around best practices for this type of setup. Ideally, I'd love to make this work while keeping the setup local and portable, but I’m open to suggestions!

Thanks in advance for your help!

13
How can I get YouTube to not offer rage-inducing stuff?
  • Example: Thumbnail with Trump and some other guy i dont know, big caption: "OH MY GOD!" Video title: "Trump Released the MOST EMBARRASSING Video EVER & You HAVE to Watch it! | Bulkwark Takes"

    I assume it is designed to induce rage.

  • How can I get YouTube to not offer rage-inducing stuff?

    Currently in the US elections are featured in my YouTube feed, and not factual content but rage inducing.

    How can I filter that?

    101
    How can I show that a given open-source project does not exist yet?
  • My research is in energy informatics, so it could be related to algorithms to manage energy more efficiently. I know how to do literature reviews, which is relevant to the research part of my post. This open-source framework I am looking for is more like a means to achieve my goal. With it, I would focus on a less broad, highly specialized topic. For now, the framework would be a contribution to a digital-twin working group meeting, and of course, we would not want to reproduce something that exists already.

    I do admit that I like to do good things for the climate (of Earth), and I am convinced that such a framework could help industries worldwide to decarbonize better and earlier.

  • How can I show that a given open-source project does not exist yet?

    I work in research (uni) and am writing a framework for heat processes to optimize their costs. This goes both for private houses and industrial processes. The goal is to enable industry players to see that/when renewable energies and heat reuse with heat pumps are cheaper than fossil fuels. I do this using digital twins for components and on a system level.

    My boss hesitates because he thinks this must already exist. I want to pursue that path with my research, so any insights there are welcome, too, but this is primarily about the open-source project.

    I searched GitHub and came up empty, but that is only a subset of the search. Do you have any idea how I can find this, one way or another? It would also be great if I could show that it likely does not exist.

    17

    Zehensocken beim Wandern

    6

    Ich möchte den ganze amerikanische Wahlkampf aus lemmy ausfiltern. Wie geht das?

    Ich bin Deutscher und kann in den USA nicht wählen, und möchte nicht von deren Wahlkampf und dem ganzen Drama vereinnahmt werden. Wie kann ich den amerikanischen Wahlkampf ausfiltern? Hat jemand schon gute Filterlisten und könnte sie teilen?

    3