@Sean said in Execute shell commands when AssistantMk2 starts or stops:
TANT_RESPONSE_END
thank you!
MMM-NotificationTrigger did the trick.
{
module: "MMM-NotificationTrigger",
config: {
triggers:[
{
trigger: "ASSISTANT_RESPONSE_END",
fires: [{ fire:"MY_COMMAND1", exec: "sleep 1; ls -al" },],
},
{
trigger: "ASSISTANT_UNDERSTOOD",
fires: [{ fire:"MY_COMMAND2", exec: "sleep 1; ls -h" },],
},
]
}
},