Here’s how I disable THINGS in my rules.
sendHttpPutRequest("http://192.168.0.230:8080/rest/things/hue:bridge:123abc/enable", "application/json", 'false', 5000) // Disable Discovered HUE Bridge 1
Thread::sleep(1500)
sendHttpPutRequest("http://192.168.0.230:8080/rest/things/hue:bridge:abc123/enable", "application/json", 'false', 5000) // Disable Discovered HUE Bridge 2
Thread::sleep(1500)
To ENABLE them; just change ‘false’ to ‘true’
I have rules to disable and enable THINGS based on Internet connectivity being lost and certain THINGS needing that Internet connectivity.
Best, Jay