News:

HOT TIP! Enable the History Window in the main UI when trying to problem solve. It provides a handy log of what is happening. Roll over lines in the History to get more details.

Main Menu

LightwaveRF Wifi

Started by driver02, March 28, 2015, 12:08:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

driver02

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 :'(

jitterjames

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.

driver02

Oh Thankx james I give you my teamviewer Id      903 739 136    pass now or later

nime5ter

James says he'll be with you in 10 minutes or so. You can PM him the password.
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

the first password you sent me in invalid.

jitterjames

#20
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&#xD;&#xA;D1 = Device 1&#xD;&#xA;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&#xD;&#xA;D1 = Device 1&#xD;&#xA;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>



driver02

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 ?


nime5ter

#22
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
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

jitterjames

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%.

driver02

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