Solved
How to check if a Thing is enabled or disabled
I need users to be able to enable/disable Things with a toggle button. Is there a way to check if a Thing is enabled/disabled?
I need users to be able to enable/disable Things with a toggle button. Is there a way to check if a Thing is enabled/disabled?
Never mind. Found it.
//input: thingname
// enabled: BOOLEAN
var enabled = Things[thingname].IsEnabled();
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.