MQTT Broker on a NAS
MQTT Broker on a NAS
I currently have the Mosquitto MQTT Broker working on my NAS. The Hubitat Bridge plugin requires the broker be on the same machine, either as a plugin (MQTT Broker) or separately. Is there a convenient way to point the Hubitat Bridge plugin to a different IP address? I'd like to use my NAS for that-- The NAS is an easy way to add other topics, (from Home Assistant, for example) to import to Indigo along with the existing Hubitat topics/devices.
Re: MQTT Broker on a NAS
What leads you to believe that the MQTT Broker needs to be on the same Mac?
You specify the MQTT Broker IP Address in the Habitat plugin MQTT broker device, Settings.
I have Indigo running on my Mac and my MQTT Broker running under Home Assistant under VMWare Fusion which has a different IP address.
That said, I haven't used Habitat for a few years and both my Hubitat boxes have been mothballed, as I don't use Habitat any longer - I replaced them with Home Assistant.
I can still start the Habitat plugin and it does connect to the MQTT Broker OK.
Happy to pursue further if you provide more detail for me.
You specify the MQTT Broker IP Address in the Habitat plugin MQTT broker device, Settings.
I have Indigo running on my Mac and my MQTT Broker running under Home Assistant under VMWare Fusion which has a different IP address.
That said, I haven't used Habitat for a few years and both my Hubitat boxes have been mothballed, as I don't use Habitat any longer - I replaced them with Home Assistant.
I can still start the Habitat plugin and it does connect to the MQTT Broker OK.
Happy to pursue further if you provide more detail for me.
Re: MQTT Broker on a NAS
I thought there was a setting that the Hubitat Bridge plugin would do-- but I can't find a setting there. Then, I thought it would look wherever the MQTT Broker plugin points, but that doesn't seem to be working. I'm just a little stuck-- and it's rather typical for me to miss an obvious setting.
Here's the answer-- and you can tell I'm a novice. Years ago, I set up the MQTT Broker DEVICE to look at localhost, or it was the default-- so I need to change the address in that DEVICE, not any plugin setup screen. I was looking at setup screens. That's the difference when I have just enough knowledge to be dangerous. Slowly, though, I catch on. It's easy once you know. And as always, thank you for your plugin-- I use it every day.
Answer: Edit the MQTT Broker DEVICE (double click on it) and fill in the appropriate fields.
Here's the answer-- and you can tell I'm a novice. Years ago, I set up the MQTT Broker DEVICE to look at localhost, or it was the default-- so I need to change the address in that DEVICE, not any plugin setup screen. I was looking at setup screens. That's the difference when I have just enough knowledge to be dangerous. Slowly, though, I catch on. It's easy once you know. And as always, thank you for your plugin-- I use it every day.
Answer: Edit the MQTT Broker DEVICE (double click on it) and fill in the appropriate fields.
Last edited by cjp767 on Fri May 01, 2026 6:11 pm, edited 1 time in total.
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: MQTT Broker on a NAS
You've got some confusion going on here. You can't have changed the address in the MQTT Broker plugin, as that's not configurable. You probably changed the IP address in the MQTT Connector plugin, so it's now pointing to the NAS, which is good. But depending on exactly how you installed Mosquitto on the NAS, it might not be using the same IP address as the NAS file server.
From the error message, it's clear the Hubitat Bridge plugin is attempting to connect to an MQTT broker on the Indigo machine, which is wrong.
From the error message, it's clear the Hubitat Bridge plugin is attempting to connect to an MQTT broker on the Indigo machine, which is wrong.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: MQTT Broker on a NAS
oh there's plenty of confusion-- It's the Hubitat bridge that had me create a device that I unfortunately named MQTT Broker-- and its settings were initially set to access the MQTT Broker plugin's connection. That's where the confusion was. It's not the Broker plugin's device, it's the Hubitat bridge's device.
I always appreciate any coaching- and appropriate shaking of heads. I'm often humbled.
bottom line: I no longer need the MQTT Broker Plugin. The NAS runs the broker. The Hubitat plugin looks there and the Hubitats are all set talking to the NAS as well. Lights and locks are working.
I always appreciate any coaching- and appropriate shaking of heads. I'm often humbled.
bottom line: I no longer need the MQTT Broker Plugin. The NAS runs the broker. The Hubitat plugin looks there and the Hubitats are all set talking to the NAS as well. Lights and locks are working.
Re: MQTT Broker on a NAS
Pleased you have got it all working OK.
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: MQTT Broker on a NAS
FWIW, the MQTT Broker plugin has been updated for Python 3.13.
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177