Open fns opened 3 years ago
It looks like there is no cached light data for the light with ID "7". At this point in the workflow logic, lights data is being loaded from the cache because its assumed you got there from following previous steps which load the light data from the bridge API. If you're calling this directly, probably there's no cached data for your light ID. You could try changing https://github.com/benknight/hue-alfred-workflow/blob/master/logic/filters.py#L83 as follows:
- lights = utils.get_lights(from_cache=True)
+ lights = utils.get_lights()
Try that and let me know if it fixes your issue.
It looks like there is no cached light data for the light with ID "7". At this point in the workflow logic, lights data is being loaded from the cache because its assumed you got there from following previous steps which load the light data from the bridge API. If you're calling this directly, probably there's no cached data for your light ID. You could try changing https://github.com/benknight/hue-alfred-workflow/blob/master/logic/filters.py#L83 as follows:
- lights = utils.get_lights(from_cache=True) + lights = utils.get_lights()
Try that and let me know if it fixes your issue.
No, it still does not work, same error.
Okay, feel free to troubleshoot on your own and if you find a logic bug submit a pull request or report back here on the issue.
I'd like to add a keyword to be able to search lights by their name directly, without using the lights: prefix. I have created a script filter:
It takes me to the light list immediately and as I start typing the name of the light the list filters properly, but after I press enter on a certain light I will get the following error:
Any idea what is wrong here?