Feature: MQTT

From Yombo
Jump to: navigation, search

Message Queuing Telemetry Transport (MQTT) is a light weight messaging protocol used for the Internet of Things (IoT). It can be used by low powered devices to send device status information and receive commands.

Low powered devices are able to connect Yombo and allow it to send or receive system events, deliver status updates (such as weather stations and remote sensors), send device commands, or receive notifications of device state changes.  For a more detailed description and usage of MQTT, view these articles: Into @ HiveMQ and Wikipedia.

For details about interacting with MQTT, see the module developer guide on MQTT.

Clustering

When more then installation of the Yombo Gateway software is setup and configured, it can join with other nodes to form a 'cluster'. The cluster will communicate with each other and share device information using MQTT. This allows each node perform automation tasks regardless of where or how the actual device is connected.

This powerful feature allows you to stop running long wires every, simply connect them to a small Raspberry Pi, or other such device, and simply join the cluster. Entirely using a webinterface and setup wizards, an example of this could be:

  1. Garage Node:
    • A simple Raspberry Pi Zero W connected to the local network and Yombo Gateway softrware configured and installed.
    • This node has joined a cluster of nodes to share device information.
    • Has two simple magnetic switches connected to the GPIO for open and closed status.
    • Has a simple relay that is controlled through another GPIO that can close and open the garage door.
  2. Hallway Status Node:
    • A simple Raspberry Pi Zero W connected to the local network and Yombo Gateway softrware configured and installed.
    • This node has joined a cluster of nodes to share device information.
    • Whenever the garage door status changes, it turns on or off a GPIO which controls an LED to show status.

See Also

For developers: