Skip to content

Magic Mirror Module to send MQTT Payload from a Topic as a Notification

License

Notifications You must be signed in to change notification settings

splattner/MMM-MQTT-Notification

Repository files navigation

MQTT notification

This Module sends Payload received on a MQTT Topic to a defined MM Notification

Configuration

Here is an example configuration with description. Put it in the MagicMirror/config/config.js file:

{
    module: 'MMM-MQTT-Notification',
    config: {
        mqttServers: [
            {
                address: 'localhost',  // Server address or IP address
                port: '1883',          // Port number if other than default
                user: 'user',          // Leave out for no user
                password: 'password',  // Leave out for no password
                subscriptions: [
                    {
                        topic: 'smoky/1/inside/temperature', // Topic to look for
                        notificationKey: 'CUSTOM_NOTIFICATION' // Key of the Notification to be Send
                    }
                ]
            }
        ],
    }
}

mqttServers is an array, so you can add multiple servers to the same config.

About

Magic Mirror Module to send MQTT Payload from a Topic as a Notification

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published