# How to automate handphone charging

**URL:** <https://forum.ewelink.cc/t/how-to-automate-handphone-charging/25367>\
**Category:** Ideas & Suggestion\
**Created:** [December 5, 2023, 6:30am UTC](https://forum.ewelink.cc/t/how-to-automate-handphone-charging/25367 "2023-12-05T06:30:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![halimhussein](https://avatars.discourse-cdn.com/v4/letter/h/f14d63/32.png) [@halimhussein](https://forum.ewelink.cc/u/halimhussein)\
**Post date:** [December 5, 2023, 6:30am UTC](https://forum.ewelink.cc/t/how-to-automate-handphone-charging/25367/1 "2023-12-05T06:30:41Z")

</div>

i already got my self smartplug  
how to create automatic charging and off charger when my phone reach 20%/80% battery level

---

<div class="post-metadata">

**Author:** ![morgan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/morgan/32/3184_2.png) [@morgan](https://forum.ewelink.cc/u/morgan)\
**Post date:** [December 5, 2023, 8:21am UTC](https://forum.ewelink.cc/t/how-to-automate-handphone-charging/25367/2 "2023-12-05T08:21:23Z")

</div>

If you have Android, install the MacroDroid app and set the trigger for the battery level, then use the ewelink webhook address via http call as an action.

In WEB ewelink, create a scene and set the webhook as IF and your device and ON as THEN.

For OFF it’s the same, only the other way around…

> [@【eWeLink CAST App】Let eWeLink CAST app manage your tablet's charging](https://forum.ewelink.cc/t/ewelink-cast-app-let-ewelink-cast-app-manage-your-tablets-charging/25184):
>
> Tired of your eWeLink CAST app tablet dying all the time? The latest eWeLink app update brings the perfect solution for keeping your CAST tablet powered up! Introducing eWeLink CAST app battery level triggers: Download eWeLink app (v5.1) on your phone or tablet, and the eWeLink CAST app (v1.2) on your tablet. In eWeLink app, create a scene and select the tablet running eWeLink CAST app as a trigger, select ‘when power is lower then 20%’ Set the action to turn on a Smart Plug Plug your tablet …

---

<div class="post-metadata">

**Author:** ![halimhussein](https://avatars.discourse-cdn.com/v4/letter/h/f14d63/32.png) [@halimhussein](https://forum.ewelink.cc/u/halimhussein)\
**Post date:** [December 5, 2023, 12:54pm UTC](https://forum.ewelink.cc/t/how-to-automate-handphone-charging/25367/3 "2023-12-05T12:54:53Z")

</div>

thanks

another question, will this webhook works with ihost?

---

<div class="post-metadata">

**Author:** ![morgan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/morgan/32/3184_2.png) [@morgan](https://forum.ewelink.cc/u/morgan)\
**Post date:** [December 5, 2023, 10:12pm UTC](https://forum.ewelink.cc/t/how-to-automate-handphone-charging/25367/4 "2023-12-05T22:12:28Z")

</div>

> [@halimhussein](#):
>
> thanks
> 
> another question, will this webhook works with ihost?

Hmm, I’m not sure if it can be done…

If we are talking about ewelink webhook, it is a function that requires the cloud and a paid plan.

Would iHost be able to control the smart socket, yes… but the problem here is sending the command from the phone to iHost.

I’m not sure if and how iHost is able to receive random communications.

---

<div class="post-metadata">

**Author:** ![songal](https://avatars.discourse-cdn.com/v4/letter/s/c67d28/32.png) [@songal](https://forum.ewelink.cc/u/songal)\
**Post date:** [December 6, 2023, 2:00am UTC](https://forum.ewelink.cc/t/how-to-automate-handphone-charging/25367/5 "2023-12-06T02:00:37Z")

</div>

I’m curious why it’s a phone and not a tablet, does your phone need to be connected to a power plug all the time？

If it is a tablet, after installing the eWeLink CAST App on the tablet and logging in to your account, you can use the cloud scenarios in the eWeLink App to configure when the tablet’s battery level is above 80%/below 20% as a trigger.

---

<div class="post-metadata">

**Author:** ![halimhussein](https://avatars.discourse-cdn.com/v4/letter/h/f14d63/32.png) [@halimhussein](https://forum.ewelink.cc/u/halimhussein)\
**Post date:** [December 6, 2023, 2:03am UTC](https://forum.ewelink.cc/t/how-to-automate-handphone-charging/25367/6 "2023-12-06T02:03:32Z")

</div>

actually the intention is to convert the phone to camera.

found this thread in this forum, but that was a year ago, until no nothing progress?

> [@Charge automatically based on the battery percentage](https://forum.ewelink.cc/t/charge-automatically-based-on-the-battery-percentage/6691/2):
>
> Actually, there is no preset trigger like the battery is higher than 80% in the IFTTT App, but we can create one. Here are the instructions: Download and install a third-party App like AccuBattery to detect the battery percentage. Set charging to 80% on the first tab, so you’ll receive a notification when the battery reaches 80%. Open IFTTT App \> Create \> If This \> Android Device \> Notification received from a specific app. Then you enter a Complete trigger fields page,…

---

<div class="post-metadata">

**Author:** ![kamleshbarot](https://avatars.discourse-cdn.com/v4/letter/k/77aa72/32.png) [@kamleshbarot](https://forum.ewelink.cc/u/kamleshbarot)\
**Post date:** [March 15, 2024, 6:36am UTC](https://forum.ewelink.cc/t/how-to-automate-handphone-charging/25367/7 "2024-03-15T06:36:48Z")

</div>

Thank you Mr. Morgan,

You saved me the hassle of scrapping my 2 smartphones as well as quite a few Sonoff equipment.

After struggling a bit, but only with your 3 lines, I could configure and see something that even Sonoff company (India and abroad) as well as ITEAD could not assist.

Now my mobile is charging and stops when the battery reaches 20%-80%.

Will be copying that Macrodroid on the 2 smartphones and 1 more Basic switch to witness that everything is working as advised by you.

Thank you!

---

<div class="post-metadata">

**Author:** ![morgan](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/morgan/32/3184_2.png) [@morgan](https://forum.ewelink.cc/u/morgan)\
**Post date:** [April 13, 2024, 6:13am UTC](https://forum.ewelink.cc/t/how-to-automate-handphone-charging/25367/8 "2024-04-13T06:13:56Z")

</div>

> [@kamleshbarot](#):
>
> Thank you Mr. Morgan,
> 
> You saved me the hassle of scrapping my 2 smartphones as well as quite a few Sonoff equipment.
> 
> After struggling a bit, but only with your 3 lines, I could configure and see something that even Sonoff company (India and abroad) as well as ITEAD could not assist.
> 
> Now my mobile is charging and stops when the battery reaches 20%-80%.
> 
> Will be copying that Macrodroid on the 2 smartphones and 1 more Basic switch to witness that everything is working as advised by you.
> 
> Thank you!

👍 🙂
