FIBARO LUA | Sfeer Creator
Free downloadable lua code to easily save and activate a number of preset lighting settings. There are 2 standard scenes available (DinnerScene and TV scene). Do you want extra presets? Then you can easily make it yourself.
- Download the VFIB file
- Go to Devices
- Click Add Device (Add Device)
- Click Add Virtual Device
- Select the VFIB file that you have just downloaded.
- Click on Add.
-Adapt the picture if necessary, give it a name and place it in a room.
There are 2 buttons per 'atmosphere'. An 'Activate' and a 'Set' button.
When you press the 'Set' button for the first time, the current setting of all lamps is stored in a variable in the variable panel (record). The variable is created automatically. Make sure that all your lamps are set as "lighting" in the advanced parameters. You do this at the device itself.
In the advanced settings of the device you can indicate that it is a type of lighting.
Once the settings have been saved, you can recall the settings of each lamp by pressing the 'Activate' button.
By default you can do this for 2 'presets'. DinnerScene and TV Scene.
You can add more presets if desired.
Add more mood presets:
-Open the virtual device
-Go to the advanced settings
Create 2 buttons for the new ambiance preset
-Give the 2 buttons a logical name and a logical ID (This is necessary if you want to start the button from a scene later).
- Cut and paste the code from one of the 2 present preset buttons (make sure you choose lua code at the bottom and not for string)
-IMPORTANT, for BOTH buttons (Set / Activate), only change the name between "" on the top line (in this case, "DinnerScene").
This is the variable in which the current settings are stored.
Create a new, for example "Reading Scene" that matches the naming.
- Save the device.
- It should work now.
If you still cannot find a solution, we can also do it for you, we ask for a small fee for this.