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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! 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?

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