I want to make a scene using PLEG that makes a connected light blink for a notification purpose. I want the blinks to be lower than 1 second.
Can anyone help me how i should do it?
Sent from my GT-I9295 using Tapatalk
I want to make a scene using PLEG that makes a connected light blink for a notification purpose. I want the blinks to be lower than 1 second.
Can anyone help me how i should do it?
Sent from my GT-I9295 using Tapatalk
You may have trouble getting this to work. Actions for Z-Wave devices are not instant and the timing will vary according to what else is happening. This will be the case however you initiate the action - PLEG, scenes or Luup.
I used the following code in a scene to sound a beeper at about one second intervals with a count set in the Luup of one of several triggers. The beeper is connected to a Fibaro FGS211 with auto-off set to 500ms. The code checks for the FGS211 to turn off before waiting one second and turning it on again. It works most of the time although the timing varies quite a bit. I doubt that it would work very well at much faster than one second intervals.
if (beepCount == nil) then beepCount = 5 end
if (beepCount < 1) then beepCount = 1 end
for i=1,beepCount do
luup.call_action("urn:upnp-org:serviceId:SwitchPower1", "SetTarget", {newTargetValue = "1"}, 37)
for j=1,50 do
luup.sleep(200)
if luup.variable_get("urn:upnp-org:serviceId:SwitchPower1", "Status",37) == "0" then
break
end
end
luup.sleep(1000)
end
beepCount = nil
Best Home Automation shopping experience. Shop at Ezlo!
© 2026 Ezlo Innovation, All Rights Reserved. Terms of Use | Privacy Policy | Forum Rules