I’ve got a scene written to trigger my door bell and open and close shades window shades when my motion control (MC) is tripped.
The flow should be -
MC tripped - via Vera Scene
ring door bell - via luup.call_action
open shades - via os.execute
wait 30 sec - via a function called sleep
function sleep(n) – seconds
local t0 = clock()
while clock() - t0 <= n do end
close shades via os.execute
that’s the order that the LUA code is written
What I get is
wait 30 sec
Any idea on how I can get this code to execute in the proper order??