Nullify an attribute after using it into a Computed Attributes expression.

Dear Anton,

Is there a way to assign ignition to ac then set ignition = null into the same expression?
As we don't have any preference for executing computed attributes so we can't use more than 1 computed attributes one after another in sequence.

As I see Computed Attributes only using expressions not the scripts etc.

Anton Tananaev7 years ago

Please explain a bit more what you want to assign and nullify.

User only want to track ac On/Off , so ignition cable is attached to ac point because device only have ignition cable.

So, want to create:
ac=ignition and then ignition=null because ac=ignition creating confusion during ac is off and ignition is on.

Anton Tananaev7 years ago

You can hide ignition attribute from state if you want. There is an option in user settings.

OK, thank you very much