AutoNotification Tile state variable (%antilestate) not being passed to task

Discussion in 'AutoApps' started by Daniel Matthews, Apr 13, 2020.

  1. Daniel Matthews

    Daniel Matthews New Member

    Joined:
    Apr 13, 2020
    Messages:
    3
    Likes Received:
    0
    I've setup a broadcast which sends the tap (single / double / long) and built-in variable %antilestate.

    I've added variable names for action and state in the profile but whilst the action variable is received in the task the tile state isn't.

    I just get the token %antilestate in the receiver rather than its value.

    Any help much appreciated.

    I've setup a broadcast which sends the tap (single / double / long) and built-in variable %antilestate.

    I've added variable names for action and state in the profile but whilst the action variable is received in the task the tile state isn't.

    I just get the token "%antilestate" in the receiver rather than its value.

    Any help much appreciated.

    Code (Text):
    Tiles: setup (208)
        A1: AutoNotification Tiles [ Configuration:Tile: AutoNotification
    Command: ToggleNfc=:=single-tap=:=%antilestate
    Double Tap Command: ToggleNfc=:=double-tap=:=%antilestate
    Long Tap Command: ToggleNfc=:=long-tap
    Label: NFC
    Icon: android.resource://net.dinglisch.android.taskerm/hd_aaa_ext_creditcard
    State: Toggle Active/Inactive Timeout (Seconds):60 ]
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,480
    Likes Received:
    801
    Hi there . Where were you expecting to get the %antilestate variable from exactly? Can you clarify?
     
  3. Daniel Matthews

    Daniel Matthews New Member

    Joined:
    Apr 13, 2020
    Messages:
    3
    Likes Received:
    0
    I was expecting to receive the value of %antilestate in the enter task I've specified from the profile that receives the AN tile tap event.

    It receives the tap type, the first variable specified in the profile but the second variable, state, should be set to%antilestate but doesn't, it gets the literal value of "%antilestate".

    This is the command being logged in AutoApps log:

    Code (Text):
    New Last Command: ToggleNfc=:=single-tap=:=%antilestate;
     
    Last edited: Apr 19, 2020
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,480
    Likes Received:
    801
    But that variable is only generated in the Tiles action, so it won't be available in the action itself, only after the action :) If you want to get the current state use the Tiles action with the Unchanged state. That'll give you the variable you can then use later in the task. Hope this helps!
     
  5. Daniel Matthews

    Daniel Matthews New Member

    Joined:
    Apr 13, 2020
    Messages:
    3
    Likes Received:
    0
    Sorry, I'm being thick but I'm not following.
    That's the tile set-up, the receiver profile catching the tile command didn't get the tile state variable value, only the literal.
     
  6. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,480
    Likes Received:
    801
    Yes, that will never get the tile state. Only the action can get it.
     
: tile, variable

Share This Page