Author Topic: Hunter Douglas LUUP Code delay  (Read 435 times)

Offline XA44Owq26HxCq88

  • Full Member
  • ***
  • Posts: 120
  • Karma: +0/-1
Hunter Douglas LUUP Code delay
« on: October 29, 2016, 10:52:57 am »
I'm trying to consolidate my control of my shades (8) into one scene. Currently I have 8 to open the shades, 8 to close the shades, all in a specific sequence. For example, open shade 1 at sunrise, open shade 2 at sunrise + 10 minutes, etc. etc. The same idea when closing the shades (not in the same order though)

So my thought is to put all the shade open or closing commands into one scene, with a specific delay between shades.

I've got them working properly individually.
 For example, the following code (which I found here in the forum) runs at 30 minutes after sunrise:

local timeout = 5

local status, result = luup.inet.wget("http://192.168.0.186/api/scenes?sceneid=48278", timeout)


This calls a scene on my HD hub that opens a shade

What I want to do is, once that scene on the HD runs, in the same code I want to add a delay of say about 20 minutes, then run another scene on my HD to open another shade. I've tried inserting a luup.sleep () and luup.delay () commands but it does not seem to work.

Clearly I'm missing something, but I don't know the minimum of Luup coding to figure it out.

I'd appreciate any help thanks