element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Blog Voice controlled holiday lights w/ OpenHAB & Tasker
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: electronichamsters
  • Date Created: 7 Jan 2015 3:52 AM Date Created
  • Views 467 views
  • Likes 1 like
  • Comments 0 comments
  • sensors_lights_sounds
  • iot_holidaylights
Related
Recommended

Voice controlled holiday lights w/ OpenHAB & Tasker

electronichamsters
electronichamsters
7 Jan 2015

I'm still waiting on my LED lights, which is making me nervous.  Perhaps I shouldn't have ordered from eBay image

 

So, in the mean time, I've been working on some automation stuff with lights (when I get them).  I've always wanted voice control, but something that is continuous, and does not require pushing buttons prior to the voice command.  I found out about how Tasker can send HTTP Post/Get commands to OpenHAB.  Tasker also has a plugin called Autovoice, which can run in "continuous" mode, so it will always monitor your voice.  So here's an example of how to do this integration.

 

Here's the holiday lights screen.

 

image

 

 

Video of a quick demo.

This video is unavailable.
You don't have permission to edit metadata of this video.

 

 

I have an item defined this way:

Switch itm_holiday_on "Lights Enable"

 

Under Tasker, define a new Task to turn off the switch.

New Task > Action > Net > HTTP Get

 

Server:Port

OpenHABuser:OpenHABpassword@192.168.x.x

Path

CMD

 

Attributes

itm_holiday_on = OFF

 

Do a similar task for turning it on, but just replace the attribute with "=ON".  You can test the task by using the play button at the bottom.  Executing these tasks should turn the switch off or on.

 

image

 

 

Next, we use voice commands to activates profiles that run these tasks.

 

 

In the Profiles tab on Tasker, create a new profile.

Event > Plugin > Autovoice > Recognized

 

Edit the configuration for this event.  Set the "Command Filter" to whatever you want the voice command to be.  Then go down to pick a "Trigger Word".  In my case, the Trigger Word is "Computer", and the Command is "on" or "off".  Exit out of the profile creation and you'll be prompted to pick a task for this event.  Pick either the on task or the off task created previously.

 

Next, open up the Tasker plugin called Autovoice.  Set it to run continuously.  This will make it run voice recognition all the time, and act as the "computer" in Star Trek.

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube