I created some basic automator scripts to emulate Ubi/Ivee voice control with SmartThings. All that is needed is the REST Endpoint Example and a Mac with OS X Mavericks installed.
First, “Speakable Items” have to be enabled in System Preferences > Accessibility
In the “Listening Key” tab, it can be set to start listening when a keyword is said. In my example, it is when I say “Siri”.
Then, open Automator and for Type of Document select Application.
From the Actions column, click on Utilities and drag “Run Applescript” over to the right.
Input the following into the applescript -
set theURL to "https://Enter/REST/Endpoint/URL/Here” do shell script "curl " & quoted form of theURL
Save the automator script as “Turn on the lights” or whatever the rest endpoint url executes. Save the automator script as a speakable item.I created multiple copies of the automator script and saved them with different filenames like “Lights On”, “Let there be light”, etc. so I could have some flexibility on the phrasing.
If you want to add a bit more Siri look & feel, you can make the automator script reply to you by voice. From the Actions column, click on Text and drag “Get Specified Text” below the applescript and input whatever text you want automator to say. Again from the same Text tree, drag “Speak Text” below “Get Specified Text” and select a voice.
The mac may not have the hearing range that the alternatives do, but I’m sure this could be improved with some cheap microphones.