Hey thats great news Adam looks like I won’t be pulling out my LWrf after all. I’d also been avoiding the new app as I didn’t want to risk having the system stop functioning. your recent update have definitely given me some things to work on.
@adamclark_dev - your a blooming genius !!!
I look forward to the instructions 
ill be making a swift trip to maplins for a rasberry and some lwrf bits shortly as i live in rented accommodation and youve solved my need for a cheap and quick lighting solution that doesnt require 3 wire (neutral) wiring or mega deep back boxes for modules !!!
Can you confirm if you need a special LWRF HUB for this integration ? Cheers
As far as I’m aware, you will need the LWRF hub for this to work as the idea is that it bypasses the need to talk via the LWRF API server and processes the commands locally.
So if you haven’t got one already, I don’t think its worth getting one, for me what @adamclark_dev has done is a great work around as I have already invested so much in LWRF tech and I am slowly working towards removing most of it bit by bit.
Its ideal for me though and many UK renters as i dont have nutral wires in my wall switches and like most modern apartments i dont have thick walls so my back boxes arnt deep though to fit fibaro style modules . . .
So if i can buy the LWRF WIFI HUB & a few LWRF wall switches all i have to do is change the switches and add a hub then do this integration and i have smart lighting for all the main lighting aswell as me hue mood lighting and when i move out i can just put the old switches back on and take the LWRF ones with me 
So for me this is an ideal solution as zwave/zigbee options arnt renter friendly or even uk wiring friendly

