Condition - USB Tethering State (Feature Request)

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
RPM
Posts: 1
Joined: 20 May 2014 03:15

Condition - USB Tethering State (Feature Request)

Post by RPM » 20 May 2014 03:42

I have a flow which turns off mobile data when the screen is turned off (to save battery), but don't want this to happen if the device is tethered via USB.

Note: There is a WiFi Tether condition, but none for USB (that I found).

It would be great if you could find time to implement this. Thanks.

BoBo
Posts: 129
Joined: 05 May 2014 12:45

Re: Condition - USB Tethering State (Feature Request)

Post by BoBo » 20 May 2014 09:50

Isn't that similar to this request?

USB Trigger

BoBo 8-)

User avatar
Nerey
Posts: 102
Joined: 07 Mar 2014 16:59

Re: Condition - USB Tethering State (Feature Request)

Post by Nerey » 20 May 2014 13:01

Or you can use condition or trigger "Power Source: Connected (USB)"
Sorry for bad english, my native is russian.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Condition - USB Tethering State (Feature Request)

Post by Martin » 26 May 2014 18:28

It should be possible to add such a condition. Unfortunately there's no official API for this so it might not work on all devices.

fede91it
Posts: 19
Joined: 10 Jan 2014 08:59

Re: Condition - USB Tethering State (Feature Request)

Post by fede91it » 11 Mar 2016 09:47

And how I match as trigger the event of enabling the USB tethering?

I want to disable wifi and enable mobile data when I enable the tethering via USB and reenable wifi and disable mobile data when I disable the USB tethering.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Condition - USB Tethering State (Feature Request)

Post by Martin » 11 Mar 2016 19:10

Hi,

There's no trigger to react to USB tethering but you could probably use a trigger Notification on Statusbar Displayed and Notification on Statusbar Removed to detect when USB tethering changes.
The notification is usually displayed by package android and contains the text 'Tethering' (might depend on device and manufacturer).

Regards,
Martin

Locked