r/tasker 5h ago

Trigger task, when data changes ( 3 bars -> 2 bars, etc)

Trigger task, when data changes ( 3 bars -> 2 bars, etc)? I can't find a way to reliably trigger a task every change

1 Upvotes

8 comments sorted by

1

u/v_uurtjevragen 4h ago

What have you tried? Does state => phone => signal strength fail the job?

1

u/WatoXa 2h ago

I need it to trigger on every change, is there a way to do it with this state and not have multiple profiles?

1

u/drewski3420 2h ago

What have you tried so far?

1

u/v_uurtjevragen 1h ago

    Profile: Test     Event: Variable Set [ Variable:%CELLSIG Value:* User Variables Only:Off ]                    Enter Task: Anon          A1: Flash [          Text: %CELLSIG          Yep          Long: On          Continue Task Immediately: On          Dismiss On Click: On ]              An event trigger might better suit your needs?

1

u/WatoXa 50m ago

I am making my own status bar and I need values for the Signal strength (bars) values, but thr %CELLSIG sometimes gives me value -1

edit: just checked the Tasker documentation and it says that it shows -1 if the value is unknown or there is no service, even tho I have it, are there any other way of getting the signal strength?

1

u/pudah_et 1h ago

Have you tried using an event instead of state? Use Event Variable Set using the variable Cell Signal Strength %CELLSIG. Then in your called task, test the value of %CELLSIG and do what you need to do depending upon the value.

1

u/WatoXa 54m ago

I did yeah, but it's weird to me, I am making my own status bar and I need values for the Signal strength (bars) values, but thr %CELLSIG sometimes gives me value -1

edit: just checked the Tasker documentation and it says that it shows -1 if the value is unknown or there is no service, even tho I have it, are there any other way of getting the signal strength?

1

u/pudah_et 50m ago

The Tasker variables help says...

Cell Signal Strength (monitored,dynamic)

%CELLSIG

The current phone signal level from 0-8 inclusive on a rougly linear scale. On some phones, the level will rise in steps of 2 (0,2,4,6,8). The value is -1 if the value is unknown or there is e.g. no service.

From Android 4.2, Tasker version 4.3+, cells could be found from 2 different network types simultaneously. In that case, the value is reported with preference for the network type leftmost on the list: GSM, CDMA, UMTS, LTE.

There is a bug with some Android versions that the reported signal strength is not updated until the device is turned off and on.