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

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

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?

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();

Announcements


Top Tags