I’m trying to figure out how to use Lua to trigger/prevent scenes. I’d appreciate if someone can give me a hand with this.
I set up this script attached to a scene, but it seems to trigger no matter what. Any ideas?
local allow = true
local status = luup.variable_get(“urn:schemas-micasaverde-com:device:ElkAlarmPartition:1”, “DetailedArmMode”, 6)
return ((status == “Armed”) == allow)
What I’m trying to do is prevent the scene from happening if I am at home, even if the system is armed StayInstant, but work if I’m out and the system is armed away. Thanks!