Maybe a Luup delay?

Looking for help with Luup code. Very new at this, have read the forms and tried several attempts and have had no luck. I have a simple scene that when my armed Aeotec 4 in 1 motion sensor is tripped the code ?

luup.inet.wget(“http://192.168.1.140:xxxx/admin?profile=3&user=lunchour&pw=xxxx”)

is sent to BlueIris (camera recording software) to start 5 cameras recording continuously. Now I need to figure out stop recording after 5 minutes. My thought is to have Vera issue another Luup command to switch back to the standby state that would stop recording. Basically the same code as above but change profile=3 to profile=1.

I’m pretty new to vera, but IMO you can solve this problem at least two ways:

  1. Create Scene:
  • trigger: motion sensor trip
  • run: immediately
  • luup code: start recording, luup.sleep(miliseconds), stop recording
  1. Create Scene 1:
  • trigger: motion sensor trip
  • run: immediately
  • luup code: start recording

Create Scene 2:

  • trigger: motion sensor trip
  • run: after 5 minutes
  • luup code: stop recording