tuya / tuya-iot-python-sdk

Tuya IoT Python SDK for Tuya Open API.
MIT License
117 stars 47 forks source link

OpenMQ conflict if used in two different HomeAssistant integrations #78

Open rospogrigio opened 9 months ago

rospogrigio commented 9 months ago

Hi, I am facing an issue using OpenMQ. I am trying to use it in a custom integration I am developing, and I am using the official Tuya Integration at the same time. What I am experiencing is that I have set a message listener with the openmq.add_message_listener command, but at that point, I see that some status messages are received by the official Tuya Integration's listener, and some by my integration's one: they keep stealing the messages to each other, leading to having non-consistent status for the devices in both integrations. Note that, if I launch the same code in a script (outside HomeAssistant) at the same time, it works perfectly and receives all the messages (that are divided between the two Integrations in HomeAssistant). So, questions:

Thank you

rospogrigio commented 9 months ago

Hi, is anyone reading these Issues? Can anyone provide feedback on what I have reported? Thank you