Why is my scene not working?

I have a scene with the following configuration:

  1. ARM two sensors immediately upon execution
  2. Delay of 8 hours - BYPASS the same two sensors
  3. Scheduled to run everyday at 2200

Intended action: Everyday, at 10PM, two sensors arm (this part works), 8 hours later, the same two sensors disarm (This part DOES NOT work).

Why? Help? Thank you.

Try splitting it in 2 separate scenes.

‘Random’ thread for background.

[quote=“snovvman, post:1, topic:174406”]I have a scene with the following configuration:
Intended action: Everyday, at 10PM, two sensors arm (this part works), 8 hours later, the same two sensors disarm (This part DOES NOT work).

Why? Help? Thank you.[/quote]

Possibly because Luup/Lua restarts overnight…? Try creating two scenes. One w/a scheduled start at 10PM to arm and one w/a scheduled start at 6AM that disarm.

I believe Vera uses luup.call_delay() or luup.call_timer() to schedule the follow-up action for the scene, and in my (limited) experiments, neither of those functions appear to “survive” a Luup/Lua restart.

Thank you both. I figured two scenes would work, but it’s inelegant!! ;D

This explains it: When the LUUP restarts, I get a notification on my phone via VeraAlerts, it did not restart last night. BUT, I did add a ST814 sensor AFTER I created the scene and AFTER the scene executed last night (and multiple restarts during programming). I did not know that an “in progress” scene will not survive a restart. Now I know.

Thanks again!

Hi, are you able to share how you look for the Luup Restart, so that you are able to then get a notification?

Hi, are you able to share how you look for the Luup Restart, so that you are able to then get a notification?[/quote]

For iOS / Prowl, you can put something like so in your [tt]Startup Lua[/tt] ([tt]Apps[/tt] > [tt]Develops Apps[/tt] > [tt]Edit Startup Lua[/tt]):

[code]-- LuaUPnP Restart logging
local url = require(“socket.url”)
local apikey = “”
local event = “LuaUPnP Restart”
local description = os.date()

luup.inet.wget(“http://api.prowlapp.com/publicapi/add?apikey=“..apikey..”&application=Vera&event=“..url.escape(event)..”&description=“..url.escape(description)..”&priority=0”)[/code]
[sub](url.escape() method courtesy of @futzle, IIRC)[/sub]

excuse me,
what kind of sensor are you using ?

Hi, are you able to share how you look for the Luup Restart, so that you are able to then get a notification?[/quote]

I’m afraid my solution is nowhere near the sophistication of oTi@. I simply use Vera Alerts’ built-in feature “Send out messages when Vera reboots”

[quote=“Piwtorak, post:7, topic:174406”]excuse me,
what kind of sensor are you using ?[/quote]

I use a combination of Schlage and Everspring door/window sensors for my doors, garage, driveway gate, etc. They work equally well.