Lua Scenes | FIBARO Dev

Lua Scenes

General information

In Home Center 3, Home Center 3 Lite and Yubii Home you can create two types of scenes:

  • Block scene - created using visual drag and drop interface.
  • Lua scene - created using Lua script language in provided code editor.

In this documentation, we'll cover Lua scene creation.

Editor

The editor is divided into 3 parts:

  • CONDITION - in this section we implement the triggers and conditions, under which the scene will be started.
  • ACTION - in this section we implement actions that should be performed when the triggers and conditions are met.
  • Debugger - displays debug messages sent by your code. You can filter messages by assigned tags.

To create a Lua scene you must add at least one action. Such a scene can only be started manually or by using another scene. Automatic triggering (using triggers) will not be possible.