Duplicate Alarm Notifications

James4 years ago

Hi,
I seem to often be getting duplicated alarm notifications from devices via both SMS and Mail channels.

I have alarm notifications setup for (for example) movement and powerCut

For both of these I will nearly always get a notification which is exactly the same (same timestamp, same alarm)

Is there a reason for this or a way to filter / rate limit notifications?

Thanks
James

James4 years ago

Or can I trigger a notification only when the state changes? I seem to be getting a report for every movement report (so hundreds of alerts when actually moving)

James4 years ago

ok, I've figured this out and I believe resolved it.

The issue was (for example) I was creating an alarm if power was below 11.

The power went below 11, I got an alarm, which was great.
Then there was a motion event from the tracker (Teltonika) this event didn't include the power attribute, so the lowPower alarm was nolonger present
Then there was a location posted, which did include the power attribute, which was below 11, triggering another lowPower alarm.

I got round this by using the processing.copyAttributes.enable configuration entry, which it appears has to be in the main configuration:
<entry key='processing.copyAttributes.enable'>true</entry>

you can then per device set the
"processing.copyAttributes" attribute to "power" in the device attributes or in the main config file.

Hope this helps anyone in the future.