Vera controller, open shutter with conditions

I want to open the shutters to lets say 50% but only if they are closed.
So for example if the shutter is open for more then 50% then do nothing.

How can i do that?

Welcome to the Vera Community.
Look at the Reactor Plugin. If your devices provide the control and Vera knows the current position then it should be fairly simple. Try creating the logic you want in Reactor and ask in that thread for help if you need it.

There is an entire thread on conditional lua code execution you might want to check.
Reactor is the way to go if you do not want to learn lua code.
This would only take 2 lines of code in your scene. Replace the devid with the device number of the shutter.

local status = luup.variable_get(“urn:upnp-org:serviceId:Dimming1”,“LoadLevelStatus”,devid)
status = tonumber(status)
return(status <= 50)

Hey,
I am getting error with this script.
can you double check it?

Does deviceId is the “altId” or the “id” in the advanced section?

I also installed reactor but couldn’t find any good tutorial about how to do what i want

I edited my post. Sorry, there were some obvious typos on my side. The deviceid is the id. not the altid.

Also make sure to copy paste and replace the quotes… I somehow cannot replace the standard straight quotes.