VoxCommando
Help and Support (Using VoxCommando) => Vera Home Automation Controller => Topic started by: AgileHumor on February 24, 2014, 10:16:17 PM
-
Samples:
* Dim 'Downstairs Hallway Light' to '15' percent (Sample Video #1 (http://1drv.ms/1mEhht0))
* Turn 'Living Room Lamp' 'On' (Sample Video #1 (http://1drv.ms/1mEhht0))
* Run Scene 'Goodnight'
* 'Raise' 'Dining Room' Window (Sample Video #2 (http://1drv.ms/1mEhoET))
* Turn 'On' 'Downstairs Hallway Light'
X = Device
Y = Action/Level
Note - Most Star Trek wave files downloaded from here: http://www.stdimension.org/MediaLib/technologye.htm
Dim X to Y (i.e Dim 'Downstairs Hallway Light' to '15' percent) - Based off youtube demo by Jitterjames
<?xml version="1.0" encoding="utf-16"?>
<command id="115" name="Dim X to Y" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Vera.Dim</cmdType>
<cmdString>{1}&&{2}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Sound.PlayWav</cmdType>
<cmdString>{Path.PFx86}\VOX\Wav\tricscan1.wav&&false</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>Dim, Adjust Light</phrase>
<payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">Vera\dimmable.xml</payloadFromXML>
<phrase>to</phrase>
<payloadRange>0,100</payloadRange>
<phrase optional="true">percent</phrase>
</command>
Turn X Y (i.e Turn 'Downstairs Hallway Light' 'On')
<?xml version="1.0" encoding="utf-16"?>
<command id="88" name="Turn X Y" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Vera.SetState</cmdType>
<cmdString>{1}&&{2}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Sound.PlayWav</cmdType>
<cmdString>{Path.PFx86}\VOX\Wav\tricscan1.wav&&false</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>Turn, Switch</phrase>
<payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">Vera\switches.xml</payloadFromXML>
<payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\OnOff.xml</payloadFromXML>
</command>
Run Scene X (i.e. Run Scene 'Goodnight')
<?xml version="1.0" encoding="utf-16"?>
<command id="98" name="Run Scene X" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Vera.Scene</cmdType>
<cmdString>{1}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Sound.PlayWav</cmdType>
<cmdString>{Path.PFx86}\VOX\Wav\tricscan1.wav&&false</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>Run Scene, Automate, Execute Scene</phrase>
<payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">Vera\scenes.xml</payloadFromXML>
</command>
Y X Window - (i.e. 'Raise' 'Dining Room' Window)
<?xml version="1.0" encoding="utf-16"?>
<command id="140" name="Raise or Lower X Window Blind" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Vera.Raw</cmdType>
<cmdString>data_request?id=action&output_format=xml&DeviceNum={2}&serviceId=urn:upnp-org:serviceId:WindowCovering1&action={1}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Sound.PlayWav</cmdType>
<cmdString>C:\Program Files (x86)\VOX\wav\beam1a.wav&&false</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Vera.Raw</cmdType>
<cmdString>data_request?id=action&output_format=xml&DeviceNum={2}&serviceId=urn:upnp-org:serviceId:WindowCovering1&action={1}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\RaiseLower.xml</payloadFromXML>
<payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">Vera\blinds.xml</payloadFromXML>
<phrase>Window</phrase>
<phrase optional="true">Blinds</phrase>
</command>
-
Thanks. I think it might help others if you also attach
- raiselower.xml
- OnOff.xml
I don't remember if OnOff.xml is standard.
I guess blinds.xml is just a subset of your devices.xml?
-
Good idea James!
OnandOff.xml
<?xml version="1.0" encoding="utf-8"?>
<!--A VoxCommando Payload file-->
<PayloadsRoot>
<payload>
<value>0</value>
<phrase>Off</phrase>
</payload>
<payload>
<value>1</value>
<phrase>On</phrase>
</payload>
</PayloadsRoot>
RaiseLower.xml
<?xml version="1.0" encoding="utf-8"?>
<!--A VoxCommando Payload file-->
<PayloadsRoot>
<payload>
<value>Up</value>
<phrase>Raise</phrase>
</payload>
<payload>
<value>Down</value>
<phrase>Lower</phrase>
</payload>
<payload>
<value>Stop</value>
<phrase>Stop</phrase>
</payload>
</PayloadsRoot>
-
It is good practice to paste command or group xml into code blocks on the forum (as you have done) because it makes it very easy to copy and paste them to between the VC command editor and the forum, but with external files such as payloadXML files it is easier (for everyone) to attach files to your post. If a user wants to use your code now they will need to create a blank document, paste the xml into it, and then save the file, taking care to get the filename right. You probably also had to do extra steps to put it into code blocks when posting it.
In case you were not aware, you can attach files to posts on a SMF forum by clicking on "Additional Options" which is below and to the left of the text entry box.
-
Will do :)
-
Turn Y X (i.e Turn 'On' 'Downstairs Hallway Light')
<?xml version="1.0" encoding="utf-16"?>
<command id="100" name="Turn Y X" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>Vera.SetState</cmdType>
<cmdString>{2}&&{1}</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Sound.PlayWav</cmdType>
<cmdString>C:\Program Files (x86)\VOX\wav\processing2.wav&&false</cmdString>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>Turn, Switch</phrase>
<payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">payloads\OnOff.xml</payloadFromXML>
<payloadFromXML phraseOnly="False" use2partPhrase="False" phraseConnector="by" Phrase2wildcard="anyone" optional="False">Vera\switches.xml</payloadFromXML>
</command>
-
Thanks.
One thing I recommend that you do is to name your commands using {1} and {2} instead of X and Y. It won't change how the command is triggered, or how it works, but it changes how they are displayed when listing alternate commands. The way you have named the command, VC will show in alternates as Turn X Y, but if you changed the name to use {}, it would display as Turn [Kitchen Light] [On]
-
I added some sample videos at the top.
-
If you use a amulet remote, you need not the prefix "computer". You can use the "AmuletUSB.exe" - it generate events in VC when you tilt the amulet.
here is a video to show you the effect: www.youtube.com/watch?v=Hw065b9b-d0 (http://www.youtube.com/watch?v=Hw065b9b-d0)
nonetheless you can use the phrase computer for the StarTrek effect.
You will find this programm by downloading the "VoxCommando Extras" from the download page: http://www.voxcommando.com/downloads.asp (http://www.voxcommando.com/downloads.asp)
-
If you listen carefully, you can hear the communicator sound when the amulet turns on. I think Agile just likes to say computer. ;)
-
Great videos too!
:clap ::wiggle
-
Yep, I forget to say - really great stuff :clap
-
Since most folks aren't used to speaking to a computer...I thought I'd model it off the Enterprise.
And yes, it is the communicator sound when the Amulet goes vertical. I'm planning to purchase an open air mic, so practicing prefix "computer" to stay consistent.
Sadly, I still need to edit the videos as the last commands in each didn't fire correctly.
-
Some times ON and OFF sound similar enough to the computer that they are not 100% reliable. I found that adding the alias Onn to on and Awf to off can help a bit.
You can always come up with other phrasings using words such as enable, disable, activate, brighten, shut off etc. if you find that you can't get on and off to work reliably enough. Note that you can use aliases in payloadXML files for phrases by using a comma just as you can in regular phrases in your tree.