AutoNotification AutoNotification Quick Settings Tile not working

Discussion in 'AutoApps' started by SmartValley, Mar 15, 2017.

  1. SmartValley

    SmartValley New Member

    Joined:
    Feb 17, 2017
    Messages:
    7
    Likes Received:
    0
    I am trying to create a Quick Settings tile, to turn ON and OFF my light.

    I am following tutorial:
    https://community.home-assistant.io...utomation-with-tasker-from-quick-toggles/5197

    I have successfully created:
    1. Drejceva Soba ON
    Task to turn the light ON - tested it in tasker and it works perfectly.

    2. Drejceva Soba OFF
    Task to turn the light OFF - also works perfectly.

    3. Toggle Drejceva Soba
    Task to check: If the light is ON, turn it OFF; if the light is OFF, turn it ON - works perfectly in tasker.

    4. Toggle Control
    Task to control my toggles.
    Code (Text):
    Toggle Control (23)
        A1: Perform Task [ Name:Toggle Drejceva Soba Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ] If [ %ancomm ~ living ]

    I created a Tasker profile (Profile > Event > AutoNotification) and linked it to my "Toggle Control" task and set command filter as Toggle=:=

    Unfortunately it doesn't work and I am out of ideas. Tile shows correctly in notification shade, with a right icon and right label, but when I click it, nothing happens :S The problem is in setting up correct command filter in profile and also maybe 4th task is not correct?

    I am running official Nougat on my Samsung Galaxy S7 Edge.

    Any help would be greatly appreciated.
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Can you please try with the "AutoApps" condition instead of the AutoNotification condition? thanks in advance
     
  3. SmartValley

    SmartValley New Member

    Joined:
    Feb 17, 2017
    Messages:
    7
    Likes Received:
    0
    Ok, I tried with Pofile > Event > Plugin >AutoApps and set Command filter as Toggle=.=
    It still doesn't work. When I click the tile, nothing happens.
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Can you please check the logs in AutoApps?
     
  5. SmartValley

    SmartValley New Member

    Joined:
    Feb 17, 2017
    Messages:
    7
    Likes Received:
    0
    I have checked the logs... when I click the tile I get the following entry in log:

    New Last Command: Toggle=:=living

    Here are all my tasks descriptions. All tasks surely work if I run them in Tasker, I just don't know for the last one (Toggle Control). If I run it in Tasker I get the following in my log in Tasker:

    Running 23 Toggle Control
    IfFail 23.1 Toggle Control.Perform Task
    ExitOK 23 Toggle Control

    Is there an error in this task?

    Code (Text):
    Drejceva Soba ON (9)
    A1: AutoNotification Tiles [ Configuration:Tile: 1
    Command: Toggle=:=living
    Label: Drejceva Soba 1
    Icon: android.resource://net.dinglisch.android.taskerm/hl_aaa_ext_bulb
    State: 2 Timeout (Seconds):60 ]
    A2: Variable Set [ Name:%service To:light/turn_on Recurse Variables:Off Do Maths:Off Append:Off ]
    A3: HTTP Post [ Server:Port:%HASS_SERVICE%service%HASS_PSW Path: Data / File:{"entity_id":"%HASS_DREJC_ROOM"} Cookies: User Agent: Timeout:10 Content Type:application/json Output File: Trust Any Certificate:Off ]
    A4: Variable Set [ Name:%Drejcevasoba To:On Recurse Variables:Off Do Maths:Off Append:Off ]
     
    Code (Text):
    Drejceva Soba OFF (21)
        A1: AutoNotification Tiles [ Configuration:Tile: 1
    Command: Toggle=:=living
    Label: Drejceva Soba 1
    Icon: android.resource://net.dinglisch.android.taskerm/hl_aaa_ext_bulb
    State: 1 Timeout (Seconds):60 ]
        A2: Variable Set [ Name:%service To:light/turn_off Recurse Variables:Off Do Maths:Off Append:Off ]
        A3: HTTP Post [ Server:Port:%HASS_SERVICE%service%HASS_PSW Path: Data / File:{"entity_id":"%HASS_DREJC_ROOM"} Cookies: User Agent: Timeout:10 Content Type:application/json Output File: Trust Any Certificate:Off ]
        A4: Variable Set [ Name:%Drejcevasoba To:Off Recurse Variables:Off Do Maths:Off Append:Off ]
     
    Code (Text):
    Toggle Drejceva Soba (22)
        A1: If [ %Drejcevasoba ~ On ]
        A2: Perform Task [ Name:Drejceva Soba OFF Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ]
        A3: Else If [ %Drejcevasoba ~ Off ]
        A4: Perform Task [ Name:Drejceva Soba ON Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ]
        A5: End If
    Code (Text):
    Toggle Control (23)
        A1: Perform Task [ Name:Toggle Drejceva Soba Priority:%priority Parameter 1 (%par1): Parameter 2 (%par2): Return Value Variable: Stop:Off ] If [ %ancomm ~ living ]
     
  6. SmartValley

    SmartValley New Member

    Joined:
    Feb 17, 2017
    Messages:
    7
    Likes Received:
    0
    I managed to figure it out.

    I had to put %aacomm instead of %ancomm and command filter has to be just Toggle instead of Toggle=.=...now it works nicely. Great app, keep up the good work and thanks for your help!
     
  7. Peter Schmitz

    Peter Schmitz New Member

    Joined:
    May 19, 2017
    Messages:
    3
    Likes Received:
    0
    You say "command filter is <<Toggle=.=>>" and declare your commands with <<Toggle=:=>> . [dot] and : [colon] differ. did you check that?
     

Share This Page