Hello @fbleitao, unfortunately automations can’t trigger OCF (the “execute” command are not available for automations because it depends on device’s hardware as it is a way to send command directly to the hardware’s device).
If you are using SmartThings API you can send this command to your device just after you set anything, this command will turn off device’s light.
Heere is the original post, you can get more information: REST API for display/light on Samsung Windfree AC
With an SmartApp you can subscribe to “execute” command and your app will know when light turns on, you can send a command to turn off (I’ve done this, also checking status of room lights and TV, if all above is off and A/C lights turn on it will turn off again using that command)
Please note that “Light_On” is to turn off and “Light_Off” is to turn on (or your SmartApp will receive this when your device light turn on.