Unsolved 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 -
Unfortunately this cannot work
Why?- For Gateway ready state, it’s need GA ready
- For EXTs ready state, it’s need Gateway ready
schematic diagram is GA Ready -> GW Ready -> EXTs Ready -> Waiting final user
in your case: GA Ready -> (Send to EXT-Pages) -> GW Ready -> EXTs Ready -> Waiting final user
Result (Send to EXT-Pages) is ignored by EXT-Pages because GW is not readyI’m not implented any plugins for recipe about your request (never think to this)
-
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.