Fibaro Lua API

The Fibaro Lua API is available to Lua coded Scenes and Virtual Devices (Note the Lua coding language is not available on the Home Center Light). The API is defined in terms of a series of functions and for Scenes a special Lua comments syntax to define the triggers that will cause scene activation.

API functions can be grouped according to purpose, as follows:

Scenes

Describes how/why scenes are triggerd and lists the API functions related to scenes.

Devices

Describes how changes in device state can be used to trigger scenes and lists the API functions for interrogating devices or taking an action.

Global Variables

Lists the API functions for Fibaro defined (Home Center -> Panels -> Variables) global variables. Explains how to trigger a scene when a particular global variable is updated.

HTTPClient Class

Explains how to use the HTTPClient class to send an http query to a remote server.