Switch To Profile keeps asking to install plugin #118
-
Hi everyone! I'm trying to implement an action that switches to another profile. So far, I've exported a profile named test. In my manifest.json: //manifest.json
"Profiles": [
{
"Name": "profiles/test",
"DeviceType": 0,
"Readonly": false,
"AutoInstall": true,
"DontAutoSwitchWhenInstalled": false
}
] With this set, I have inside of my app a function that is called if the action matches: const testing = (context, event, payload, device) => {
if (event === 'keyDown') {
console.log(payload["coordinates"])
if (payload["coordinates"]["column"] === 0 && payload["coordinates"]["row"] === 2) {
console.log('Switching away from test profile')
// What about when we're not currently on the test profile?
$SD.switchToProfile(device);
} else {
$SD.switchToProfile(device, 'test');
}
}
} Even before I figure out how to get out of this profile (I know my above method won't work besides my one use case), my real issue is that every time I click on the new action key, it prompts to install this preconfigured plugin, even though my manifest is set to auto install. I install it and clicking on it goes into the new profile. When I return to the previous profile and click the action on the stream deck again, it prompts to install the plugin again. It does this continuously and keeps adding copies if I choose to install. What am I missing here that it won't stop asking to install this plugin? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I believe the issue comes from calling
Hope this helps! |
Beta Was this translation helpful? Give feedback.
I believe the issue comes from calling
switchToProfile
without the directory included. Since the profile lives in theprofiles
directory, you'll want to include that in the request.Hope this helps!