cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How to check if a Thing is enabled or disabled

Willie
16-Pearl

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Willie
16-Pearl
(To:Willie)

Never mind.  Found it.

 

//input: thingname

// enabled: BOOLEAN
var enabled = Things[thingname].IsEnabled();

View solution in original post

1 REPLY 1
Willie
16-Pearl
(To:Willie)

Never mind.  Found it.

 

//input: thingname

// enabled: BOOLEAN
var enabled = Things[thingname].IsEnabled();

Top Tags