Closed ZionFox closed 4 months ago
Hi @ZionFox,
it's me again. The Home Assistant auto-discovery messages contain the MQTT topics that tell HA where to fetch information. Consequently, we also have to remove the special characters in those topics.
Please have a look at pull request #214 for further information!
Can confirm that PR https://github.com/SAIC-iSmart-API/saic-python-mqtt-gateway/pull/214 does indeed resolve this issue. String sanitation that was omitted was not playing nicely when publishing or fetching data to MQTT.
Possibly unrelated to my previous posted issue regarding the
saic_user
escape character fix, but after performing my quick fix in 0.6.0rc25, I am not getting any entries into thehomeassistant
MQTT topic.Environment
Debian 12 bookworm running Docker 25 Home Assistant 2024.4.3 in docker Mosquitto 2.0.18 in docker saic-mqtt-gateway 0.6.0rc25 (with my publish character escape patch) in docker
The logs do actually show that it makes an attempt, but starts to fail after 2 submittions (which don't actually make it) and that then loops.
Strangely, even the two requestst that do seem to make it don't appear in MQTT. I can't really see anything that's making this fail, but it possibly is related to subscriptions or string escaping again.