I wrote a very simple webCoRE piston that turns the floodlight on if motion is detected. That part works. What doesn't work is the part where it's supposed to turn it off if there's no motion for 5 minutes. The problem is that the FLS100+ is reporting that the light is off as soon as motion goes inactive even though the light is still on. So when the piston attempts to execute the off command it skips it because it thinks that the light is already off.
My guess is I'm misunderstanding the settings in the driver or I have the dials on the back configured in such a way that it's interfering with the operation of the Z-Wave motion sensor.
Any help would be appreciated.