cancel
Showing results for 
Search instead for 
Did you mean: 

How does the $set_default assignment work in procedures?

0 Kudos

Thanks in advance for your time and responses. I have a specific question about setting a default characteristic value. If you set a default in the characteristic, the user is able to deselect the default in configuration. However, I would like to set a default based on other selections and still give the user the option to deselect this default. I have setup a procedure on the profile with the following code:

$set_default($self, alarm, 'green') if $self.temperature > 80.

In configuration cu50, the alarm characteristic is set to green by default at the proper time, however the user is not able to deselect the default green. The characteristic is not required and there is no other logic for this characteristic in the profile. Am I missing something here or is this the way it works?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

You are not missing anything, You can overwrite value populated by default procedure.

Take F4 on the characteristics value then select 'No entry, then hit 'Enter' key. You will get all possible value, now you can select whatever you want.

System will not allow to delete or make characteristics blank.

Anurag