Help with compute attribute logic for “Vehicle Stop” alarm

Malien710 days ago

Hi all,
I am writing a compute attribute for when the engine is on and the speed is below 1. I want the output to trigger an alarm saying “Vehicle Stop.”
My current logic is:

speed < 1 && ignition ? "Park" : null

But it doesn’t work — the alarm value remains blank.
Can someone please help me correct it?
Thanks
Malien

Anton Tananaev10 days ago

It looks correct to me.

Malien710 days ago

Hi Anton,

Thank you for your quick response earlier!
I tested the logic, and it works as expected when I run it directly. However, when I view the result through the popup menu, the Alarm value appears blank.
Here’s the logic I’m currently using:

(ignition && speed < 1) ? "Park" : "test"

The computed attribute shows the correct result when evaluated normally, but inside the popup, the output doesn’t display. It seems that the null value might be causing the field to show blank in the popup view.
Could you please help me identify what’s causing the Alarm value to appear blank in the popup, even though the logic itself works?
I’ve also attached an image to help illustrate the issue.
Thank you in advance for your help!

Screenshot 2025-10-08 150542.png

Popup Menu

Screenshot 2025-10-08 150940.png

Anton Tananaev10 days ago

This probably means you have some other computed attribute that clears the value.

Malien710 days ago

Hi Anton,
Thank you for the reply. I’ve checked, and I have only one compute attribute — there isn’t any other attribute that could be clearing the value.
Could there be another reason why the Alarm value appears blank in the popup?

Screenshot 2025-10-08 163046.png

Best regards,

Anton Tananaev10 days ago

Have you linked the attribute? Have you waited enough? Why did you remove the brackets around the boolean expression?

Malien79 days ago

Thanks for the reply, Anton. I’ve linked the attribute, waited, and added the brackets as well. But Alam is still blank.

Anton Tananaev9 days ago

Well, that's not possible. You're definitely missing something.