I was thinking that MMM-Remote-Control was sending the notification, hence the confusion.
Cleaned the config up to look like this:
{module: 'MMM-Buttons',
config: {
buttons: [
{
pin: 32,
name: "monitor_control",
longPress: {
notification: "REMOTE_ACTION",
payload: {"action": "HIDE", "module": "module_1_clock"}
},
shortPress: {
notification: "REMOTE_ACTION",
payload: {"action": "SHOW", "module": "module_1_clock"}
}
}
]
}},``
Can I add another payload from the same action i.e. hide clock & calendar?
Not had any success with that so far, can somebody give me a pointer to the syntax.
Ta.