@sean
It works well. Thank you very much.^^
@sean
No, onIdle and onActivate operate normally
We checked the status using the notification viewer module.
Manual operation below
Below, when onActivate
I think the payload return is incorrect.
@sean
Here’s what it says
{
module: "MMM-AssistantMk2",
position: "bottom",
config:
{
useScreen: true,
youtubeAutoplay: true,
responseAlert: false,
alertError: false,
pauseOnYoutube:false,
deviceLocation:
{
coordinates:
{
latitude: 37.57,
longitude: 126.98
},
},
profiles:
{
"default":
{
lang: "en-EN"
}
},
notifications:
{
ASSISTANT_ACTIVATED: "HOTWORD_PAUSE",
ASSISTANT_DEACTIVATED: "HOTWORD_RESUME",
},
onIdle: {
timer: 1000 * 30, // in 30sec after last Assistant Query, command “PAGE_1” will be activated.
command: “PAGE_1”
},
onActivate: { //When you wakeup Assistant, command "PAGE_2" will be activated.
timer: 0,
command: "PAGE_2"
},
command: {
"PAGE_1": {
notificationExec: {
notification: "PAGE_CHANGED",
payload: 0
}
},
"PAGE_2": {
notificationExec: {
notification: "PAGE_CHANGED",
payload: 1
}
}
},
}
},
@sean
I’ve tested it,
You will be redirected to another page instead of 1, 2.
This is the case of MMM-pages during onIdle or onActivate operation in MMM-Assistantmk2.I want to run sendNotification (“PAGE_CHANGED”, 2); but I don’t know how.