# Unplug my phone as a trigger

**URL:** <https://community.smartthings.com/t/unplug-my-phone-as-a-trigger/33071>\
**Category:** Automation Ideas\
**Tags:** project\_presence\
**Created:** [December 23, 2015, 4:03am UTC](https://community.smartthings.com/t/unplug-my-phone-as-a-trigger/33071 "2015-12-23T04:03:31Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![obmd1](https://avatars.discourse-cdn.com/v4/letter/o/a183cd/32.png) [@obmd1](https://community.smartthings.com/u/obmd1)\
**Post date:** [December 23, 2015, 4:03am UTC](https://community.smartthings.com/t/unplug-my-phone-as-a-trigger/33071/1 "2015-12-23T04:03:31Z")

</div>

Can an app help to have the hub recognize when an associated cell phone is on the charger? A change in state could be used as a trigger.

---

<div class="post-metadata">

**Author:** ![diehllane](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/diehllane/32/22571_2.png) [@diehllane](https://community.smartthings.com/u/diehllane)\
**Post date:** [December 23, 2015, 4:13am UTC](https://community.smartthings.com/t/unplug-my-phone-as-a-trigger/33071/2 "2015-12-23T04:13:35Z")

</div>

What are you attempting to do with this?

There are a few options that might work here… IFTTT supports battery channel for Android which has triggers for plugging in and unplugging from a charger.

If that won’t work for what you need, I’m sure something could be done in Tasker and Sharptools that will pass along the phone being plugged in.

If you’re on iOS, I can’t offer a solution.

---

<div class="post-metadata">

**Author:** ![Rigging65](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/rigging65/32/24106_2.png) [@Rigging65](https://community.smartthings.com/u/Rigging65)\
**Post date:** [December 23, 2015, 4:22am UTC](https://community.smartthings.com/t/unplug-my-phone-as-a-trigger/33071/3 "2015-12-23T04:22:19Z")

</div>

Could you use the voltage sensing from a smart-plug as a trigger to set off what you want. Something like, when voltage drop, these events occur? Haven’t tried it, just something that comes to mind.

---

<div class="post-metadata">

**Author:** ![joshua\_lyon](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/joshua_lyon/32/12655_2.png) [@joshua\_lyon](https://community.smartthings.com/u/joshua_lyon)\
**Post date:** [December 23, 2015, 4:40am UTC](https://community.smartthings.com/t/unplug-my-phone-as-a-trigger/33071/4 "2015-12-23T04:40:50Z")

</div>

> [@diehllane](#):
>
> I’m sure something could be done in Tasker and Sharptools that will pass along the phone being plugged in.

If you’re on Android, you can definitely do this with Tasker and [SharpTools](https://play.google.com/store/apps/details?id=com.boshdirect.stwidgets). Tasker has a Power state that can detect when power is applied to the device.

---

<div class="post-metadata">

**Author:** ![obmd1](https://avatars.discourse-cdn.com/v4/letter/o/a183cd/32.png) [@obmd1](https://community.smartthings.com/u/obmd1)\
**Post date:** [December 23, 2015, 1:35pm UTC](https://community.smartthings.com/t/unplug-my-phone-as-a-trigger/33071/5 "2015-12-23T13:35:02Z")

</div>

I was hoping to set up rules that would turn lights on in the morning when I unplug, and turn off lights at night when I put it on the charger. But I have an iPhone :sad trombone:

---

<div class="post-metadata">

**Author:** ![Ryan00](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@Ryan00](https://community.smartthings.com/u/Ryan00)\
**Post date:** [December 30, 2015, 12:53am UTC](https://community.smartthings.com/t/unplug-my-phone-as-a-trigger/33071/6 "2015-12-30T00:53:59Z")

</div>

Yes you can do this with tasker and sharptools .

1 download sharptools and buy it  
2 in the sharptools app, buy the tasker plugins  
3 in tasker use a state of power  
4 source is AC  
5 make sure you click invert  
6 make your task how you want  
7 click the + then plugin then sharptools I was a phrase but use whatever you need in your set  
8 sorry this was a really fast post cuz I’m at work … Hope this hopes I this on my note 5 and works great

---

<div class="post-metadata">

**Author:** ![Ryan00](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@Ryan00](https://community.smartthings.com/u/Ryan00)\
**Post date:** [December 30, 2015, 12:57am UTC](https://community.smartthings.com/t/unplug-my-phone-as-a-trigger/33071/7 "2015-12-30T00:57:01Z")

</div>

> [@Ryan00](#):
>
> Yes you can do this with tasker and sharptools .
> 
> 1 download sharptools and buy it  
> 2 in the sharptools app, buy the tasker plugins  
> 3 in tasker use a state of power  
> 4 source is AC  
> 5 make sure you click invert  
> 6 make your task how you want  
> 7 click the + then plugin then sharptools I was a phrase but use whatever you need in your set  
> 8 sorry this was a really fast post cuz I’m at work … Hope this hopes I this on my note 5 and works great

1. Okay sorry can’t do this with iPhone you need tasker . I didn’t read the part that said iPhone oh well hope this helps someone

---

<div class="post-metadata">

**Author:** ![obmd1](https://avatars.discourse-cdn.com/v4/letter/o/a183cd/32.png) [@obmd1](https://community.smartthings.com/u/obmd1)\
**Post date:** [January 6, 2016, 4:09am UTC](https://community.smartthings.com/t/unplug-my-phone-as-a-trigger/33071/8 "2016-01-06T04:09:22Z")

</div>

The new rules and trigger smart app may help, when triggers can be set to perform actions when metering drops to zero. we’ll see.

---

<div class="post-metadata">

**Author:** ![hasse](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/hasse/32/23864_2.png) [@hasse](https://community.smartthings.com/u/hasse)\
**Post date:** [February 13, 2016, 3:07pm UTC](https://community.smartthings.com/t/unplug-my-phone-as-a-trigger/33071/9 "2016-02-13T15:07:00Z")

</div>

@Ryan00 Did you ever figure this out? I’m looking for a solution to the same problem.

---

<div class="post-metadata">

**Author:** ![JustinL](https://yyz2.discourse-cdn.com/smartthings/user_avatar/community.smartthings.com/justinl/32/94285_2.png) [@JustinL](https://community.smartthings.com/u/JustinL)\
**Post date:** [January 15, 2018, 1:42pm UTC](https://community.smartthings.com/t/unplug-my-phone-as-a-trigger/33071/10 "2018-01-15T13:42:27Z")

</div>

Years later…does anyone have a solution to detect when you unplug your iPhone? Want to trigger wake up scene in SmartThings or hue
