Since I am running HA in a docker I cannot use addons (if I understand correctly)
It is not running HomeassitantOS and can therefore not use addons right?
Therefore both MQTT and Z2M are containers running in a docker.
My MQTT config is very plain I have to admit. Am I missing something here?
# Place your local configuration in /mosquitto/confing/
allow_anonymous true
listener 1883
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
Ahhhh completely missed that you’re running Container. Sorry about that!
Can you post the docker compose file for MQTT and Z2M? I wonder if the adapter is being passed through properly. Everything after this [39m: z2m: Error: Failure send version:{"type":"Buffer","data":[0,0,0,4]} leads me to think that the adapter isn’t being detected.
hmm I’ve been digging around a bit but I cant figure out how to get the compose file just yet. How can I get this file? I have only been using GUI Docker and not Docker Compose.
Ummmm… you can’t. But, can you screen cap the settings in your NAS? Specifically for Z2M. Since you can get into MQTT with MQTT Explorer, I doubt that’s the issue.
These are the settings that in shows in the Docker UI.
Sorry if this is not what you meant. I am still new to this stuff.
The z2m config.yaml I already sent previously.
Yup. Ok, so I don’t see where it’s passing in the USB stick to /dev/usbTTY0. Typically, in a docker compose (which I don’t think you can use), you need to pass in the USB stick (using /dev/<something>).
Yup. That’s exactly what it is. I’ll see if I can dig up something to how to pass in the USB stick. I don’t have that NAS, so a little hard for me to troubleshoot it.
Yup. Ok, so I don’t see where it’s passing in the USB stick to /dev/usbTTY0. Typically, in a docker compose (which I don’t think you can use), you need to pass in the USB stick.
Awesome we got the culprit atleast…
Yes I changed that (in the Comfig.yaml) to;
serial:
port: /dev/ttyUSB0
adapter: ezsp
As that is my USB SkyConnect.
I already manually installed the USB driver for that one to get my skyconnect working at all in HA with ZHA.
(I followed this tutorial for that: https://www.youtube.com/watch?v=GjZI4Mw0a4c )
(annoying reply timer…)
Yes the SkyCOnnect USB works fine in HomeAssist using ZHA.
When i SSH the ‘ls’ command I dont see the ttyACM0 that everyone mentions in the Zigbee2mqtt install tutorials. So I changed those references to my ttyUSB0. (for which I installed the drivers.)
the first command opens the folder. the second returns; ls: cannot access '/dev/serial/by-id/': No such file or directory.
since I am dumping so many logs anyway… When I copen up the terminal through the docker UI. The terminal freezes pretty much instantly as the container crashes.
This is what it shows at that time;
I have to admit I only figured this out last night after my latest post. I disabled the ZHA integration in the home assistant devices & Integrations. And then launched the container. But I still get the same error as above.
Maybe I should disable it and then reboot HA And all the containers?
It seems MQTT has a page on the error I get but no luck for me yet.