sorry,
it happens to me that the trigger does not work, ie the jarvis-standbye2.gif image always remains even when the assistant speaks.
I use both MMM-Hotword (2.1.0) and MMM-AssistentMk2 (3.1.1-1).
could someone help me?
my config is:
{
module: "MMM-AI",
position: "top_center",
config: {
width: "300px",
height: "300px",
refresh_interval_sec: 0, // you should not refresh, because content will be back to default value.
content: `<img id="MY_ANIMATION" src="modules/MMM-AI/jarvis-standby2.gif"/>`,
triggers: [
{
trigger: "ASSISTANT_RESPONSE_END",
fires: [
{
fire: "standby_Image",
payload: payload => {
var img = document.getElementById("MY_ANIMATION");
img.src = "modules/MMM-AI/jarvis-standby2.gif";
return payload;
}
}
]
},
{
trigger: "ASSISTANT_UNDERSTOOD",
fires: [
{
fire: "talk Image",
payload: payload => {
var img = document.getElementById("MY_ANIMATION");
img.src = "modules/MMM-AI/jarvis-talk2.gif";
return payload;
}
}
]
}
]
}
},