-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MQTT] OH3 Error: DynamicStateDescriptionProvider implementations must never return the original state description. class org.openhab.binding.mqtt.generic.MqttChannelStateDescriptionProvider has to be fixed. #8845
Comments
There is something badly implemented in the MQTT generic bonding which was cleverly detected by the core framework. It has to be fixed. |
Can you please tell us more about this? The (new) check in the core is:
What is so problematic about providing the equivalent stateDescription? But I still do not get the problem with this. |
Hi all, I can second this issue (3.0.0 #2004). It does occur whenever I command something to a player item (no matter what UI I use; linked to string mqtt thing) and this subsequently leads to the command not being send out to the mqtt broker. To help with debug I have added the following on command rule -
And I'm getting this log output
Happy to help and provide further input if someone tells me what's needed :-) Thanks for all your work, it's really appreciated! |
@cweitkamp : could you please explain why it is a bug to do that in a binding ? |
See e.g. #3619. The problem is that any dynamic state description state provider should return null when the requested channel is not handled by the binding. If it does not, it resets options for other bindings! |
I just installed OH3 on a separate system to give it a test. I get this same error on both the Sonos and Sony Projector bindings. 2020-11-08 18:54:37.158 [ERROR] [rnal.ChannelStateDescriptionProvider] - Dynamic state description matches original state description. DynamicStateDescriptionProvider implementations must never return the original state description. class org.openhab.binding.sonos.internal.SonosStateDescriptionOptionProvider has to be fixed. |
@cweitkamp : maybe a problem with the log in the core framework because I see no implementation problem in the sonos and SonyProjector bindings. |
Something interesting to note on this. I have a bug open right now in relation to the Neeo binding #8984 When I uninstalled and then installed the neeo transport, it caused all of the errors above to flood into the log. I'm not sure if it's possible that Neeo is causing this, but the installation of the transport triggers it. |
@morph166955 This is unrelated. The NEEO IO requests the channels descriptions, that's why the errors occur, but it has nothing to do with the CNFE in #8984 |
@lolodomo I rather tend to say this is an error in the |
Hi,
I'm sneak peeking into OH3 build #1980. Most my issues went away over the last builds, greatjob.
In my log I see ~ every minute this error:
[ERROR] [ernal.ChannelStateDescriptionProvider] - Dynamic state description matches original state description. DynamicStateDescriptionProvider implementations must never return the original state description. class org.openhab.binding.mqtt.generic.MqttChannelStateDescriptionProvider has to be fixed.
Is there anything wrong with my configuration or something wrong with the addon?
The text was updated successfully, but these errors were encountered: