Open Josar opened 6 years ago
If a binding isn't installed, Things stay in UNINITIALIZED status, so this is a clear indication in the UI that these things are not active.
Once we have a solution for https://github.com/eclipse/smarthome/issues/1896 in place, we could add a warning log message for all things that are still uninitialized after the system has started to cover your request. We should not have a warning message on every single item event as it might be expected that a certain binding is (temporarily) not present.
String ItemState "[%s]" {thing="astro:status"}
The Problem is that the Things which cannot be linked do not throw an error. The items linkt to channels of this thing just don't change. And the user sits in front gets no errors and expect it to work.
Or the Bindings gets miraculously uninstalled and i sit in front of y syste which worked flawlessly but then my grafana sharts stopped to show values.
No errors, the log entry which was issued when the binding got uninstalled is gone, burried in the log or deleted as i restarted. Because a restart is the first thing to do if something went bad.
And teh new log from the restart doesn't show any error. After hours then then starting to just follow all step neccessary to get things working i see in Karaf/paperUI oh my Bindings are gone where are they?
Question is how why can an item be initialized when the depending Binding is not available? And why is there no error?
- Yes but as I said there is no thing listed when the depending binding is not installed.
That is a screenshot with an uninstalled astro binding. As you can see the thing is marked as UNINITIALIZED
.
Question is how why can an item be initialized when the depending Binding is not available?
Items are a functional layer which is fully independent of the physical layer.
Sorry not for me in my openhab PaperUI. A could make a screenshot but i think you can believe me.
It is a seperate layer but should it not at least trigger a warning, Item x uses a binding which is uninitialized?
When I have the Binding installed and then uninstall it then the things are listed as offline. But if I Have a clean installation and try to link Things to a binding they don't appear. Maybe try it be clearing the cache.
Sound like: when starting, the things are not instantiated when the binidng is not available. But when the binding was available and dissapears they are listet as uninitialized.
Still one question open. Is there a possibility to retrieve binding state to an item?
@triller-telekom could you at least reproduce this 2 behaviours?
@Josar Please see https://github.com/eclipse/smarthome/issues/5149#issuecomment-369559264
When a thing is configured but the depending binding is not installed there is not error.
First my things file, all exec things are working. I add astro, airquality and Bridge avmfritz which are not installed. And there is no error ion the log. Also not when rebooting.