MQTT help

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

MQTT help

#1 Post by Dylantje » 21 Oct 2017, 18:53

Dear all,
I will try to use mqqt in Domoticz
Only my problem, i do not understand a thing off mqtt.
Is there perhaps a dummy explanation how i can build a mqtt and use it.
Can i use the esp with espeasy as a broker?

Or do i need to build the broker on a rpi?
See there are more broker that i can use? What is the best?
And perhaps some nice stuff that i can use with mqtt..

Hope there is someone that will help me..

User avatar
vader
Normal user
Posts: 241
Joined: 21 Mar 2017, 17:35

Re: MQTT help

#2 Post by vader » 21 Oct 2017, 19:14

I think, one of the most popular is Mosquitto. See their Wiki for installation.
https://mosquitto.org/

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: MQTT help

#3 Post by grovkillen » 22 Oct 2017, 08:12

Just for a test broker I have made a portable version of. Mosquitto (no installation needed):

https://www.dropbox.com/s/o9sci8ow77096 ... E.zip?dl=1
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Dylantje
Normal user
Posts: 255
Joined: 11 Oct 2015, 16:51

Re: MQTT help

#4 Post by Dylantje » 22 Oct 2017, 09:56

grovkillen wrote: 22 Oct 2017, 08:12 Just for a test broker I have made a portable version of. Mosquitto (no installation needed):

https://www.dropbox.com/s/o9sci8ow77096 ... E.zip?dl=1

MM
Thanks i have to say..
Only i do not understand what i can do with this...

DeNB3rt
Normal user
Posts: 120
Joined: 15 Dec 2015, 14:07

Re: MQTT help

#5 Post by DeNB3rt » 22 Oct 2017, 10:58

Hi Dylantje

Setting up MQTT on rbpi is very easy.

Follow https://www.domoticz.com/wiki/MQTT#Installing_Mosquitto

In short I did this:
Ssh to rbpi
not enough rights,
“Sudo su”
“Apt-get install mosquitto”
Library outdated?
“Apt-get update”
again
“apt-get install mosquito”
mosquito installed!

Then add the hardware gateway in domoticz (see guide).

Then edit the settings in the espeasy, controller settings, Domoticz MQTT.
Don't forget to use different unit numbers for each ESP module.
Located in Belgium, Bruges. Working on a full DIY domoticz setup with ESPEasy.

Post Reply

Who is online

Users browsing this forum: No registered users and 28 guests