Introduction
System variables are built-in variables available in every automation and script — no setup required. They expose live device and group metadata at run time: hostname, IP addresses, group name, tags, and more.
Use them anywhere variable rendering is supported: script actions, shell commands, notification messages, HTTP requests, or custom field values.
System Variables
All system variables use the level_ prefix.
Variable | Description |
| Current time in ISO 8601 format |
| Internal unique identifier for the device |
| The hostname of the device |
| The custom nickname assigned to the device |
| The device's external IP address |
| Comma-separated list of internal IP addresses |
| Device CPU architecture |
| Number of CPU cores |
| Total memory in raw bytes |
| Total memory, human-readable (e.g. |
| Operating system name |
| Système d'exploitation version string |
| Last reboot time in ISO 8601 format |
| Last seen time in ISO 8601 format |
| ID of the group the device belongs to |
| Name of the group the device belongs to |
| Full path of the group (e.g. |
| Comma-separated list of tag names applied to the device |
| Comma-separated list of tag IDs applied to the device |
Using System Variables
To insert a system variable into an action, click the variable icon in any field that supports variable rendering and select from the list. System variables appear alongside any automation variables defined for that automation.
To reference a variable in a script directly, use the ##{{variable_name}} syntax:
echo "Running on ##{{level_device_hostname}} in ##{{level_group_path}}"💡 CONSEIL: level_group_path is useful for scripts that need to behave differently based on where a device sits in your group hierarchy — without needing a separate automation per group.
FAQ
Do I need to define system variables before using them? No. System variables are always available in every automation and script. They don't appear in the Variables tab because they're not per-automation — they're global.
What if a device doesn't have a nickname?
level_device_nicknamereturns an empty string if no nickname has been set. Uselevel_device_hostnameas a fallback if you need a value that's always present.Can I use system variables in action conditions? Yes. Any field that supports variable rendering — including condition values — can reference system variables.
