The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.
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?
Solved! Go to Solution.
Never mind. Found it.
//input: thingname
// enabled: BOOLEAN
var enabled = Things[thingname].IsEnabled();
Never mind. Found it.
//input: thingname
// enabled: BOOLEAN
var enabled = Things[thingname].IsEnabled();