📦 Archived documentation: r1 (committed 2026-07-24) View current documentation →

alm.g()

alm.g(group)

Sets the current alarm group; subsequent alm.e() evaluations register under it.

Alarms are organised into named groups (e.g. one per machine or subsystem). Call alm.g() before evaluating conditions to select which group the following alm.e() calls belong to.

Arguments

NameTypeRequiredDefaultDescription
group string yes Group name, e.g. "UV".

Example

alm.g("UV"); // conditions evaluated next belong to the "UV" group