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

Parveen Kumar Yadav 8 years ago

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 Tananaev 8 years ago

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

Parveen Kumar Yadav 8 years ago

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 Tananaev 8 years ago

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

Parveen Kumar Yadav 8 years ago

OK, thank you very much