AutoVera Control devices just like Scenes?

Discussion in 'AutoApps' started by Reazon, Jan 20, 2016.

  1. Reazon

    Reazon New Member

    Joined:
    Jan 20, 2016
    Messages:
    5
    Likes Received:
    0
    Hey!

    I just bought Tasker, Autovera and Autovoice.

    I got all my scenes to trigger with voice and its awesome. (Using only one profile like in the tutorial)

    Next, I would like to control devices one by one with variables
    Exemples: Dim Kitchen Light 25%, Lock Door, Turn on Living room light 100%, etc

    How would I do that?
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Glad you're enjoying it :)

    Check out this video:
    You can use variables for whatever you like :)

    So, for example you could have a command like "dim (?<device>.+) (?<percentage>[0-9]+)%" that would give you the device name and percentage to use in the "AutoVera Devices" action :)

    Hope this helps
     
  3. Reazon

    Reazon New Member

    Joined:
    Jan 20, 2016
    Messages:
    5
    Likes Received:
    0
    Oh thanks!
    Im almost there! Dosent seem to respond to anything yet
    i put %device in advance - device, and %percentage in action.
    I dont get any error but nothing happens.
    Can you take a look at my codes?

    [​IMG]
    [​IMG]
    [​IMG][/url][/IMG]
     
  4. Reazon

    Reazon New Member

    Joined:
    Jan 20, 2016
    Messages:
    5
    Likes Received:
    0
    Maybe i dont understand what I need to say. For example i said "dim kitchen light ten percent", i also tried "dim kitchen light ten"
    I made sure kitchen light is the name of my device in Vera, and Autovera.
     
  5. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Can you please add a Flash action prior to the AutoVera Devices action just to check if the variables have the correct values?
     
  6. Reazon

    Reazon New Member

    Joined:
    Jan 20, 2016
    Messages:
    5
    Likes Received:
    0
    Yay! I got it working. I tried with dim (?<device>.+) (?<percentage>[0-9].+)% instead of dim (?<device>.+) (?<percentage>[0-9]+)% and it works now. Didint know if not putting the "." was a mistake or if its just a coincidence lol.

    So my devices respond and everything works. Only thing now is that the status of the light for exemple, instead of being "25%", is showing NAN%. And I suspect its why my Vera app on my phone is crashing. Any idea? Its like if the app dosent like the loadlevel being set "manualy" on a light switch.

    Thanks so far, loving it :)
     
    Last edited: Jan 20, 2016
  7. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    hmm, what does the flash action I mention show when you do a command?
     
  8. Reazon

    Reazon New Member

    Joined:
    Jan 20, 2016
    Messages:
    5
    Likes Received:
    0
    Im not sure of what you mean by flash action.
     
  9. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    The flash action I mentioned before: new Action->alert->flash
     

Share This Page