Table of contents
Description
Start your Movie Scene with just one click of FIBARO Button or on your mobile device. Your shades will go down and lights will dim or turn off automatically!
Requirements
- FIBARO Home Center 2,
- FIBARO The Button,
- FIBARO Single Switch 2,
- FIBARO Dimmer 2,
- Hunter Douglas blinds or shades,
- Configured PowerView plugin.
Step-by-step guide
- Log in to your FIBARO Home Center.
- Click on Scenes.
- Choose Add scene.
- Find Add scene in LUA and click on Add.
- As described, the LUA scene below will set your shades in the right position whenever there is too cold or too warm in your house.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
--[[ %% properties %% weather %% events 218 CentralSceneEvent 1 Pressed %% globals --]] local startSource = fibaro:getSourceTrigger(); if ( ( (startSource["type"] == "event" and startSource["event"]["type"] == "CentralSceneEvent") ) or startSource["type"] == "other" ) then fibaro:call(107, "turnOff"); fibaro:call(99, "setValue", "30"); fibaro:call(405, "playScene") end |
Comments what does the code do:
- 218 CentralSceneEvent 1 Pressed – sets 1 click of The Button as an event starting
- fibaro:call(107, “turnOff”); – turns off the light connected to the FIBARO Single Switch 2
- fibaro:call(99, “setValue”, “30”); – dims the lights connected to the FIBARO Dimmer 2
- fibaro:call(405, “playScene”) – executes a scene which closes the blinds
September 5, 2018 3812 Use Cases
Total 2 Votes:
0
2