If the device is paired using the Tuya-enabled app, when the mobile app and the device are on the same LAN, control through Matter is preferred. When the mobile app and the device are not on the same LAN, the device is controlled through the data point (DP).
If a device is added through a third-party speaker, such as HomePod, Google Home, or Alexa, it is controlled through Matter.