Alarm Triggers¶
This module defines the conditions that can trigger an alarm.
class
automation.alarms.trigger.TriggerType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)Enumeration of alarm trigger types.
- HH: High-High (Critical High)
- H: High
- L: Low
- LL: Low-Low (Critical Low)
- B: Boolean
- NONE: Not Defined
class
automation.alarms.trigger.Trigger()Represents the condition that triggers an alarm.
It stores the type of trigger (e.g., HIGH, LOW) and the threshold value.
serialize(self)Serializes the trigger object to a dictionary.
Returns:
- dict: {'type': str, 'value': any}