Closed rkoshak closed 1 year ago
Bug Fixes:
stateToValue
isNaN
isAlertingState
notAlerting
initAlertTimer
refreshRecord
procEvent
state
record[name]
alerted
Init Alert Rule ID
ItemStateUpdatedEvent
ItemStateUpdateEvent
Bug Fixes:
stateToValue
isNaN
returns true for empty string causing problems when hysteresis was not set.isAlertingState
notAlerting
initAlertTimer
refreshRecord
stateToValue
for conversion.stateToValue
indicating what is being converted (state, threshold, hyst).procEvent
state
is already converted to a value before this function is calledstate
instead of converting it again.procEvent
record[name]
should only be initialized oncealerted
do not exist. Treat those cases as an error.procEvent
notAlerting
handle the case where we are no longer alerting but there is no endAlert rule to call.refreshRecord
Init Alert Rule ID
in log statement.ItemStateUpdatedEvent
ItemStateUpdateEvent
to handle cases where the default trigger is changed to received update from changed.