The config that works looks like this:
var notiHook = [
{
notiId: "USER_PRESENCE",
notiPayload: [
{
payloadValue: '1',
notiMqttCmd: ["SCREENON"]
},
{
payloadValue: '0',
notiMqttCmd: ["SCREENOFF"]
}
]
}
];
var notiMqttCommands = [
{
commandId: "SCREENOFF",
mqttTopic: "state/bathroom/mirror/monitor",
mqttMsgPayload: "OFF"
},
{
commandId: "SCREENON",
mqttTopic: "state/bathroom/mirror/monitor",
mqttMsgPayload: "ON"
}
];
module.exports = { notiHook, notiMqttCommands };
Thankyou again for your excellent help and sharp eyes Serge!. :flexed_biceps: :heart_suit: