Error Recalling Presets

Posted on
Sun Mar 31, 2024 7:20 am
Betacruxis offline
Posts: 60
Joined: Apr 03, 2010

Error Recalling Presets

When I try to create an action group recalling a saved Hue preset for a device (a lamp in this case) no matter the device or the preset chosen, I get the following error:

Hue Lights Error Error in plugin execution UiValidate:

File "plugin.py", line 2496, in validateActionConfigUi
type: 'in <string>' requires string as left operand, not type



Also, if I try to recall a preset directly from the plug-in menu and assign the preset to be applied to "0 - All Hue Devices", I get this error:

Hue Lights Warning recallPreset, action not properly defined: UiValuesDict : (dict)
confirmHubNumberText : first select hue bridge and click confirm (string)
deviceId : 0 (string)
deviceLabel : (string)
labelRate : (string)
presetId : 1 (string)
presetLabel : (string)
rate : 0 (string)


But if I assign the preset to just one particular device, it works properly.

Any help?
Thanks in advance.

Posted on
Mon Apr 01, 2024 6:11 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Error Recalling Presets

could you try:
https://github.com/kw123/Hue-Lights-Indigo-plugin/releases/tag/2022.16.56

if that works I shall move it to the regular indigo site.

Karl

Posted on
Mon Apr 01, 2024 6:29 am
Betacruxis offline
Posts: 60
Joined: Apr 03, 2010

Re: Error Recalling Presets

Thanks for your prompt answer.
Sadly is not working still.
For the case of an action group recalling a preset for a particular device, an error dialog appears stating:

The "NNN" device is not a Hue compatible device. Please choose a Hue Light or a group device".

Same error message for any Hue light.

For the second case, trying to recall a preset directly from the plug-in menu for "0 - All Devices", shows same error in the log windows, as before:

Hue Lights Warning recallPreset, action not properly defined: UiValuesDict : (dict)
confirmHubNumberText : first select hue bridge and click confirm (string)
deviceId : 0 (string)
deviceLabel : (string)
labelRate : (string)
presetId : 2 (string)
presetLabel : (string)
rate : 0 (string)

Posted on
Mon Apr 01, 2024 10:34 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Error Recalling Presets

actually the error message is gone..
File "plugin.py", line 2496, in validateActionConfigUi
type: 'in <string>' requires string as left operand, not type

there are warnings left. they are misleading
1. can not select a sensor for a present
2. can not select "all" devs for presets

please try:
https://github.com/kw123/Hue-Lights-Indigo-plugin/releases/tag/2022.16.57

Posted on
Mon Apr 01, 2024 1:21 pm
Betacruxis offline
Posts: 60
Joined: Apr 03, 2010

Re: Error Recalling Presets

Well, since the function of recall preset to All devices no longer exists, that error was solved.

On the other hand, I can now create or edit any action group to recall presets to any Hue lights. No problem there.
But executing any of those groups (existing or newly created) logs the following error:

Action Group Living Azul
Hue Lights Error Error in plugin execution ExecuteAction:

File "plugin.py", line 10285, in recallPreset
type: 'PluginAction' object has no attribute 'get'

Posted on
Sun Apr 07, 2024 4:09 am
kw123 offline
User avatar
Posts: 8366
Joined: May 12, 2013
Location: Dallas, TX

Re: Error Recalling Presets

sorry just saw this post,
could you try:
https://github.com/kw123/Hue-Lights-Indigo-plugin/releases/tag/2022.16.58

in the previous version I only tested it w a menu call not an action call. They behave differently

after you ok it I will move it to the indigo site.

Karl
ps
some of the plugin structures are still a little old, ie for actions it goes through a short cut action/device action. There the plugin has no option to preselect devices parameters...
All newer type actions go the action/plugin/actionname. There you can pre filter devices etc.
in the shortcut version you need to do all the work AFTER the action is executed not during action edit.

Changing that is a larger piece of work and the users would have to dev all actions.

Posted on
Sun Apr 07, 2024 6:06 am
Betacruxis offline
Posts: 60
Joined: Apr 03, 2010

Re: Error Recalling Presets

Hello Karl.

This latest version is working without any errors.
Thanks for your great work.
I appreciate it.

Best regards,
Alejandro

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 2 guests