Sometimes you want to do a simple HTTP request from a Lua scene on your Home Center 3 to interact with a local device (like an Raspberry or Arduino project)...
The hub.setTimeOut() function has many uses. It can be used to allow a task to wait a fixed time before performing an action. Like polling every minute for new data....
The Home Center 3 Lua engine comes with a special variable called sourceTrigger. You can use the sourceTrigger variable to make your scenes react differently based on different trigger parameters....
Variables are very powerful when programming Lua scenes and building Quick Apps with the Home Center 3. In this blog I explain the different types of variables that are available...
How Lua conditions work is very well documented on the FIBARO manuals website. But despite that I still get a lot of questions about this topic in writing Lua scenes....