Domotica Tablet - switching lights on/of

Post your questions and help other users.

Moderator: Martin

Post Reply
Hve22
Posts: 1
Joined: 08 Nov 2017 17:27

Domotica Tablet - switching lights on/of

Post by Hve22 » 11 Nov 2017 10:34

My old Samsung S2 P5110 is used as a wallscreen for use with Domoticz.
Now i would like to use automagic to switch some lightswitches depending on de batterylevel of my tablet.

I've made th following flow .. see attachement.

This flow is onvoked from a working custom url.

When the flow runs... it switches the switch and goes back to the homescreen.

How can i clse/kill my browser and get back to my initial browser screen
Attachments
Screenshot_20171111-112956.png
Screenshot_20171111-112956.png (66.79 KiB) Viewed 6836 times

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Domotica Tablet - switching lights on/of

Post by Desmanto » 11 Nov 2017 17:28

Is it necessary to use period timer? Or won't it be better to use Trigger Battery level, becomes lower than 81% and another for becomes full.

AFAIK Domoticz support HTTP post, so you can just Action HTTP request, fill in the url with the parameter needed there. No need to open the browser and to close it again.

If you still need to go back to the initial homepage, you can just open URL again, with the home url of the page. You can close the tab first, using the control UI. Or you can just use back() to emulate the back key.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply