I’m able to use this app to control my 6 Enbrighten Motion Lights, running on the Tuya Platform (Enbrighten App.) Lights begin by being set to Motion Sensing Mode, but once they are activated by the HomeKit switch via Alexa-Smarthome, they cannot revert back into Motion Mode unless I manually switch them back on the Enbrighten app. Not sure if it’s possible to code this function to revert to Motion Mode once the light is turned off, but it would be super cool if it could!