Script Editor
When you add a script, an icon appears
in the Editor column, allowing you to open
the script in the script editor. Here are some key features:
-
Helpers: Save time by using built-in code snippets. Click the appropriate snippet, and it will automatically add code to the editor field.
-
Keyboard shortcuts:
-
Ctrl + F: Find syntax in your code (text will be highlighted in yellow).
-
Ctrl + G: After finding text via Ctrl + F, use Ctrl + G to select the next syntax in the script.
-
Shift + Ctrl + G: Select the previous syntax.
-
Shift + Ctrl + F: Replace syntax in a script with another one (choose one by one if needed).
-
Shift + Ctrl + R: Replace all syntaxes in a script at once.
-
Ctrl + Space: Auto-detect code and suggest commands. Write the first letter of a command, then select the correct one from the list.
-
-
Main features in the script editor:
-
Helpers: Predefined code snippets (e.g., if-then statements).
-
Loops and iterators: Includes Array, Repeat…Until, and more.
-
Math: Random value, Ceiling, Absolute value, Round, etc.
-
Objects/KNX bus: Get object value, Group read, Group write, Update interval, etc.
-
Storage: Retrieve and save data.
-
Script control: Manage other scripts (enable/disable).
-
Alerts and logs: Create alerts, log variables, and formatted alerts.
-
Time functions: Delay script execution.
-
Miscellaneous: Sunrise/sunset, etc.
-
Serial: Communication through internal controller I/O ports.
-
Modbus: Create RTU/TCP connections, read/write registers.
-
-
Group addresses: Existing group addresses on the KNX bus.
-
Objects by name: Choose objects by name.
-
Tags: Select objects by tag.
-
Data types: Choose objects by data type.
-
Scripts: Lists of event-based, resident, scheduled, and startup (init) scripts.
-