+9 votes
by (3.6k points)
Does anyone know of a way that i can monitor battery life of a phone/tablet and trigger a device based on its value? Eg - battery level of the tablet drops to 15% it turns on a smart socket and when it gets to 100% it turns the socket off. I have tried IFTTT but for some reason it wont trigger any ST devices even though they are authorised correctly. I have tasker, webcore (though havent used it yet so would need some instruction) its on a fire tablet and i use wallpanel which can provide sensor information (inc. Battery levels) over MQTT but i dont have a broker and its not something i am clued up on for setting one up.  
Does anyone know of a way that i can monitor battery life of a phone/tablet and trigger a device bas

5 Answers

+9 votes
by (3.2k points)
 
Best answer
I've done this in two ways. Firstly using tasker to send a webhook to webcore, and secondly by using life360 which reports battery level (again into webcore)
by (3.6k points)
@rena43 oh that sounds good. What do you recieve the notification on if you do forget? I am thinking echospeaks to a speaker for me  Oh the piston for the battery % works flawlessly btw
by (3.2k points)
@pachton8 yeah, echo speaks to the bedroom echo. I use an Alexa routine that trips a simulated switch, which causes webcore to report if any contact sensors are open, and also report on those too.  
by (3.6k points)
@rena43 any way that you know of to kinda reverse the webhook, basically webcore to send a command to tasker and tasker operate the trigger on the device its on? ST virtual switch ON -> webcore monitors this -> when true send webhook to tasker -> tasker performs action
by (3.2k points)
@pachton8 sorry, not something I've tried. At a guess, Maybe you could use a simulated contact sensor to trigger a routine in Alexa which sends a notification to the tablet, which tasker could pick up, but that's just off the top of my head.  
by (3.2k points)
@pachton8 actually, with the smartthings app on the tablet, maybe you could send a notification directly?  
+8 votes
by (1.2k points)
Tasker to send a webhook to IFTTT on battery level. IFTTT to do whatever based on that webhook.  
+3 votes
by (1.2k points)
I like where you are going with this, setting the tablet in charge of its own battery level. Clever. But I wonder is that a bit redundant compared to leaving it plugged in? Wonder what the idle power consumption would be compared to your solution. I like the idea though, clever thinking.  
by (1.1k points)
@pachton8 I might be confused with another platform. free to use, all I need to know. Thanks :)
by (3.6k points)
@lebaron Smith i would say (from my very limited knowledge of it so far) it would absolutely be possible. But dont ask me how just yet  
by (1.1k points)
@pachton8  I might have a play around when bored under lockdown :)
by (3.6k points)
@lebaron Smith its all been on my todo list for ages, now i am furloughed and locked down i have time to play around with it all. Spent the last day or so creating my actiontiles dashboard. Few panels left to polish up then ill be happy . The frame is a cheapy to create a template so i can get some nice wooden frames made up later, mainly to fully hide the charging cable when i wall mount it
by (1.1k points)
@pachton8 Nice :) I'm going to attempt using anymote app to create something similar in the near future via http commands. I'll try on my usual tablet to begin with. then look into having an always on screen like you've setup there
+8 votes
by (15k points)
I believe there is a device handler for fully kiosk that will do this via ST
by (3.6k points)
@hague i didnt know this. But managed to get it running via webcore  thanks
+8 votes
by (620 points)
I used to do exactly this many years ago for our kitchen tablet. I wrote a simple web endpoint smartapp that would turn a switch on and off, and used Tasker to invoke the web endpoint when the charge reached the low and high limits. It worked fine, but I eventually ditched it for a simple motion sensor to turn on the tablet when we're in the kitchen. This, along with a Google DayDream photo screen saver works for our application. When the motion sensor turns on the plug, I have the tablet configured to turn on and it immediately switches to the photo frame app.  
The SmartThings Group is where you can always find questions, answers, advice, reviews & recommendations from other community members about home automation with the Samsung SmartThings hub.

Related questions

...