Truecharts mosquitto connect vm

daschmidt

Explorer
Joined
Feb 12, 2023
Messages
61
Hello,

if this is the wrong thread please move it to the right place.


I have installed mosquitto from the truecharts and added a user.
From my pc the connection to the mosquitto ip 192.168.178.200:1883 work without a problem.
Only from the vm where homeassistant is running the connection to the ip/mosquitto doesen't work.
The ping from the vm to the host work.
Have somebody an idea where the problem is?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
What you've shared so far implies that you're running a bridge for the VM.

How have you set your "route v4 Interface" (under Apps | Settings | Advanced Settings)?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Also, if you're running a VM for HA, why would you not be using the HA add-on for Mosquitto?
 

daschmidt

Explorer
Joined
Feb 12, 2023
Messages
61
How have you set your "route v4 Interface" (under Apps | Settings | Advanced Settings)?
see the picture


not be using the HA add-on for Mosquitto
in the future I will use the homeassistant app. For this I'm try to switch zigbee2mqtt, zwavejsui and the mosquitto broker to truenas scale.
 

Attachments

  • IMG_20230417_113449.jpg
    IMG_20230417_113449.jpg
    59.8 KB · Views: 197

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You need to set the Interface to the same bridge that your VM is on and the gateway to your router on that network.

You will need to restart the apps after doing that.
 

daschmidt

Explorer
Joined
Feb 12, 2023
Messages
61
thanks

You need to set the Interface to the same bridge that your VM is on and the gateway to your router on that network.
Set it to br01 or en01.
The other picture is from the vm
 

Attachments

  • 2.JPG
    2.JPG
    16.5 KB · Views: 169
  • 1.JPG
    1.JPG
    10.1 KB · Views: 143

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You attached your VM to br01, so pick that.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
What is your default gateway in the TrueNAS server (your home Internet router IP would usually be it)?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Can you still connect to the mosquitto app from your PC?
 

daschmidt

Explorer
Joined
Feb 12, 2023
Messages
61
tryed no en1, en2 and br1 nothink work, only with the pc I can connact anytime
 

tprelog

Patron
Joined
Mar 2, 2016
Messages
297
I don't use any Scale apps or TrueCharts, but I think an external service was needed to connect a VM to TrueCharts apps in the past.

Here's an old video on the subject, but given all the changes they've implemented, I wouldn't be surprised if it's outdated by now.


TrueCharts no longer provides support on this forum, so you may need to reach out to them directly for help
 

daschmidt

Explorer
Joined
Feb 12, 2023
Messages
61
TrueCharts no longer provides support on this forum, so you may need to reach out to them directly for help
I already was on the discord. There they saied, this is an unsupported feature.

Here have someone the same problem
 
Top