Control LightwaveRF devices by sending UDP commands to wiflink

Im new here so hello everyone!

I have had some success in controlling my LightwaveRF lights using UDP commands.

I can edit the startup.lua to add a function and then control the lights by calling this function from a scene.

I would now like to create a plugin to allow me to add devices and control the lights as tho they were native vera devices.

I have basic programming skills but am new to Lua.

Is this a very difficult task? and where should I start? I thought i could look at another plugin that uses UDP to control lights so looked at the files from the Milight plugin but couldn’t find any lua code, only the xml and json files. Am i missing something?

Thanks in advance.

Skipp

in startup:

function sendLWRF(strMessage) local socket = require "socket" local udp = socket.try(socket.udp()) broadcast_ip = '192.168.0.109' assert(udp:setoption("broadcast", true)) socket.try(udp:sendto(strMessage, '192.168.0.109', 9760)) end -- sendVC

In scene:

sendLWRF("001,!R1D1F1|Ceiling Lights|On") luup.sleep(200) sendLWRF("001,!R1D2F1|Ceiling Lights|On") luup.sleep(200) sendLWRF("001,!R1D3F1|Ceiling Lights|On")