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.
Condition - USB Tethering State (Feature Request)
Moderator: Martin
Re: Condition - USB Tethering State (Feature Request)
Or you can use condition or trigger "Power Source: Connected (USB)"
Sorry for bad english, my native is russian.
Re: Condition - USB Tethering State (Feature Request)
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.
Re: Condition - USB Tethering State (Feature Request)
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.
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.
Re: Condition - USB Tethering State (Feature Request)
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
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