scene to run after a reboot

I want a scene to run automatically after a power cut. I thought the best idea was to start the scene after a reboot. Can I do that ? I know I can on my android phone, that gave me the idea…

You could do this in Startup Lua. This runs quite early in the start/restart process so you would probably need to delay running the scene for 30-60 seconds. Something like this:

function OnRestart() luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1", "RunScene", {SceneNum = "123"}, 0) end luup.call_delay("OnRestart",30)

Thanks, how would I achieve the 60 second delay in the startup lua ? I have never used this, but my understanding is I just copy and paste your code (edited with my scene number) into startup lua section of edit startup lua, then press go, that’ll stay in there until I edit or delete it again

I have never used this, but my understanding is I just copy and paste your code (edited with my scene number) into startup lua section of edit startup lua, then press go, that'll stay in there until I edit or delete it again

Quite correct. Just stick it on the end of anything that is already in there.

Thanks, how would I achieve the 60 second delay in the startup lua ?

The code already has a 30 second delay. To make this 60 seconds, change the 30 to 60:

function OnRestart() luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1", "RunScene", {SceneNum = "123"}, 0) end luup.call_delay("OnRestart",60)

Ah ok sorry did not know that was the delay. But its clear now. Your help is appreciated !