Here I want to test Home Assistant Container AND HAOS (VM) on my Synology NAS before setting up a clean Home Assistant.
I prefer the first solution for many reasons, but I have issues with tydom2mqtt.
First, in HAOS : all is working fine. I installed the tydom2mqtt addon, even a mosquitto broker all in Home Assistant.
Then I installed a Container version of Home Assistant with a Docker Compose. Inside it runs 3 containers : tydom2mqtt, eclipse-mosquitto and home-assistant.
All is working fine, except the connection between tydom2mqtt and the mqtt broker ! (Tydom2mqtt connection to Tydom is good.)
Here are the logs from tydom2mqtt container :
2024-04-23 08:04:16,848 - mqtt.MqttClient - WARNING - MQTT connection error : 'str' object has no attribute 'wrap_bio'
2024-04-23 08:02:09,599 - mqtt.MqttClient - INFO - Connecting to mqtt broker (host=mosquitto, port=1883, user=mqtt-user, ssl=false)
In Mosquitto logs, we can see the connection, but immediately disconnects :
New connection from 172.19.0.2:44460 on port 1883.
1713859316: Client <unknown> closed its connection.
I tried many configurations since 2 days, with or without anonymous access ... same problem.
Tried to run another tydom2mqtt on my computer Docker : it fails (same error).
Tried host or bridge network in containers, same error.
BUT
I tried to connect the HAOS tydom2mqtt on my containerized Mosquitto, and it works perfectly ! Like my Home Assistant container is configured with this Mosquitto, it can open and close X3D devices, read their positions ... with the HAOS addon ;)
I tested Mosquitto with MQTT explorer : all is fine.
Here's the Docker Compose section for non functionnal tydom2mqtt :
Hello,
Yes of course.
I tested the two instances of Mosquitto (haos and containerized) from a client on the same network and both are responding correctly.
Hi,
Here I want to test Home Assistant Container AND HAOS (VM) on my Synology NAS before setting up a clean Home Assistant. I prefer the first solution for many reasons, but I have issues with tydom2mqtt.
First, in HAOS : all is working fine. I installed the tydom2mqtt addon, even a mosquitto broker all in Home Assistant.
Then I installed a Container version of Home Assistant with a Docker Compose. Inside it runs 3 containers : tydom2mqtt, eclipse-mosquitto and home-assistant. All is working fine, except the connection between tydom2mqtt and the mqtt broker ! (Tydom2mqtt connection to Tydom is good.)
Here are the logs from tydom2mqtt container :
In Mosquitto logs, we can see the connection, but immediately disconnects :
I tried many configurations since 2 days, with or without anonymous access ... same problem. Tried to run another tydom2mqtt on my computer Docker : it fails (same error). Tried host or bridge network in containers, same error.
BUT
I tried to connect the HAOS tydom2mqtt on my containerized Mosquitto, and it works perfectly ! Like my Home Assistant container is configured with this Mosquitto, it can open and close X3D devices, read their positions ... with the HAOS addon ;) I tested Mosquitto with MQTT explorer : all is fine.
Here's the Docker Compose section for non functionnal tydom2mqtt :
I'll probably give up the Container installation to go to HAOS, but maybe someone can have an idea to solve this ?
What i forgot to do ?
Thanks.