Hi
I have two PIR security lights in my garden. They have a manual override feature where you can make the lights stay on for long periods, overriding the PIR etc.
To do this currently I have to manually turn OFF/ON/OFF/ON within 2 seconds using the fused spur switch in the house.
These PIR security lights are not currently Z-wave enabled. As a test I wired a plug on to the end of one of the lights and using an Everspring AN158 appliance plug, tried to do the OFF/ON/OFF/ON routine, but the switching of the Z-wave plug is much slower and I can't get it to do it within the 2 seconds.
Also using code like this:
luup.call_action("urn:upnp-org:serviceId:SwitchPower1", "SetTarget", {newTargetValue = "0"}, 93)
luup.sleep(1100)
luup.call_action("urn:upnp-org:serviceId:SwitchPower1", "SetTarget", {newTargetValue = "1"}, 93)
luup.sleep(1100)
luup.call_action("urn:upnp-org:serviceId:SwitchPower1", "SetTarget", {newTargetValue = "0"}, 93)
luup.sleep(1100)
luup.call_action("urn:upnp-org:serviceId:SwitchPower1", "SetTarget", {newTargetValue = "1"}, 93)
Turns it OFF/ON/OFF/ON but in-order for it to work correctly, it seems my sleep delays have to be no less that 1100ms. Taking me over the 2 seconds the PIR light allows.
I guess one option is buying two new PIR lights that allow a longer window of seconds for you to send the manual override OFF/ON/OFF/ON routine. But I'd rather not have to replace them.
Thanks