MQTT only working with certain payloads after upgrading to HA 2023-06

Hi there

After upgrading to HA 2023-06, I noticed that some of my MQTT messages are not received by HA. Note: That this did work before the upgrade - when I roll back the upgrade everything works again. I have written a Perl script to send messages to HA. What I have noticed is that if there are a “:” or “-” (used for timestamp, etc.) in the payload, the payload is not “recognised” in HA. If I change the payload to a value, it works. Strings also seems to have a problem.

Anyone else having this problem?

I happen to fix the problem. I somewhere read about the unit of measurement when defining MQTT sensors. The sensors that had a value after eg: unit of measurement: V worked, but if I had a sensor with eg: unit of measurement: “” <— Empty String, if did not work.

You can now only use a unit of measurement (even one defined as an empty string) with numeric sensors.

1 Like