Open API to enable motion light

I use Homey to automate my home. So I turn on camera recording for some cameras automatically as soon I go to bed. Will be useful to have the motion light setting enabled in the same way. The timer schedule helps, but is too static.