Notifications after setting Computed Attributes

basler77 4 years ago

Hello,
I set up the Computed Attributes for a device.

Description: Crash
Attribute: Event
Expression: event == "240" ? "crash" : null
Type: String

Now I see in the data from the device not anymore "240", instead of it "crash". That is ok.

How to set up now a notification, so that when the data Event is changing to 240 means crash, so that I get a notification.

Thanks

Anton Tananaev 4 years ago

You need to use alarm attribute to get notifications. And also you need to use one of the existing alarm keys.

basler77 4 years ago

Hello,
so you mean in Computed Attributes I must replace the word "crash" with "accident"?

After that can I create a new notification with Alarm: accident and then activate this notification in the device settings?

I do that and there is no notification.

Thanks

basler77 4 years ago

I found the solution now. Thanks

Cristian 3 years ago

Hi my firend, can you tell me how you solved, this problem.

I have a SOS event whit computed Attributes, but i cant see in events notifications.

description: sos
attribute: sos
di2 == 1 ? "sos" : null
String

regards