Help sending autovoice commands to autoremote on another device

190 views
Skip to first unread message

Ted Stack

unread,
Feb 25, 2015, 2:32:27 PM2/25/15
to joao...@googlegroups.com
I have a tablet on a wall that is used for the home automation of lights/xbmc/googlemusic/security/etc that I want to pass commands to from my phone. I have successfully setup the functionality for xbmc control but am having trouble discovering a method to get the data to parse to other apps/tasks (e.g. googlemusic).

Currently I have autovoice on my phone recognize the command "tablet", then have autoremote send the message: xbmc=:=%avcommnofilter
Autoremote on the tablet then recognizes "xbmc" and sends the %arcomm data to the autoshare YATSE widget.

What I want to have happen is to say "tablet, xbmc/lights/security/music/etc +______command" on my phone, then have autoremote on the tablet parse the info on to the correct task. With using xbmc=:=%avcommnofilter it closes that possibility because it locks the "tablet" voice-command to xbmc. How do I make the tablet parse %avcomnofilter if I don't use =:=? Or, how can I use =:= on %avcommnofilter once the message gets to the tablet?

I apologize if this question seems a bit scattered, but wrapping my head around the correct syntax here is quite a process :)

Ted Stack

unread,
Feb 25, 2015, 10:58:36 PM2/25/15
to joao...@googlegroups.com
I am thinking that the "Target" setting might be of use here but don't see any documentation that explains it thoroughly with an example. Is this right?

João Dias

unread,
Feb 26, 2015, 5:56:00 AM2/26/15
to joao...@googlegroups.com
I don't think target will be of much help here.

Sorry, but I got a bit confused with what it is you want to do exactly.
Can you please show me a concrete example of what you're doing and what exactly isn't working? Thanks

--
You received this message because you are subscribed to the Google Groups "joaomgcd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joaomgcd+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

scott...@gmail.com

unread,
Feb 26, 2015, 9:46:52 AM2/26/15
to joao...@googlegroups.com
I'm confused, too. I'll take a stab at it, anyway.

What might be a cool way to handle it is to set up all of the voice commands on the tablet (which you probably want to do anyway) and then from your phone you'll just say "tablet" and then the voice command you'd use if you were talking to your tablet. That way %avcommnofilter contains the voice command you want.

Then you'd just send a AutoRemote message with something like tablet=:=%avcommnofilter.

On the tablet you'll look for "tablet" as a AutoRemote message and then do a Plugins->AutoVoice->Test Command with %arcomm.

Here's an example of how it would work. On the tablet you'll have AutoVoice respond to "kitchen lights on" by turning the kitchen lights on. On your phone you'd say "tablet kitchen lights on". That would send the AutoRemote message "tablet=:=kitchen lights on" to the tablet. The tablet would get the message and send "kitchen lights on" to AutoVoice and it would respond in the exact same way as if you said it to your tablet.

Is that the type of thing you're looking for? Also, can someone confirm that would work?

Ted Stack

unread,
Feb 26, 2015, 1:44:27 PM2/26/15
to joao...@googlegroups.com, scott...@gmail.com
That's actually pretty brilliant to populate the autovoice test command. My goal was exactly as you guessed with having the phone command be the same as speaking directly to the tablet. The issue I was running into was with not being able to use =:= in the tablet syntax. Your method is still much cleaner and more robust. I'll test it when I get home tonight!

Huge THANKS

scott...@gmail.com

unread,
Feb 26, 2015, 1:53:20 PM2/26/15
to joao...@googlegroups.com
I'm glad you understood what I was trying to say. I wasn't sure how clear I was coming across.

To be honest with you, I didn't even realize the AutoVoice test action existed until I saw the recent thread about it. At first I didn't really see how it would be all that useful until you posted this thread. Now it seems ingenious!

I haven't tried using AutoRemote without going through the internet (i.e. I haven't tried sending directly to a device on the same network). If you're doing it that way how long does it take the messages to get through? I'd probably be frustrated with having to wait from 5-15 seconds (how long my AutoRemote messages take to get from one device to another) for a light to go on after I issued a voice command.

Ted Stack

unread,
Feb 26, 2015, 2:40:02 PM2/26/15
to joao...@googlegroups.com
Haha, I thought the same thing when I first saw the test command. Joao is a genius.

When I was testing the original setup with xbmc the delay was barely perceptible. I do know there is an option to have autoremote only look on your network, so Joao might have built in some awareness to autodetect a preferred network stream...again, genius.

I'll run a latency test tonight and post the results. Thanks again.

Ted Stack

unread,
Feb 26, 2015, 8:18:59 PM2/26/15
to joao...@googlegroups.com
It works beautifully. I'll test the latency later tonight when the wife goes to bed. Thanks again!
Reply all
Reply to author
Forward
0 new messages