I’ve got an Evolve door sensor attached to my garage door and I’ve created a scene to tell me if the door is open or closed.
For some reason it always reports closed even when in UI5, the icon for the door sensors shows it as tripped.
Can anyone see any issue with the code below?
local VERAALERT = 49
local MAIN_GARAGE = 42
function SayDoorStatus()
if(luup.variable_get(“urn:micasaverdecom:serviceId:SecuritySensor1”,“Tripped”,MAIN_GARAGE)==“1” ) then
luup.call_action(“urn:richardgreen:serviceId:VeraAlert1”, “SendAlert”,{Message = “The Main Garage Door is Open {tone:tts}”, Recipients = “”}, VERAALERT )
else
luup.call_action(“urn:richardgreen:serviceId:VeraAlert1”, “SendAlert”, {Message = “The Main Garage Door is Closed {tone:tts}”, Recipients = “”}, VERAALERT )
end
end
luup.call_delay(“SayDoorStatus”, 1, “”)