Library of Functions


Description


Activates or deactivates a scene.

Usage and Arguments


fibaro:setSceneEnabled(sceneID, enabled)

  • sceneID: The scene number you wish to activate or deactivate.
  • enabled: A boolean value (true – to activate the scene, false – to deactivate the scene)

Returned Values


None.

Examples


-- If the variable 'a' is positive, deactivate scene 3
if (a > 0) then
  fibaro:setSceneEnabled(3, false)
 
-- Otherwise activate it
else
  fibaro:setSceneEnabled(3, true)
end

See Also


fibaro:isSceneEnabled