VoxCommando
Help and Support (Using VoxCommando) => Infrared Codes (Learning and Sending) => Topic started by: driver02 on March 28, 2015, 12:08:28 PM
-
Sorry & Thank you James , I was not sure and 1think am going for the link you mention, I saw those one on ebay as well , Sorry for asking the same Quest? I just found out about Voxcommando 3 weeks ago and I have learn some of your video tutorials , I`ve install home automation with lightwaveRf 4 Years ago , Now how to control Lightwaverf threw Voxcommando is going to be mission for me, The only option I have right now is to learn from the USB-UIRT remote as you know lightwave is not compatible like home easy plug socket etc.. Also am going to try Voxwave as well Hope we success in Controlling Lightwaverf
Thank you :)
-
as you know lightwave is not compatible like home easy plug socket etc..
Actually, I don't think I have ever even heard of Lightwave RF. There are about 200 home automation "systems" out there. It is pretty hard to keep track. They all seem to have nearly identical Wordpress websites too. :biglaugh
Anyway, good luck and have fun. :D
-
Hello Again james, You might be thinking not this nightmare Again LOL , To be honest the day I found VC I don't want to know any other software (cool man)
:bonk I have been fighting hard to make VC to work with lightwaverf wifi link and I know is simple there is a way like for example to use eventghost as third party etc , There is some other folks make it work with Rasperi Pi here is his video demonstration https://youtu.be/gZkwvSX0_Os but for me it does not look neat (tidy) you know what I mean , The device can control with remote I can make it work threw USB-UIRT but I wanted to make it work threw IP like this guy did , because the lightwave have a wifi link and this automation is famous in LONDON and I was praying why cant super hero Jitterjames make a plugin for this device , Is just a wish James ,ok, I know a lots thing involve on that so am Trying , Once I get it running I will let you know Thank you
-
:bonk I have been fighting hard to make VC to work with lightwaverf wifi link
What does this mean? What things have you tried?
I don't understand how you would use a usb-uirt to control it.
It should be relatively easy to control lights etc using UDP.
-
Maybe this website will help you a bit - go to the end to the website at point "Network" - there is described, how the format looks like to send it over UDP and also how you connect to your LightWaveRF.
http://www.openremote.org/display/docs/OpenRemote+2.0+How+To+-+LightwaveRF
I hope this help ;)
-
No I haven't try UDP yet, And the remote control way USB-UIRT what I really mean was my Lightwaverf works with My Galaxy S4 mobile which I have an app install and it does send the link threw Local wifi or Internet Anywhere, Now I also have a remote control it control threw the IR to the Switch No need WIFI LInk , So that's what I ment to get the code from that remote and create a command threw VC
But now am going to check if UDP works because so many I saw on google said unsuccessful
-
But now am going to check if UDP works because so many I saw on google said unsuccessful
Maybe you have been reading different things than me. What I have read is that there is no real problem sending UDP messages to the LightwaveRF Wifi Link. The only problem people have reported is getting information back.
So, you may have trouble get status information about your devices, but if you want to SEND commands from VC to the Wifi Link to, for example, turn lights on and off, that should work as long as you get the syntax correct.
Kalle's link above looks like a great place to start. The documentation there describes how to construct the UDP commands.
In VoxCommando, you would need to enable the TCP plugin. The action for sending UDP messages is TCP.UDP.SendMixed. http://voxcommando.com/mediawiki/index.php?title=Plugin_TCP#UDP
-
Example.
If on the LightWaveRF website or app you have defined your Kitchen as Room 1. Then Kitchen = R1
If in the kitchen there is one light defined as Device 1, then Kitchen Light = D1
Then one of the following commands would hopefully work to turn the kitchen light on.
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.2-->
<commandGroup open="True" name="LightWavRF" enabled="True" prefix="" priority="0" requiredProcess="" description="">
<command id="662" name="Turn kitchen light on" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="Room 1 (R1) = imaginary kitchen (R1). Device 1 (D1) = kitchen light. F1 = On (F0 would be Off)">
<action>
<cmdType>TCP.UDP.SendMixed</cmdType>
<params>
<param>001,!R1D1F1|Kitchen Light|On</param>
<param>9760</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>Test version 1</phrase>
</command>
<command id="664" name="Turn kitchen light on (carriage return at end of command)" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="Room 1 (R1) = imaginary kitchen (R1). Device 1 (D1) = kitchen light. F1 = On (F0 would be Off)">
<action>
<cmdType>TCP.UDP.SendMixed</cmdType>
<params>
<param>001,!R1D1F1|Kitchen Light|On\x0D </param>
<param>9760</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>Test version 2</phrase>
</command>
</commandGroup>
-
Thank you nime5 and kel I know you guys are trying to help me , The problem am having is the udp is not connecting may be am doing it wrong , I set the ip address of my Wifi example 192.168.0.8 and udp port on 9760 1st then 9761 but am not getting any respond so I cant go further ,,,am still trying though
-
Is it possible that you need a username and password to connect normaly to the Lightwave?
-
There's probably not much we can do to help, but you can:
1. Post the xml for the VoxCommando commands you are trying to use so that we can see exactly what you're trying. Maybe we can see mistakes.
2. While it may not have useful information, you can also enable VC logging, run the commands again (even though they are not working for you), and attach your voxlog.txt file as well.
3. If you do the above, please let us know how you are figuring out the correct room number and device number information.
-
Thank you Nimster , To get the udp is not easy though , I have to open to register with openremote then Java Then locate my ip ,password ,port etc ,,Wow there a lot to learn , when I have time I will go threw this later but right now ::zzz
-
I think there is some confusion here.
You would need to install Open Remote and Java only if you want to use Open Remote to control your LightWaveRF using UDP.
You don't want that. You want to use VC to send the UDP messages.
As I suggested earlier, I recommend that you post here the VC command that you are trying, so that we can see what it is you're trying.
To install Open Remote and Java etc. seems like a pretty big waste of time given your goal.
-
Sorry Nime5ter, I`ve been a pain I know , ok may be I haven`t learn sending UDP message Properly only I did was running xbmc and text to speech so I though the rest would be easy
Ok here what I did , I forward my port in my router for the ip address of my wifi , My port forward was on UDP only not TCP/UDP that's what I set it
Then I went on VC and I was looking to enable the Plugin TCP so in my one I have two type TCP 2.2.0.1 and TCPMIC 0.1.6.1. so I try TCP 2.2.0.1 I put my ip and port and restart so this is where am stuck cant see connection i think am trying wrong plug inn
-
Yes it is quite easy if you are somewhat familiar with VoxCommando.
Ok here what I did , I forward my port in my router for the ip address of my wifi , My port forward was on UDP only not TCP/UDP that's what I set it
This is step is not necessary. You should not need to forward any ports. In general the only time you need to forward ports on your router is when you want to access something on your LAN from outside your home. In some cases Windows firewall might interfere but generally you only need to enable one exception for networking in general, not for specific ports.
Then I went on VC and I was looking to enable the Plugin TCP so in my one I have two type TCP 2.2.0.1 and TCPMIC 0.1.6.1. so I try TCP 2.2.0.1 I put my ip and port and restart so this is where am stuck cant see connection i think am trying wrong plug inn
You do not "connect" with UDP. UDP is just a message that gets sent out onto the network. There is no "connection" involved.
TCP is the correct plugin. You don't need to configure anything, only enable the plugin and then use the commands that nime5ter gave you. You were provided with two test commands. If you have a switch Device #1 in Room #1 then one of those two commands should work.
-
Thankx James , I did exactly what you said , I copy the code and I made a newgroup and I paste in there , Also I check my Light if is on room 1 all ok but I have sitting room on room1 so I don't think is any difference important we have a swich on room1 , but the VC SAYS no connection :'(
-
A log file would be required for us to see what you are actually doing and what is actually happening. I can't imagine a scenario where VoxCommando would "say no connection".
I think it would be much easier to help you if I can come look at your computer using TeamViewer.
-
Oh Thankx james I give you my teamviewer Id 903 739 136 pass now or later
-
James says he'll be with you in 10 minutes or so. You can PM him the password.
-
the first password you sent me in invalid.
-
We got it working!
First we had to reboot the device because it was not responding.
then we sent this command to register:
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.3.8-->
<command id="-1" name="Actions copied from LCB">
<action>
<cmdType>TCP.UDP.SendMixed</cmdType>
<params>
<param>169,!F*p</param>
<param>9760</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</command>
Then on the LightwaveRF Wifi controller device (the main box, not one of the switches) you much click the button for "yes"
then we are ready to start sending commands. for example to turn Room 1 Device 1 ON
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.3-->
<command id="662" name="Turn kitchen light on" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="R1= Room 1
D1 = Device 1
F1 = On (F0 would be Off)">
<action>
<cmdType>TCP.UDP.SendMixed</cmdType>
<params>
<param>001,!R1D1F1|</param>
<param>9760</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>Turn kitchen light on</phrase>
</command>
We could not get the dim command to work but that might be because we needed to use a capital P.
We were using Fdp but we should maybe be using FdP
You can try this:
To dim Room 1 Device 1 to 50% should be:
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.4.3-->
<command id="675" name="Dim kitchen light to fifty percent" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="R1= Room 1
D1 = Device 1
F1 = On (F0 would be Off)">
<action>
<cmdType>TCP.UDP.SendMixed</cmdType>
<params>
<param>001,!R1D1FdP16|</param>
<param>9760</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<phrase>Dim kitchen light to fifty percent</phrase>
</command>
-
Thank you so much James and yes it does work to 50% ,so now if I want it for 75% all I have to do is change the number to 20 or something please ?
-
The range of values is from 0 to 32, so 75% would be 24.
x = (75/100)*32
More generally:
dim value = (desired %) / 100 * 32
-
Thanks. Good to know it works with the capital P!
Yes you just use a number from 0 to 32
0 = 0%
8 = 25%
16= 50%
24 = 75%
32 = 100 %
and you can use any numbers in between if you want like 4 = 12%.
-
Yes James , It does work & I know you will definite figure it out
I don't know how to thank you , if you ever need my help in London please do not hesitate
I just start with home automation so please forgive me for taking your time James
I think am ready to purchase for full version and yes I will learn those tutorial from your forum not mr Ding Dong LOL