DSL rule example for enabling/disabling a thing

You have to do it indirectly, using REST API

This is OH2 posting, in OH3 you may need to take additional access security steps.