Take a look at this thread. Read from the post below and all the way to the end so you can see how it progressed before attempting. I got my floodlight working with this setup...but dont really use it for any automations. It was more of a "need to see if I could" scenario.
There is also a Beta integration that I believe was based on the above but I have not tried it...others seemed to have success with it.