Cancel alarm by computed attributes

Essam2 days ago

I have tried to cancel alarm by computed attributes , but dose not works.

if((((alarm??"") == "tampering" || (alarm??"") == "lowPower") && (charge ??false))) null

if i set any text instead null, it works , but null dose not work

Any help please

Anton Tananaev2 days ago

What's the error message?