-
-
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
Bindings migration to use AbstractStorageBasedTypeProvider #14954
Comments
Please note that not all of these suffer from the issue with delayed initialization. It depends on the implementation of the provider. Tr064 is not affected, it has a dynamic provider, but it can create all necessary channels when the binding starts, without a storage. |
1 similar comment
Please note that not all of these suffer from the issue with delayed initialization. It depends on the implementation of the provider. Tr064 is not affected, it has a dynamic provider, but it can create all necessary channels when the binding starts, without a storage. |
Interesting. I imagine these channels are not dependent on the things themself. For the remote openHAB binding (I am working on it), I am sure we need the storage. |
@J-N-K : it seems there is a problem. When I call putChannelType, I got many errors of this kind:
Looks like a problem with the state descriptions ? I can see a new file named org.openhab.binding.remoteopenhab.internal.RemoteopenhabChannelTypeProvider-ChannelType.json and its content looks good even if I have not checked in details. Example of entry from this JSON DB: My current PR is #14956 |
Related to openhab#14954 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Yes. We should probably not store |
Related to openhab#14954 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
I have not seen these |
Me too. |
I am also using the networkupstools binding and did not notice delay at initialization, and warnings so maybe another one that is not impacted. |
@J-N-K / I can confirm that your PR openhab/openhab-core#3598 properly resolved my problem. My PR for the remote openHAB binding is now working well. |
Related to openhab#14954 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Ok, the netatmo binding gets its dynamic thing types and channel types from Java enum classes, that is why the thing types and channel types are present at binding startup. No need for the storage in this case. |
Related to openhab#14954 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Related to openhab#14954 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
Related to openhab#14954 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
* [remoteopenhab] Use AbstractStorageBasedTypeProvider Related to #14954 Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/openhab-4-0-milestone-discussion/145133/289 |
I have the 2 minute delay in the following bindings:
OH 4.0.0.M3 |
Me too, no delay in that binding |
* [remoteopenhab] Use AbstractStorageBasedTypeProvider Related to openhab#14954 Signed-off-by: Laurent Garnier <lg.hc@free.fr> Signed-off-by: Thomas Burri <thomas.burri@alstomgroup.com>
It seems there might be an issue with the Kodi binding as well? I didn't see this with my file-based configuration though, but it was reported here:
EDIT: I could not reproduce this, and the problem was resolved by the user by recreating the thing. |
* [remoteopenhab] Use AbstractStorageBasedTypeProvider Related to openhab#14954 Signed-off-by: Laurent Garnier <lg.hc@free.fr> Signed-off-by: Matt Myers <mmyers75@icloud.com>
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/xiaomi-robot-vacuum-binding/31317/2120 |
Not in the list, but could denonmarantz binding also be affected? See #15444 (comment) |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/esphome-binding-for-the-native-api/146849/57 |
* [remoteopenhab] Use AbstractStorageBasedTypeProvider Related to openhab#14954 Signed-off-by: Laurent Garnier <lg.hc@free.fr> Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
Some bindings implementing dynamic thing types, channel types or channel group types are now initialized with a delay of 2 minutes. The thing status is UNINITIALIZED/NOT_YET_READY during this delay. After this delay, you got these warning in logs and the thing finally goes ONLINE:
See issue openhab/openhab-core#3394
PR openhab/openhab-core#3407 introduces
AbstractStorageBasedTypeProvider
to reduce this problem.It has now to be used in the bindings with dynamic type providers showing this delay at startup.
Bindings implementing ThingTypeProvider:
Bindings implementing ChannelTypeProvider:
Bindings implementing ChannelGroupTypeProvider:
loadpoint
andvehicle
. not yet implementedThe text was updated successfully, but these errors were encountered: