Several people on the forum have reported that their squeezebox favorites sometimes are not showing up in the UI. The squeezebox binding uses dynamic state options on a channel named
playFavorite. When using a Selection widget in Basic UI and HABpanel, the list of favorites is not showing up on an item linked to the
I’ve also observed that the state options list is empty when using this in a rule:
PlayFavorite.getStateDescription.getOptions.forEach[option | logInfo("test", "Option " + option.getValue + ": " + option.getLabel) ]
PlayFavorite.getStateDescription.getOptions.size returns 0.
Link to forum post describing the problem.
Sometimes a restart of openHAB will resolve the issue. Some people have reported that clearing tmp and cache resolves the issue.
Based on what I’ve found so far, I’ve observed the following:
I can see everything working all the way up to the call to stateDescriptionProvider.setStateOptions in the
setStateOptionsis being called with a valid channel and a list of state options for the
In a test version of the binding, I’ve demonstrated that a call to
stateDescriptionProvider.getStateDescription(channel, null, null).getOptions()immediately following the above call successfully returns a list containing the state options.
However, when using an item linked to that channel , there are no state options.