This pack allows integration with MQTT Brokers
Copy the example configuration in mqtt.yaml.example
to /opt/stackstorm/configs/mqtt.yaml and edit as required.
hostname- MQTT Broker to connect tosubscribe- An array of MQTT topics to subscribe to (sensor only)port- MQTT port to connect to (default: 1883)protocol- MQTT protocol version (default: MQTTv311)client_id- Client ID to register on MQTT brokeruserdata- Custom userdata to include with each MQTT message payloadusername- Username to connect to MQTT Brokerpassword- Password to connect to MQTT Brokerssl- Enable SSL support (default: false)ssl_cacert- Path to SSL CA Certificatessl_cert- Path to SSL Certificatessl_key- Path to SSL Key
You can also use dynamic values from the datastore. See the docs for more info.
mqtt.publish- Publish a message onto a MQTT topic
Connects to a MQTT broker, subscribing to various topics and emitting triggers into the system.
Requires: config setting subscribe.
Emits:
- trigger: mqtt.message
- payload: topic, message, userdata, qos, retain