Skip to content

OpenMQ conflict if used in two different HomeAssistant integrations #78

@rospogrigio

Description

@rospogrigio

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:

  • is this an expected behavior or is it a bug?
  • in any case, how can I overcome it and have both Integrations receive all the messages?

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions