I am trying to figure out a tasmota issue i have on my HASSio
So i ended up setting up a VM with ubuntu on my windows machine installing all the mosquitto stuff needed (i think).
I set up the VM to be in the same subnet as my other machines (i can ping stuff around).
Also, several other devices do connect normally with the settings below.
Unfortunately i cannot subscribe to my hassio’s mqtt broker.
Sry for making so much confusion. Outside I mean another machine then the one Hassio is running on, and an VM is aready another machine. But I think the embedded broker is reachable from another machine
If you have an Ubuntu machine, open a terminal and type:
sudo apt install nmap
nmap hassio
and post the output
This will port scan your hassio server and tells us if there is something running at port 1883 of the server.
I used to use the embedded mqtt broker, but I never used an API password (always behind a firewall, and the frontend is behind a reverse proxy with authentication).
I would try disabling the api password and seeing if mosquitto will connect. If that doesn’t work, it means something in your network is blocking port 1883. Either your hass.io is not allowing it in (you say you have devices already running, so probably not), or your Windows/UbuntuVM firewall is blocking the outgoing request.
Great, will try both options, as I am out of the buyer right now.
I guess both will let us know if it is an issue of port being blocked
For clarification, I already have 4-5 mqtt switches perfectly connecting to hassio.
Could I run the same or similar commands from the RPi itself?
I have set up developers access through ssh for another issue I had.
Could I check from resinOS?
I don’t use hass.io, but the default homeassistant install has hbmqtt_sub installed by default and it lives in the same directory as the hass executable (python script, but it is the command line interface for HA).
On my machine I can use /srv/homeassistant/bin/hbmqtt_sub --url mqtt://localhost -t "#" -d and it will print out the payloads and topics, but it is pretty messy compared to mosquitto.
Okay, then I think we can exclude port issue. Next step then would be you ubuntu vm. Can it be that it can not connect to hassio? I mean pinging sometimes goes through but ports don’t. How have you setted up your VM? Do you use VirtualBox or Windows Hyper-V or something else? What is the network settings of the Ubuntu VM?
Your VM Settings sound good.
From her it looks like, there is no open port on hassio @ port 1833. But there is also nothing on 8123 hmmm. I think the Ha web fronted should show up there.
Would you be willing to try the mosquitto addon for HA? I don’t know if it helps but maybe its worth a shot. You can istall it with the HA webfrontend under:
Hey @deisi,
My whole HA installation suddenly failed yesterday (corrupted sd? idk)
Anyway, i did a fresh install and enabled mosquitto instead of embedded mqtt as you suggested.
I have not tried to access it through the VM as it seems to have failed me aswell, wont boot
On the other hand, i have found out that those commands are also available through the rpi’s own ssh connection to resinOS, so no need for an extra terminal, i could have just typed them on my existing putty app through windows.