Re: Domoticz and LightwaveRF with wifi Link
Posted: Wednesday 09 August 2017 22:42
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
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