home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.3k stars 30.61k forks source link

MQTT not listening (according to frontend) #129676

Open tikabinteractive opened 3 hours ago

tikabinteractive commented 3 hours ago

The problem

I have had an MQTT setup for quite some time. After updating to 2024.10.4, it doesn't seem to receive packages from EMQX any more. It is connected to EMQX, and can publish messages succesfully. However, it doesn't receive or handle messages. In the frontend, simply clicking "start listening" will not display anything at all, not even the birth message from the MQTT listener. The area below the "start listening" choice is blank.

I have attempted to debug, but I get no meaningful errors. Debugging seems to indicate that it is listening, but in practice nothing shows up. I use MQTT explorer to publish messages to the broker, and those do not get through to MQTT in HA even though it is listening and subscribed to all topics. Here is the only debug listing I get after starting listening with debug enabled and publishing packages with MQTT Explorer (iOS):

2024-11-02 12:57:07.646 DEBUG (MainThread) [homeassistant.components.mqtt.client] Subscribing with mid: 69 to topics with qos: [('shellyhtg3-84fce639334c/#', 1)] 2024-11-02 12:57:07.646 DEBUG (MainThread) [homeassistant.components.mqtt.client] xxx.ala.eu-central-1.emqxsl.com: unregister write 36 2024-11-02 12:57:12.285 DEBUG (MainThread) [homeassistant.components.mqtt.client] xxx.ala.eu-central-1.emqxsl.com: register write 36

What version of Home Assistant Core has the issue?

2024.10.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

MQTT

Link to integration documentation on our website

https://www.home-assistant.io/integrations/mqtt/

Diagnostics information

config_entry-mqtt-01JBPAG8N714T0VY3Q913E7AJB.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2024-11-02 12:57:07.646 DEBUG (MainThread) [homeassistant.components.mqtt.client] Subscribing with mid: 69 to topics with qos: [('shellyhtg3-84fce639334c/#', 1)]
2024-11-02 12:57:07.646 DEBUG (MainThread) [homeassistant.components.mqtt.client] xxx.ala.eu-central-1.emqxsl.com: unregister write 36
2024-11-02 12:57:12.285 DEBUG (MainThread) [homeassistant.components.mqtt.client] xxx.ala.eu-central-1.emqxsl.com: register write 36

Additional information

No response

home-assistant[bot] commented 3 hours ago

Hey there @emontnemery, @jbouwh, @bdraco, mind taking a look at this issue as it has been labeled with an integration (mqtt) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `mqtt` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign mqtt` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


mqtt documentation mqtt source (message by IssueLinks)

tikabinteractive commented 2 hours ago

Screenshot 2024-11-02 at 13 25 14 Here is an image of the frontend while listening. It never displays any incoming messages, nor the birth messages (which it used to do). I know messages are coming through the broker (using the EMQX dashboard and the MQTT Explorer), but MQTT in HA doesn't seem to respond to them, at all.