Page 2 of 2

Re: Domoticz and LightwaveRF with wifi Link

Posted: Wednesday 09 August 2017 22:42
by snakesms
IN case someone else will lookup how to update the script with brightness, have a look here:

https://steve.dynedge.co.uk/2013/03/19/ ... -link-box/

and this part in particular:
The prefix is a random number between 001 and 099 Function code F0 means turn off, F1 means turn on and to Dim a device you can send FdPXX where XX is a number between 1 and 32, with FdP32 meaning full brightness. So the following code would dim Room 2, Device 3 to 50% brightness:

socket = UDPSocket.new
socket.setsockopt(Socket::SOL_SOCKET, Socket::SO_BROADCAST, true)
socket.send("001,!R2D3FdP16|", 0, "255.255.255.255", 9760)
socket.close

P.S. or even check this out: https://api.lightwaverf.com/introductio ... comms.html

Re: Domoticz and LightwaveRF with wifi Link

Posted: Thursday 10 August 2017 17:57
by lonebaggie
I have written a LUA Script that supports all LightwaveRF power and lighting API see https://api.lightwaverf.com/lighting_power.html

https://www.domoticz.com/forum/viewtopi ... 38&t=16560