In order to save battery of my Shelly motion 2, I would like to switch OFF the motion sensor when alarm is desarmed and switch ON when alarm is armed.
I can do it via this HTTP POST request : http://[device ip]/settings?motion_enable=false but this works only when motion device is not sleeping.
Another way to do this is via the cloud. This request works well but doesn't update the device (motion enabled stay on "false") : https://shelly-XX-eu.shelly.cloud/device/settings?motion_enable=true&id=[mydeviceid]&auth_key=[mykey]
Do you know how I can solve this issue ?