mqtt_client - monitor a mqtt topic
Subscipe to a MQTT topic and compare the payload with a success state
- broker
- Type:
string
- Required:
true
the hostname or IP of the broker
- port
- Type:
int
- Required:
false
- Default:
1883
The port of the broker
- username
- Type:
string
- Required:
false
- Default:
The mqtt username
- password
- Type:
string
- Required:
false
- Default:
The mqtt password
- tls
- Type:
bool
- Required:
false
- Default:
false
Use tls
- ca_cert
- Type:
string
- Required:
false
- Default:
Path to the CA cert. Otherwise, use the system CAs
- topic
- Type:
string
- Required:
true
- Default:
The topic which simplemonitor will subscribe to
- success_state
- Type:
string
- Required:
true
- Default:
The success state of the payload. Can be a Number, a string or a comparison (e.g. <10,>10,0<x<10)