status
Arc standard library reference for the status module
The status module publishes status notifications (alarms, warnings, and operational
states) to the Core.
set
Sets a status notification (an alarm, warning, or operational state) on the Core, addressing it by name or by key, and outputs the resolved status key.
Parameters
Output str: the resolved status key that was set.
If a status.set fails (for example, an empty key_or_name or a database error), it
reports a warning and the automation keeps running.
trigger -> status.set{
key_or_name = "ox_alarm",
variant = "error",
message = "Overpressure detected"
}
func raise_alarm() {
alarm_key = status.set(
"ox_alarm",
"Overpressure detected",
"error"
)
}