Best practices for choosing a broker?

Posted on
Tue Nov 12, 2019 3:03 pm
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Best practices for choosing a broker?

Hi all,

I was about to start writing an interface for my second round of experimentation with an esp8266, and I realized this seems a better option.

Given i have NO existing MQTT devices or running software, what’s the most user-friendly option for a broker, starting from scratch.

I have a Synology DS like FlyingDiver did for testing, so the Docker option on that? Docker on my mac running Indigo? Non-docker mac-based? Raspi? TI-82?

Edit: Locally-run, non-web service recs please!

Posted on
Tue Nov 12, 2019 4:13 pm
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Best practices for choosing a broker?

If it’s local clients only and no port forwarding on your router, I would go with the Docker container on the NAS. At least to get started.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Nov 12, 2019 4:16 pm
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Re: Best practices for choosing a broker?

Awesome, and thank you. Reading up on it now

Posted on
Sun Nov 17, 2019 10:35 am
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Re: Best practices for choosing a broker?

Okay, some success!
1) I got a (non-docker) MQTT host running on my Synology NAS (Mosquitto 1.4.14-9 from Synology Community)

It works- I set up an ESP8266 that I can control from the command line as follows:

Code: Select all
(base) $ mosquitto_pub -h 192.168.1.38 -p 1883 -t "esp/test" -m "#on" -u USERNAME -P PWD
(base) $ mosquitto_pub -h 192.168.1.38 -p 1883 -t "esp/test" -m "#off" -u USERNAME -P PWD


Question now, does the MQTT plugin also serve as a broker? It looks like I don't need a broker runing on my NAS if I use that.

It looks like I need MQTT Plugin running to use the Shims plugin. Thanks so much, as always.

Edit: Nevermind, I think...

I installed MQTT Plugin and pointed it to my server, and it's broadcasting and receiving messages... it's pretty awesome! I suppose Shims handles purely device creation based on broadcasts from here? This is really big, thank you.

Posted on
Thu Jan 16, 2020 10:31 am
Different Computers offline
User avatar
Posts: 2544
Joined: Jan 02, 2016
Location: East Coast

Re: Best practices for choosing a broker?

I searched for a topic like this, and hoped an answer would be waiting for me.

I don't have a NAS, but I do have multiple Macs and one Linux box running Elementary OS that serves as a Plex server and runs a limping install of ZoneMinder that I'm not really using.

If I wanted to start messing with MQTT, what would you recommend?

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Thu Jan 16, 2020 10:39 am
FlyingDiver offline
User avatar
Posts: 7220
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Best practices for choosing a broker?


joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Thu Jan 16, 2020 1:24 pm
Different Computers offline
User avatar
Posts: 2544
Joined: Jan 02, 2016
Location: East Coast

Re: Best practices for choosing a broker?

Thanks!

SmartThings refugee, so happy to be on Indigo. Monterey on a base M1 Mini w/Harmony Hub, Hue, DomoPad, Dynamic URL, Device Extensions, HomeKitLink, Grafana, Plex, uniFAP, Fantastic Weather, Nanoleaf, LED Simple Effects, Bond Home, Camect.

Posted on
Thu Jan 16, 2020 4:13 pm
mundmc offline
User avatar
Posts: 1060
Joined: Sep 14, 2012

Re: Best practices for choosing a broker?

@Different Computers

I don’t remember the steps I took, but I was pleasantly surprised how quickly I hot basic functionality. The command line tools work well for testing.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest