Posted: Mon Apr 10, 2017 22:45 Post subject: MQTT? / Home automation?
Hi All, I have not been here for a while.
My Buffalo and Linksys have been running build 23919 with no problems, and I did not feel the need to upgrade.
Anyway, I have a question about MQTT on dd-wrt. I googled around and search forum - did not find much, so I think I know my answer. But anyway, still posting the question.
Are there any implementations of MQTT broker on dd-wrt?
Anyone successfully using it (on dd-wrt, if exists, or any other flavour of WRT)?
Or anyone using dd-wrt in any diy home automation setup?
Posted: Wed Feb 19, 2020 0:11 Post subject: MQTT? / Home automation?
Sorry to necro this thread, but it's one of the top search results so maybe I can save someone else some frustration.
The Entware package of Mosquitto runs out of the box on OpenWRT, but for DD-WRT it's not as easy. I added some additional startup commands to create a user for Mosquitto and start the process. You could also change the user in the mosquitto.conf file to be root if you want. Here is my working startup script:
Posted: Fri Oct 16, 2020 17:50 Post subject: Re: MQTT? / Home automation?
mjforan wrote:
Sorry to necro this thread, but it's one of the top search results so maybe I can save someone else some frustration.
The Entware package of Mosquitto runs out of the box on OpenWRT, but for DD-WRT it's not as easy. I added some additional startup commands to create a user for Mosquitto and start the process. You could also change the user in the mosquitto.conf file to be root if you want. Here is my working startup script:
I just got this working myself, albeit a bit differently. First I created a Samba user, then used that user to run mosquitto. This way I don't have to recreate the user on every boot. Then in Startup I just added this:
Works like a charm. _________________ Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only
Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port
Linksys EA8500 WDS Station x2 - DD-WRT r55799
Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779
OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.
After a few days of using this, I am quite impressed with the EA8500 and Entware. The CPU load on the router is minimal and I have a dozen sensors speaking to it via MQTT.
Even though I already have OpenVPN set up, I wonder how safe it would be to open this MQTT service up on the WAN side of the router. It would be quite handy to be able to communicate with some of my cloud servers. Any recommendations here? _________________ Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only
Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port
Linksys EA8500 WDS Station x2 - DD-WRT r55799
Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779
OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.