mqtt - send to MQTT server

Warning

Do not commit your credentials to a public repo!

Sends monitor status to an MQTT server. Supports Home Assistant specifics (see https://www.home-assistant.io/docs/mqtt/discovery/ for more information).

host
Type:

string

Required:

true

the hostname/IP to connect to

port
Type:

integer

Required:

false

Default:

1883

the port to connect on

hass
Type:

boolean

Required:

false

Default:

false

enable Home Assistant specific features for MQTT discovery

topic
Type:

string

Required:

false

Default:

see below

the MQTT topic to post to. By default, if hass is not enabled, uses simplemonitor, else homeassistant/binary_sensor

username
Type:

string

Required:

false

the username to use

password
Type:

string

Required:

false

the password to use