How to create on/off attribute

Dear All,

How i can create below attribute with on/off (more than one to light or plug Asset)

@Don @Pierre @martin.peeters

Hi!

You asked this question earlier on the forum;

.
You need to add a value format to the attribute.
Click “Add configuration item”, and select “format”.
Fill the field with the following JSON;