Yeah, I cant argue with you there, it is a very convenient system to use without having to make big changes, and there is no denying that the LWRF switches and wall sockets do look stunning. Its just a shame there is not many Z-Wave / Zigbee Products over here yet. Out list of compatible items seems so small compared to the US list, I hope a few companies start getting their act together soon and start making more products for the UK, would be nice to see Samsung try and push that more as there is no alternative to the LWRF sockets other that bulky adaptors which I hate.
You will 100% need the LightwaveRF hub still. There is probably a way around it with some custom RF module, but the cost and time would come to more than the £50 for the Lightwave Hub. Just finding the time to finish of the dimming module, but should get it done tomorrow morning (before the rugby).
From playing around, the response time is still really good compared to the LWRF app and there are no dropped requests. Means that LWRF app is only needed for setup, but can then be moved into a folder and everything goes through the SmartThings app., which was my ideal.
The ideal situation would be to be able to send udp requests from the SmartThings api, but a Raspberry Pi isn’t the end of the world.
Am still surprised that none of the zigbee / z-wave manufacturers are going after the retrofit (socket and switches) market in the uk. Also seems strange that LWRF decided to make their own protocol and created a walled garden. LWRF sockets and switches are still by far the best looking on the market!
Hi @adamclark_dev, with the setup instructions (I know your doing based on a Raspberry Pi) do you think it will be easy enough to work out if using a windows machine, I have an old Zbox lying around and I have installed Node.js in preparation and Git (in case that’s required).
Very excited, if this works well for me, I’m ordering myself a Raspberry Pi for sure, then my sensors for my lights are going to run so much better.
Also whilst its in my mind, do you or has anyone else had the issue of LWRF using your original code where the Smartthings Moods are back to front. EG. I have to set all LWRF items to turn on instead of off in the routine.
So all my smart devices and sonos are set to turn off, but my LWRF devices has to be set to On, and my bedside sockets for my phones etc has to be set to off (Which actually turns them on).
I have made no alteration to the code and the functionality using the app (things) is fine, I.E. On turns it on and off turns it off. its just on the routines.
Thanks for all the hard work and time your have spent on this integration as well, top work 
Hey @CraigJohn. You can use a windows machine, I don’t have one lying around though, so won’t be able to give you any instructions. In reality it should just be a case of downloading node and then running “node server.js”. If you aren’t using the Zbox for anything else, then it is really easy to just install Ubuntu on it for free (http://www.ubuntu.com/). A RaspberryPi would probably consume less power though.
Also had the issue, but should be fixed in new code. Had left the code in the switch the wrong way around from doing some testing.
Hi @adamclark_dev, Yeah I was considering putting Ubuntu on it, as it was old computer that was used for display software in my surgery reception and no longer man enough to run the new version so just stuck it in a draw, think I will have a play with it and see how it goes and yes like you said, I think the Raspberry power wise would make more sense.
That’s good, I thought it was something I done to it when setting up 
@adamclark_dev I have Ubuntu running
, and I think I have installed Node.js too… Ready to rock and roll… ermm I guess lol 
I tried to be smart and figure out where to put the js files or run it but gave up swiftly, I haven’t used Linux for a good 8+ years. 
Hey Craig,
Am just pushing up the code for the dimmer switch now and have updated the code for the server. Give me an hour and you should have all the instructions.
Adam
I wont be getting an early night LOL 
Hey,
Have put up two videos of how to install the nodejs server and the device type.
Step 1 - How to install the server - https://www.youtube.com/watch?v=eNzh5PFaCDw
Step 2 - How to setup the device type - https://www.youtube.com/watch?v=BVMy3lCl2Ok
Will write the instruction on the git repo tommorow, but videos should be sufficient to do the install. (https://github.com/adamclark-dev/smartthings-lightwave-node-server)
Give me a shout if you have any issues, should be fairly simple though. Put any bugs in this thread and will fix them as I see them.
@CraigJohn - I reckon you can do it in 20 minutes.
Cheers,
Adam
One thing that I did forget to mention, was when you run the server by typing
“node server.js”
to stop it, hold ctrl+c
@adamclark_dev straight up, you know your a genius right 
Works perfectly, I just wish LWRF had state tech.
I’ve setup 2 devices, going to call it a night now and do the rest tomorrow.
I am sure I wont be the only one saying thanks for the time and effort you have put it.
Im off shopping this week - LWRF switches / hub / rasberry pi . . . Over the moon !!!
Your nothing short of a legend mate
great work! Are you uk based also, if so where from?
have you had and issues where the app keeps returning the “on” state.
I have setup the Dimmer Groovy, works fine. however when I press “off” and scroll away down the list of things and return to it, its returned to the “on” state, the light has Not turned back on.
Same as if I turn it off and then click to go into the dimmer option, the state has returned to “on” ?
Any Ideas.
Also is there anyway off defining the minimum and maximum percentage that you can dim a device. EG 5% min as when you drag the dimmer to its lowest it turns the bulb entirely off but does not actually turn the state to off. Not sure if this is related to this issue above.
Thanks in advance 
Update: I have setup the OnOff Groovy as well and it is doing the same. I assume its within the groovy code itself rather than the node server as from what I can see the node is simply a comms link in one direction from the smartthings -> Smarthings Hub -> Node Server -> LWRF Hub -> LWRF Device.
The only reverse comms is from the hub back to the device, but looking at the activity feed, the is no log to tell the device to show a state of “On”
@CraigJohn - Glad you managed to get it working. Will have a look at the pull down bug tonight and put some code in the repository to fix it. I know what the dimming issue is, seems to make sense, will make the lowest level drop it to 5%.
@AutomateEverything - Based in London. Have a look on ebay, there seems to be some good deals on there for LWRF stuff, amazon also has good prices on RaspberryPi’s.
Adam
@CraigJohn have just fixed the state and dimming issues.
If you edit the device type (on the smartthings cloud) and paste the new code from both devicetypes on my github, then the bugs will be fixed.
Cheers,
Adam
Yeah that’s cool, state seems to be all sorted now.
Since I updated the Dimmer Groovy, the dimming function has stopped LOL 
It shows in the log that the %command is sent and shows on the IDE the last level set, but the lights now don’t respond to the level change.
Cheers
Craig