PyMonitorMQTT
Notify Command
Use this command to send a notication to the system.
You can send title and message via payload or set them directly from the config and trigger it with a trigger on the topic. Read the paragraph below
Compatibility
- macOS
- Linux
- Windows
Data and Topics
.../notify
payload not needed
Topic used to trigger the notification. You can set notify attributes using the payload or from the notification. Read the paragraph below for more.
Payload
JSON
title
optional
String
Use this field to send a notification with the given title
message
optional
String
Use this field to send a notification with the given message
Configuration
custom_topics
optional
List of String
Topic used to trigger the notification and set values
contents
optional
Dictionary
Dictionary where you should put the data you want to pass to the command.
title
optional
Dictionary
Set title for all notifications triggered that don't have a title in the payload
message
optional
Dictionary
Set message for all notifications triggered that don't have a message in the payload
Set values for the notification
For this command you can configure:
- Notification title
- Notification message
These data can be set in two ways:
- From configuration file
- Directly from the trigger message
If data are passed via message, these will be used; if not, the settings will be taken from the configuration file; if you don’t set them in the configuration file, default data will be used.
Default data:
- Title: Notification
- Message: PyMonitorMQTT
Title and message can be set together, only one of them or none.