www.homeseer.com    
 

Go Back   HomeSeer Message Board > HomeSeer Products & Services > HomeSeer IFTTT Channel Integration

HomeSeer IFTTT Channel Integration General Discussion of HomeSeer's IFTTT Channel

Reply
 
Thread Tools Display Modes
  #1  
Old December 13th, 2016, 02:39 PM
baudi baudi is offline
Seer Deluxe
 
Join Date: Aug 2007
Location: Virginia
Posts: 205
Google Home, Chromecast Audio, and IFTTT

Opening a discussion about ways to integrate IFTTT with Google Home and Chromecast Audio (oh, and Homeseer too).

We have many options and possibilities, including,
  1. IFTTT => Maker url to send voicecommand via MyHS
  2. Capturing voice command before it's executed and "improving" it by making it location aware (for example)
  3. Casting confirmation or other speech to the Google Home device that's nearest (maybe using castnow, or maybe using an always-on android device with autocast and tasker installed)
  4. Using api.ai to build a conversation action, with fullfillment via webhook to MyHS (I don't really know what I'm talking about here, but I think this is a possible thing).
  5. Other stuff
Anyway, game on.
__________________
David
Reply With Quote
  #2  
Old December 13th, 2016, 02:50 PM
tpchristian's Avatar
tpchristian tpchristian is offline
Seer Master
 
Join Date: Jun 2010
Location: IL
Posts: 996
Quote:
Originally Posted by baudi View Post
Opening a discussion about ways to integrate IFTTT with Google Home and Chromecast Audio (oh, and Homeseer too).

We have many options and possibilities, including,
  1. IFTTT => Maker url to send voicecommand via MyHS
  2. Capturing voice command before it's executed and "improving" it by making it location aware (for example)
  3. Casting confirmation or other speech to the Google Home device that's nearest (maybe using castnow, or maybe using an always-on android device with autocast and tasker installed)
  4. Using api.ai to build a conversation action, with fullfillment via webhook to MyHS (I don't really know what I'm talking about here, but I think this is a possible thing).
  5. Other stuff
Anyway, game on.
I worry about security of the Maker channel. I am hesitant to go down that route. I'd prefer to go down the route of the official IFTTT service or the 3rd party route.
__________________
- Tom

http://www.sage-software.com
HSPro, Insteon, HomeVision
Reply With Quote
  #3  
Old December 13th, 2016, 02:51 PM
baudi baudi is offline
Seer Deluxe
 
Join Date: Aug 2007
Location: Virginia
Posts: 205
Here's how to get a voice command from IFTTT to HS.

IFTTT Google Home => Maker applet, with the following Maker URL
Code:
https://connected2.homeseer.com/JSON?user=USER&pass=PASS&request=voicecommand&phrase={{TextField}}
And, quoting Rich

Create a script named "check_vcmd.vb" and put it in the scripts folder. Whenever a voice command is given (from any source, including a mic or the Echo), your script will be called and the voice command passed. If you return an empty string, HS will continue to parse the command normally. If you return a non-empty string, parsing will stop at your script. Here is a sample script.

Code:
Function Main(parm as object)
	hs.writelog("VCMD","Phrase: " & parm)
        'Do stuff
	return "stop"
End Function
Reply With Quote
  #4  
Old December 13th, 2016, 02:52 PM
baudi baudi is offline
Seer Deluxe
 
Join Date: Aug 2007
Location: Virginia
Posts: 205
Quote:
Originally Posted by tpchristian View Post
I worry about security of the Maker channel. I am hesitant to go down that route. I'd prefer to go down the route of the official IFTTT service or the 3rd party route.
Me too.
Reply With Quote
  #5  
Old December 13th, 2016, 05:20 PM
baudi baudi is offline
Seer Deluxe
 
Join Date: Aug 2007
Location: Virginia
Posts: 205
An interesting capability of the check_vcmd.vb script is that you can reissue a modified version of the voice command. For example, suppose you have a way to determine that a given command should have "living room" prepended to it (because you know where the command was issued, by some means). The following script accomplishes that.

Code:
Function Main(parm as object)
  hs.writelog("VCMD","Phrase: " & parm)
  try
    Dim webClient As New System.Net.WebClient
    Dim result As String = webClient.DownloadString("http://localhost/JSON?request=voicecommand&phrase=living room " & parm)
    hs.writelog("VCMD",result)
  catch ex as Exception
    hs.WriteLog("VCMD", ex.message)
  end try
  return "stop"
End Function
An obvious question is why the new voice command doesn't trigger the script again and send Homeseer into a loop. The reason is that the script is already running and Homeseer won't run it again. You get a "script already running" warning in the log, but the modifed version of the command runs just fine.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ChromeCast Audio Jingoro HomeSeer General Discussion Area 54 September 25th, 2017 04:28 PM
Chromecast Audio/Home Sireone AirplaySpeak 9 September 20th, 2017 01:39 PM
Google Chromecast & Chromecast Audio Control CharlieWayne Media Controller Plug-in (3P) 1 December 10th, 2016 05:22 PM
Google Home? fwolferd User Interface Discussion 3 November 26th, 2016 10:32 AM
Google TV or ChromeCast control? eliashall HS3 / HS3PRO Discussion 2 June 5th, 2015 05:05 PM


All times are GMT -4. The time now is 02:12 PM.


Copyright HomeSeer Technologies, LLC