Lua scene – examples

Description

Do you want to create scenes in Lua but you don’t know how? In this article you can find some examples that you can use.

Looking for something else? Need help? Check FIBARO Forum for more!

Remember to change deviceID in the code!

 

Turn off the heating when the window is opened

This scene will switch off the thermostat when the window is opened.


 

Change the device state to the opposite when the motion sensor is breached

This scene will turn on or turn off the device whenever Motion Sensor will be breached.


 

Turning the device on and off after 5 seconds

This scene will turn on the device for the specified period of time. In these case 5 seconds (5000). The time 5000 is expressed in mili-seconds. 1s = 1000ms.


 

Turn on the Wall Plug when The Button pressed twice

This scene will turn on the device when The Button will be pressed two times.


 

Turn off the Wall Plug when The Button pressed 4 times

This scene will turn off the device when The Button will be pressed 4 times.


 

Turn off the Wall Plug when you are leaving the point and it is a storm outside

This scene will turn off the device when you won’t be home and it will be a storm outside.


 

Set dimmer to a value:57

This scene will set the value of the Dimmer for 57.


 

November 13, 2018   762    Tutorials    
Total 2 Votes:
0

Tell us how can we improve this post?

+ = Verify Human or Spambot ?

Comments are closed.