Autohue

Post your questions and help other users.

Moderator: Martin

drboa
Posts: 27
Joined: 01 Dec 2016 07:24

Re: Autohue

Post by drboa » 30 Oct 2017 06:08

Hey Desmanto,

Yeah - you have understood my problem quite correctly. My smart watch Samsung Gear S3 (with Samsung Tizen operating system) is either connected to my phone via bluetooth or may access the same WLANs as my telephone if MAC filter allows... ...GSM is not an option unfortunatley. Nevertheless, the "Triggers" software installs on the phone and pushes a small "action button" program to the S3 watch that triggers an "HTTP request" (PUT I suppose) in the telephone when executed. It is neatly tied to the IFTTT Maker platform because it requires only one input: the IFTTT Maker APK key. It broadcasts to the IFTTT Maker server the trigger (in my case "toggle_lamps") and as you correctly point out, the server response is very sluggish... ...up to 20 seconds delay is common!
I can unfortunately not redirect the Maker http address - it is hard-coded into the program according to the following syntax: "https://maker.ifttt.com/trigger/"{comma ... y/"{APKkey} - only command and key are variables obviously. Therefore the idea of polling the local host is unfortunatley impossible. My only chance to intercept this broadcast (without IFTTT) is if Automagic could "monitor" the https://maker.ifttt.com/trigger/etc.-server and intercept any outgoing broadcasts from there... ...exactly how that would be possible is unknown to me though. It would mean constant polling and a huge load on the battery I suppose...((

If you happen to know a program that sends plain tasker or Automagic readable commands from a Tizen watch to an android telephone - please do inform me. I hear there is a way to install Android on Gear S3 but the warranty is not yet over so I am hesitant for the moment...

Ok - I guess I should be happy with what I have, enjoy the current life and stop striving for perfection... ...it is just that; it is so fun to program everything...

Have a great day and again; many thanx!! ))

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

Re: Autohue

Post by Desmanto » 30 Oct 2017 13:58

20 seconds? :shock: What year is it now? :o I'd rather stand up and turn on the lamp switch on by myself. :lol: I think that implementation is very slow already, it is better to find another solution rather than fixing something that is bottlenecked by a lot of components.

Googling a while shows me there is TaskS2. I read that the gear S3 can trigger the task immediately at the tasker (or automagic). The dev says it works only for S2, but there is comment confirm that it works with S3 too. This seems to trigger the task immediately thru the direct plugin. So you can use trigger plugin to execute the flow directly, no need to travel around the world and back to your phone.

I only use Mi Band 2. There is an app Mi Band 2 Func Button, which can receive the tap button from band. The app broadcast intent that can be intercepted using General Broadcast. I use this sometimes as camera shutter or just to show off : lifting my wrist and the room's lamp is turned on 8-)

In case TaskS2 can't also, intercepting the traffic need to be done via local VPN. AFAIR, it is on Martin's to do list already, but don't know about the priority. You can use something like Adguard, which host local VPN server that can redirect all traffic to certain address or let it pass. No root is required, but the adguard local VPN server should be on when you need it. If you put it always on, maybe it will reduce your Screen On Time by several minutes (not a big deal if you use it to block ads too). Filter the address and redirect it to 127.0.0.1, so automagic can process the request using Trigger HTTP request
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