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
70.46k stars 29.4k forks source link

MQTT comms one-directional as of 2022.2.4 #66236

Closed eXistenZNL closed 2 years ago

eXistenZNL commented 2 years ago

The problem

I am not able to see the status of my MQTT devices, neither with devices connected directly to Mosquitto MQTT broker, nor with Zwave devices connected via the Mosquitto MQTT broker via ZwaveJS2MQTT. All devices show up as greyed out / unavailable.

I did notice however that clicking on buttons (e.g. lights) in Home Assistant seem to result a light switching on or off. This makes me believe that somehow communication is only possible from Home Assistant towards MQTT, but communication from MQTT towards Home Assistant is no longer possible.

What version of Home Assistant Core has the issue?

2022.2.4 and up

What was the last working version of Home Assistant Core?

2022.2.3

What type of installation are you running?

Home Assistant Container

Integration causing the issue

MQTT

Link to integration documentation on our website

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

Diagnostics information

Non as of now, I believe there is no such feature for the MQTT integration, or I might have overlooked it...

Example YAML snippet

No YAML snippet, but I will use this field to explain my setup in a bit more detail.

I am running a Docker Compose stack on Debian Linux consisting of the following containers:

These are connected as follows:

HA --- Mosquitto --- OTGW Firmware
                 \--- ZwaveJS2MQTT --- All kinds of ZWave devices

Anything in the logs that might be useful for us?

As of now I have not captures any logs because of time constraints, however I am more than willing to capture some logs if this might help debugging. Just let me know!

Additional information

For now, I have established that the problem seems to be in HA, and the exact version in which the problem first occurs, which is 2022.2.4. Checking the release notes I suspect that the issue has something to do with either #66040 or #66104, as those are the only changes in this release that concern MQTT.

probot-home-assistant[bot] commented 2 years ago

mqtt documentation mqtt source (message by IssueLinks)

probot-home-assistant[bot] commented 2 years ago

Hey there @emontnemery, 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! (message by CodeOwnersMention)

aidbish commented 2 years ago

Is the issue still occurring in 2022.2.5?

There was a MQTT issue in 2022.2.4 that was fixed in 2022.2.5

emontnemery commented 2 years ago

@aidbish is right, MQTT is broken in HA Core 2022.2.4. Please comment or open a new issue if you still see this after upgrading to 2022.2.5 or later.

eXistenZNL commented 2 years ago

@aidbish @emontnemery this problem exists in the 2022.2.4, 2022.2.5 and latest tags, I tested them all last night. I did put this in the description (2022.2.4 and up) but maybe I should have been more clear about this.

Replying in the hope of not having to open another ticket :)

As always, if you need anything, please let me know!

/edit

Set up debug logging for MQTT and retested all versions, docker pulled in a newer 2022.2.5 and latest image, which indeed seem to work. This issue can stay closed, as I now believe that indeed only 2022.2.4 was broken.