Ezlo - MQTT plugin is on the marketplace!

Hi everyone,

Our new plugin for Ezlo controllers, the MQTT plugin is now available on the marketplace. You can copy it to your controller and start using it immediately.

The MQTT plugin allows you to utilize the MQTT messaging protocol and its publish/subscribe architecture in order to control your devices with the MQTT capability. MQTT is a lightweight, publish-subscribe, machine to machine network protocol. It is designed for connections with remote locations that have devices with resource constraints or limited network bandwidth.

In order to install and configure the plugin, start with copying it from the marketplace. Navigate to the Edge Plugins menu, then to the Marketplace tab. Click the Copy to my Ezlo button for the MQTT plugin. Once the plugin is successfully copied to your account and you’re taken back to the My Private Plugins tab, click the Manage Installations button for the MQTT plugin and install the plugin to your controller.

Once you do that and you see the success message, click the Configure button.

Configure the plugin by providing the details:

  1. IP Address: IP address of your MQTT server
  2. Username: The client’s username
  3. Password: The client’s password
  4. Keep Alive: Maximum amount of time allowed with no interaction from the MQTT server

Once you’re done, click the Save New Configuration button.

You will now be able to view the MQTT client you’ve configured in your devices list, use the MQTT client in your MeshBot triggers based on MQTT message and topic, and send a packet to your MQTT client in MeshBot actions.

2 Likes

welldone guys! Great addition to our growing plugin list!

Never used MQTT and don’t really know a great deal about it.

So this Ezlo plugin is a client right? Not a MQTT Broker / Server.

Mosquitto appears to be a popular broker / server for Linux and Windows.

Typically what kind of iOT devices would you use with MQTT ?

Currently all my devices are mainly Z-Wave and some Zigbee ones now, on the Ezlo Plus hub. So I haven’t ever had a need to use MQTT before.

Trying to understand the concept and why I might want to use this? So could an MQTT message sent via a broker / server be sent to the Ezlo hub / this MQTT client plugin, to then control say a Z-Wave device ?

Read a bit about the use of MQTT in home automation. There’s a lot of work being done in that area, check for example the zigbee2mqtt project (not really necessary with a zigbee native bridge like Ezlo), easy integration with Node Red, and there are actual devices which support MQTT natively.

You can also use MQTT to interface with other cloud IoT platforms. Tuya IoT, Azure IoT Hub, IBM Watson IoT, they all support MQTT messaging.

1 Like

Is it possible to use this plugin also with VeraPlus? I did not find it there…

Sorry @ddavid1 , we are not supporting the old platform for plugins anymore. What would you need to move to Ezlo controllers ?

I am trying to configure the MQTT plugin and would like to know the following:

  1. Is there documentation for this plugin?
  2. Which port does the plugin support? Does it support both the non-ssl 1883 port and the ssl 8883 port? If so, how do I configure the port? If you can’t currently, it should be added.
  3. Are the username and password required? In other words, if I leave them blank, will the client connect to a local broker over port 1883 without credentials?
  4. Is the source code available? If so, I can probably answer most of my questions simply by looking at the source code.

Thanks,
Bruce

Hi @blacey,

Hoping you can find everything you need here

No source code available, though-

1 Like

You can find the source code as Lua files on your hub. SSH into your hub, and search for the plugins folder in one of the home folders.

Or search for the mqtt_client.lua file, it will show you where the plugin is installed.

The tcp port is hardcoded to 1883, I think u/p can be left empty, though do examine the code to make sure.

1 Like

IMHO, the best way to encourage non-Ezlo developers to develop plugins is to publish the source code to the Ezlo plugins as exemplars. You guys should consider posting all the plugins to GitHub.

Just my two cents.

1 Like

Hey @blacey,

Thanks for the feedback. It will certainly be noted!

On the other hand, as @jouked pointed out, you can always look at the plugin files from the hub itself.

Unless someone capable hasn’t yet made a hub decision and wants to evaluate extensibility as a key purchasing consideration.

1 Like