What if I want to send an alert show display message when the GPIO port is ON? I mean, is not like a switch that closes the GPIO port, is when you programatically send an outoput GPIO signal to close (lets say a relay). Is there any changes necessary? I can´t make it happen.
{
module: 'MMM-Buttons',
config: {
buttons: [
{
pin: 17,
name: "rele",
longPress: {
title: "Rele longpress",
message: 'El rele esta siendo pulsado largo',
imageFA: 'power-off',
notification: 'SHOW_ALERT',
payload: {
type: 'notification',
title: 'Alerta rele pulsado largo'
}
},
shortPress: {
title: "Rele shortress",
message: 'El rele esta siendo pulsado corto',
imageFA: 'power-on',
notification: 'SHOW_ALERT',
payload: {
type: 'notification',
title: 'Alerta rele pulsado largo'
}
}
}
]
} //del config
},