AboutBlogContact

MQTT Client

In the latest version of the application, we have devoted a lot of work to refining aspects related to MQTT. The default and preferred mode of operation for our ecosystem is the one where boneIO and its built-in Mosquitto become the MQTT broker.

Web application configuration

Recommended configuration method.

Sample webui configuration

In the settings section, we define all necessary parameters for our MQTT broker.

MQTT menu view

Option nameDescription
HostHostname or address - default is localhost, broker on the controller (device with MQTT broker).
PortPort for connecting to the MQTT broker.
UsernameThe name with which the boneIO application connects to the MQTT broker.
Enable HA AutodiscoveryEnables automatic device registration in HA.
HA Autodiscovery Topic PrefixHA Autodiscovery topic prefix - default is homeassistant.
Send boneIO AutodiscoveryPublish all outputs and inputs to MQTT topics - Enables remote control of our device directly by other boneIO devices.
Receive boneIO AutodiscoveryEnables discovery of other boneIO devices on the network.

YAML Editor

The MQTT client component connects to your MQTT broker.

In most cases, this broker should be the same broker used by Home Assistant, so that you can directly see new devices thanks to the HA MQTT auto-discovery option.

Sample configuration

Sample configuration
mqtt:
  host: localhost
  username: mqtt
  password: mqtt
  topic_prefix: boneio1
  ha_discovery:
    enabled: yes

Configuration variables:

  • host (Required, string) - Hostname or IP address of the MQTT broker.
  • username (Optional, string) - Username for connecting to the MQTT broker.
  • password (Optional, string) - Password for the MQTT broker.
  • port (Optional, integer, default: 1883) - Port for connecting to the MQTT broker.
  • topic_prefix (Optional, string, default: boneIO) - Topic prefix to be used by boneIO. This text will be used in Home Assistant.
  • ha_discovery:
    • enabled (Optional, boolean, default: True) - Enable HA discovery.
    • topic_prefix (Optional, string, default: homeassistant) - Topic prefix that Home Assistant uses for MQTT autodiscovery.