Sunday, November 23, 2014

LightwaveRF Integration with XBMC

First, register your node to the LightwaveRF Wifi-Link

# echo -ne "666,\!F*p" | nc -u -w1 192.168.1.x 9760

(if may be useful to list on post 9761 to watch responses
# nc -ul 9761)

Then watch your WiFi-Link to confirm the new node.

Then you should be ready to start sending coommands
echo -ne "001,\!R1D2F1" | nc -u -w1 192.168.1.x 9760

I used XBMC Service Callbacks to hook into Play/Stop/Pause/Resume and to call these scripts to interact with the lightong (Lights off on Play/Resume, Lights On on Stop, and 40% dim on Pause).
http://forum.kodi.tv/showthread.php?tid=151011

(Cinema Experience will be a better way to do this in future, so you're not always turning on/off lights when watching regular/daytime TV and just for Movie Nights)

4 comments:

  1. Hi Thos

    I'd love to get this working myself but dont seem to be able to get it working.

    Could you explain a little more for an idiot like me ? I have everything set up on XBMC but cant get it to register as a device on the Wifilink or send commands.

    Thanks

    ReplyDelete
  2. Have you got your wifi controller working ok on local LAN? Mobile app should be working over Wifi?
    Get your wifi controller IP and make sure you can ping it from your XBMX/Kodi box.

    Main thing is to get XBMC registered with the wifi controller first.

    So setup your listen port:
    # nc -ul 9761

    Then try to register:
    # echo -ne "666,\!F*p" | nc -u -w1 your_ip_here 9760

    Also try to watch your Wifi controller display to see if you get a successful register.

    ReplyDelete
  3. Ah thanks for the quick reply :) I think my problem is that my XBMC setup runs on windows , these look like Linux commands to me so I'm downloading cygwin right now , hopign that can help me.

    ReplyDelete
  4. Yes, that's Linux. I'm using OpenElec mostly.

    Try this:
    http://lightwaverfcommunity.org.uk/forums/topic/windows-command-line-control/

    ReplyDelete