Hi, thank you for that fast reply. I changed my pattern to a different string (“Speaker on” and “Speaker off”) to not collide with the Google internal commands. I also changed the payload to using an anonymous function, as you suggested. It now works as expected.
Best posts made by devtobi
-
RE: Control of mute (unmute) function via recipe not working
Latest posts made by devtobi
-
RE: [Single Topic] Password for EXT-YouTube plugin
Thank you for your awesome work! I donated, so you can grab a coffee or two. (I hope you drink coffee, haha). It would be awesome if you could send me a password for EXT-YouTube as I’d really like to try it out. On top of that, I’d really like to help beta test development branches or contribute to the codebase when possible and I have some time to spare ;).
Edit: Password created and sended in private message
-
RE: Control of rotation via recipe not working
As far as I understand your answer, the dependency scheme you mentioned above should only affect the execution of the command on startup, right? So the
plugin
section in my posted recipe is basically useless. However, when all components GA, Gateway and EXT-Pages are in ready state, execution of the recipe via voice command to toggle rotation should work, right? That is not the case in my scenario. I guess the notifications are fired, but not processed to toggle rotation by EXT-Pages. -
Control of rotation via recipe not working
I tried adding a recipe for controlling page rotation of EXT-Pages.However, when I execute the commands, the notifications do not seem to have any effect on the rotation behavior. Even the initial notification I send when the
onReady
-Hook gets called does not stop the rotation. The content of the recipe is shown below:var recipe = { transcriptionHooks: { PAGEROTATIONENABLE: { pattern: "Rotation on", command: "PAGEROTATIONENABLE", }, PAGEROTATIONDISABLE: { pattern: "Rotation off", command: "PAGEROTATIONDISABLE", }, }, commands: { PAGEROTATIONENABLE: { soundExec: { chime: "open", }, notificationExec: { notification: "EXT_PAGES-RESUME", }, }, PAGEROTATIONDISABLE: { soundExec: { chime: "close", }, notificationExec: { notification: "EXT_PAGES-PAUSE", }, }, }, plugins: { onReady: "PAGEROTATIONDISABLE", }, }; exports.recipe = recipe; // Don't remove this line.
In my MM config file, the contents for EXT-Pages looks like this:
{ module: "EXT-Pages", position: "top_bar", config: { pages: { 0: ["Home"], 1: ["Entertainment"], 2: ["Technical"], }, fixed: [ "EXT-Pages", "EXT-Screen", "EXT-Internet", "EXT-Detector", "EXT-Spotify", "EXT-RadioPlayer", "clock", "updatenotification", "weather", "compliments", "newsfeed", ], rotationTime: 10000, },
I checked the source code a bit and saw that the fired notifications for changing resume only have an effect if EXT-Pages is not locked by the Gateway via the dedicated lock/unlock notifications. Might this be an issue here? And if yes, how can I solve it?
Thanks in advance!
Best regards,
devtobi -
RE: Control of mute (unmute) function via recipe not working
Hi, thank you for that fast reply. I changed my pattern to a different string (“Speaker on” and “Speaker off”) to not collide with the Google internal commands. I also changed the payload to using an anonymous function, as you suggested. It now works as expected.
-
Control of mute (unmute) function via recipe not working
I created a small recipe to control mute/unmute of the MMM-Volume plugin via voice commands. (see code below)
Muting the speaker via voice command and payloadtrue
works fine. However, unmuting with payloadfalse
does not work as expected and also mutes the speaker. Thus, I cannot unmute the speaker with voice commands.var recipe = { transcriptionHooks: { VOLUMEMUTE: { pattern: "Mute", command: "VOLUMEMUTE", }, VOLUMEUNMUTE: { pattern: "Unmute", command: "VOLUMEUNMUTE", }, }, commands: { VOLUMEMUTE: { notificationExec: { notification: "EXT_VOLUME-SPEAKER_MUTE", payload: true, }, }, VOLUMEUNMUTE: { notificationExec: { notification: "EXT_VOLUME-SPEAKER_MUTE", payload: false, }, }, }, }; exports.recipe = recipe; // Don't remove this line.