I switched to MMM-PIR-Sensor and I am using MMM-NotificationTrigger to let MMM-PIR-Sensor communicate with MMM-Page. I am using the following in my config:
{
module: 'MMM-PIR-Sensor',
config: {
sensorPin: 4,
sensorState: 1,
powerSaving: false,
powerSavingDelay: 60 * 10,
relayPin: false,
relayState: 1,
alwaysOnPin: false,
alwaysOnState: 1,
alwaysOffPin: false,
alwaysOffState: 1,
}
},
{
module: 'MMM-NotificationTrigger',
config: {
triggers:[
{
trigger: "USER_PRESENCE",
fires: [
{
fire:"PAGE_CHANGED",
payload: (payload) => {
if (payload == false) {
return 1
} else {
return 0
}
},
},
],
},
]
},
}
I can’t get this to work. If I turn powerSaving: true, I can get the screen to turn off when the sensor doesn’t detect movement for 10 minutes. I just can’t get the page to change. Am I doing something wrong?