I am IoT beginner. I was trying my hands on Zetta.
If i am writing this as init.
LED.prototype.init = function(config) {
var controls = ['capability1' , 'capability2'];
config
.type('device')
.state('off')
.name('my-device')
.when('on', { allow: controls.concat(['turn-off', 'color-loop']) })
.when('off', { allow: controls.concat(['turn-on', 'color-loop']) })
.when('colorloop', { allow: controls.concat(['turn-on', 'turn-off']) })
.map('turn-on', this.turnOn)
.map('turn-off', this.turnOff)
.map('capability1', this.cap1)
.map('capability2', this.cap2)
.map('color-loop', this.colorLoop);
};
Is it possible to hide 'turn-on' , 'turn-off' , 'colorloop' from the zetta browser UI by modifying my code.
I want that it should show 'capability1' and 'capability2' as the only available options to the user.
Thank you