Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 1.54 KB

mqtt.md

File metadata and controls

49 lines (38 loc) · 1.54 KB

MQTT connectors

There are three at the moment:

They all share common properties:

<connector-type>
  - broker:
      id: <Client ID> # optional, defaults to internally generated stable hash code
      host: <MQTT broker host>
      port: <MQTT broker port> # optional, defaults to 1883
      root-topic: <root MQTT topic for all messages for this connector>
      username: <MQTT broker username> # optional, but recommended
      password: <MQTT broker password> # optional, but recommended
      auto-reconnect: <boolean flag> #optional, defaults to false, see below
    sensors:
      ...
    switches:
      ...
    fans:
      ...

broker

MQTT broker configuration.

id

Used to identify this client to the MQTT server. Defaults to internally generated consistent identifier based on host and port.

auto-reconnect

Instructs the MQTT library to try to reconnect automatically. Generally, it is a good thing, but it may backfire during initial setup because the library does it quietly and will do it forever, with the rest of the system appearing stuck, hence the default of false.
On the other hand, unless it is set to true, a service interruption may result in connection being lost without any log messages emitted.

Either way, use with care.

sensors, switches, fans

See sensors, switches, fans.

Property of


^^^ Configuration