Home Automation - Chaining Voice Commands 1.0.0.4

Turn on,off,start.. many devices with one voice command

  1. Javier
    1.0.0.2 Completed Android App! ***Use this tasker XML or Download from Google Play***

    Note: At of the end of 2016 I made the decision to start a native android app based on this project and no longer have time to support both. Please go to my wordpress site for the latest version of this project.
    https://voiceforiot.wordpress.com/



    INSTRUCTIONS FOR THE APP ARE HERE:

    plus.google.com/+JavierRefuerzo/posts/Y2ANQYXS3bU



    Home Automation - Chaining Voice Commands, by Javier Refuerzo, Denver, CO. USA. June 31, 2015

    plus.google.com/+JavierRefuerzo


    See this forum for addtional information
    http://forum.universal-devices.com/topic/16389-tasker-autovoice-chaining-voice-commands-project/

    This project was created to chain together home automation tasks in a single voice command using natural English sentence structure (***Now supports other languages****). Examples of commands that can work are "turn on the tv and turn off the lights", "turn off the living room, dinning room and kitchen lights", "turn the living room and basement lights off", "turn off all the lights", "start the playstation in the bedroom" and "turn off all the lights and turn on the playstation".

    Instructions
    AutoVoice is required for this project to work! UDP Sender is only required for EVENTGHOST.

    To use "OK GOOGLE" commands or to say commands after pressing the GOOGLE NOW SEARCH BOX on the GOOGLE NOW launcher you need to enable Settings>Accessibility>AutoVoice_Google_Now_Intergration

    If this commands are not working after following these instructions please restart device. There can be many things that did not initialize correctly but usually a device restart fixes these issues. Also be sure you have opened settings and set your local IP ADDRESSES, USER NAMES, PASSWORDS, and any other variables. Also Tasker MUST be installed before any plugins such as AutoVoice. (I am working on error messages in case settings are not set, but this is still an early version of this project).

    Here are a few screen shots which show the program/project in action

    First import the project:

    Download the project and save to the Tasker>Projects folder. In the tasker menu select "Preferences" and under the "UI" tab make sure "Beginner Mode" in UNCHECKED". Now long click any Project (or the Home Icon on the bottom of the screen) and click "Import". Select "Voice V .3" (this is the name of the project which may have a different version number). Now back out of tasker to save the project into tasker.



    Initialize Project: Open tasker and select the "TASKS" tab. Click the task "Home Automation - Chaining Voice Commands (Has a chain Icon to the right of the task). Click the play button on the bottom right.
    OR
    Add a widget to the home screen linked to the task "Home Automation - Chaining Voice Commands" as it shows settings for the program/project.

    Long Click on the home screen and select "WIDGETS"
    [​IMG]

    Then find the "Task" Widget
    [​IMG]

    Click and hold the "Task" Widget to place on home screen
    [​IMG]

    Once the "Task" widget is placed on screen the "Task Selction" will popup. Select the task "Home Automation - Chaining Voice Commands"
    [​IMG]

    Once Selected the "Task, Widget / Home Automation......" needs to be saved by clicking the tasker icon at the top left of the screen.
    [​IMG]

    Now you can click the widget (chain icon) to access settings for this project.
    [​IMG]





    Settings Home Screen. I have pre-defined some variables, but you can add or delete rooms/locations, devices and Actions

    [​IMG]



    Settings Menu. This menu is accessed by pressing the hamburger icon

    [​IMG]



    ISY Settings. After IP address, User Name and Password are entered Click "REFRESH ISY DEVICES, SCENES AND PROGRAMS". THAT'S IT, TIME TO START!

    [​IMG]



    Now click (or say "OK Google" if your device supports) the google now search box and say your command

    [​IMG]



    If a command containing any combination of device(s) (listed in the Settings Home Screen) and action(s) (listed in the Settings Home Screen) then the program/project will start. If a device has not been linked a screen will popup asking the user to specify how they would like to handle the device. The following screen shots will show how to link an ISY device or scene. Currently default settings support on, off, brighten and dim for devices and scenes, this can be changed in settings.


    Select Device Type. "UD ISY" is clicked in this example

    [​IMG]



    Select "ISY Devices and Scenes" or "ISY Programs"

    [​IMG]



    Select the device

    [​IMG]





    THAT'S ALL!

    Now next time you say that device it will automatically trigger


    *****This is an early version of this project, please help by reporting bugs and or contributing fixes. Please contact me via google plus or in the autoapps forum under this project******

    ALL SETTINGS (EXEPT IP ADDRESSES, USER NAMES, AND PASSWORDS) ARE SAVED TO YOUR SD CARD IN THE FOLDER "HA Chaining Voice Commands" TO MAKE UPGRADES AND TRANSFERS EASIER.

    "AUTOVOICE" IS REQURED FOR THIS PROJECT TO WORK. "UDP SENDER" IS REQUERED FOR AUTOMATIC EVENTGHOST COMMUNICATION.

    There are many predefined rooms, actions and devices. When a combo of device and command are spoken a scene will lauch to prompt the user to input how they would like to handle the device. If the user has already defined an action for the device the action will be lauched

    Users can add Actions (on,off,unlock,ect..), Devices (lights, fan, door, ect..), Locations/Rooms (living room, dining room, patio, ect..), and a default room in settings.
    Add ISY (Home Automation Controller) Settings in ISY Settings under Menu.
    Eventghost settings are also under menu.


    ****COMMING SOON****

    Multi-word for all items. Currently only Locations/Rooms and Devices support multi-word

    Cleaner Scenes

    Scene to enter voice recognition corrections without changing tasks. Saving corrections to file to assist in project transfer and update. Currently corrections must be added to the task "corrections for incoming....


    Eventghost - Add alternate methods of communication with Eventghost i.e. AutoRemote. Currently supports EventGhost via UDP Sender tasker plugin which can be picked up by the EventGhost Broadcaster plugin.

    plus.google.com/+JavierRefuerzo
    Facebook.com/javier.refuerzo.1

    ******WHATS NEW*******
    Please See Updates for information on "WHATS NEW"
    V4.0.5
    Now supports ISY Programs (Devices and Scenes already supported)
    Bug fixes

    V4.0.0
    First user friendly release!

    Supports ISY Devices and Scenes.

    Supports Eventghost through the "UDP Sender" tasker plugin (AutoRemote Coming Soon)

    New cleaner scenes

    Additonal settings are now saved to sd card

    Added Tasker Scenes to navigate settings

    Added a tasker task list to chose a task to be executed for selected devices

    TOO MANY THING TO LIST!

    plus.google.com/+JavierRefuerzo
    Facebook.com/javier.refuerzo.1


    I put this together with information from many resources online. The following links were very helpful.

    Helpful Links
    http://developer.android.com/reference/java/util/regex/Pattern.html
    https://plus.google.com/u/0/102764176365539654965/posts/SbAMn7QuLVQ
    http://www.pocketables.com/2012/10/beginners-guide-to-tasker-part-7-variable-arrays.html
    https://stackoverflow.com/questions...20089?newreg=cd104d4f66b24177a8648751983e817f

    V2 Scene templates created by +DavidŠvorcBigman