I am using Fibaro roller shutter with Vera Edge.
I have written this simple Luup script which is triggered periodically by Vera (as part of an action of a scenario) and is supposed to allow an action (by returning True), whenever its night time and the variable LoadLevelStatus equals to 100, meaning shutter is completely opened.
For some reason, this script always returns True, even when the shutter is closed.
I can’t use the “Status” variable, as it seems to return 1 unless the shutter is completely closed, and I would like to allow the action only when the shutter is completely opened.
Any idea why my script is behaving this way?
local garden_door_level = luup.variable_get(“urn:schemas-micasaverde-com:device:WindowCovering1”,“LoadLevelStatus”, 3)
if (luup.is_night() and garden_door_level == “100”) then
return true
else
return false
end