AutoVoice Autovoice and dimming lights...

Discussion in 'AutoApps' started by Davierosoft, Dec 18, 2016.

  1. Davierosoft

    Davierosoft New Member

    Joined:
    Oct 8, 2016
    Messages:
    7
    Likes Received:
    0
    Hi!
    I made profiles for home lights. One profile for each room.
    I made a single autovoice recognize profile for each room. (kitchen, garage, living room...)
    The profiles toggles the light on (max bright) or off. So, If I say "kitchen" it turns on if previously off or viceversa.
    Now, I added a profile (chained with lastcommandID) "at XXX%" (using regex). This profile provides dimming function.
    All seems ok, however autovoice always triggers the dimming before the toggle command. This means that basically it turns dimmed light and then it will be turned at 100% or OFF.
    I added a second delay to the dimming task but it only delays both tasks of one seconds as the first task is always the last recognized command.
    Do you have a solution?
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,477
    Likes Received:
    806
    What I would do is in the same task that handles the normal toggling, check if the command contains "at" and if it does check what the percentage is and set it there in the same task :) No chaining or any other extra mess required.
     
  3. Davierosoft

    Davierosoft New Member

    Joined:
    Oct 8, 2016
    Messages:
    7
    Likes Received:
    0
    Hi! Sorry for have not replied for days...
    Ok, I'll try your way ;)
    Many thanks and, have a nice xmas and a happy new year!

    Andrew
     

Share This Page