I am using OpenHAB 2.4 (Release Candidate) with the “new” OneWire Binding (https://www.openhab.org/addons/bindings/onewire/). After entering the address of my owserver auto discovery works, but I want to define my things manually. So I created a .things-file like in the demo.things example of the documentation:
This does not work. Paper UI doesn’t show me a channel and if I just use the (non existing?) channel like shown in the documentation (demo.items example) I don’t get an error but also no temperature is shown.
So after some try & error I created this:
Bridge onewire:owserver:towserver [ network-address="172.19.1.12", port=4304 ]{
Thing temperature 28_FF2526A41504 [ id="28.FF2526A41504", refresh=5 ] { Type temperature-por-res : temperature [ ignorepor=true, resolution=12 ] }
}
This now looks in PaperUI exactly the same like my auto discovered and configured stuff, but it stays on “initialized” forever and never comes “online”.
No temperature is shown when I include this to my sitemap. It stays “initializing”.
And for sure I am not using both with the same name at the same time
You can use PaperUI or create everything in files but you can not have both.
If you want to merge everything to files, make sure to turn off auto discovery and delete the Items that were discovered by PaperUI. After doing that you should restart OH and have only the items created in files and they will be initialized. If not then you may need to clean the cache to help rid the system of the old items.
I deleted all auto discovered things, stopped openhab2, clean the cache, started it again and I can only see the things defined in files. But it’s like before: The bridge is online, but my sensor stays on “initializing”…
This is all what happened in the Log when stopping, clearing the cache and starting openhab2:
2018-12-17 14:18:51.545 [INFO ] [basic.internal.servlet.WebAppServlet] - Stopped Basic UI
2018-12-17 14:19:01.766 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Stopped HABmin servlet
2018-12-17 14:19:01.861 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Stopped Paper UI
2018-12-17 14:19:01.865 [INFO ] [panel.internal.HABPanelDashboardTile] - Stopped HABPanel
2018-12-17 14:19:01.867 [INFO ] [ebuilder.internal.HomeBuilderServlet] - Stopped Home Builder
2018-12-17 14:19:01.869 [INFO ] [.dashboard.internal.DashboardService] - Stopped Dashboard
2018-12-17 14:19:23.907 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Time zone set to 'Europe/Berlin'.
2018-12-17 14:19:23.917 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Location set to '52.37886736269343,9.727896647059897'.
2018-12-17 14:19:23.918 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Locale set to 'de_DE'.
2018-12-17 14:19:23.918 [INFO ] [.core.internal.i18n.I18nProviderImpl] - Measurement system set to 'SIUnits'.
2018-12-17 14:19:25.447 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 't-owserver.things'
2018-12-17 14:19:25.492 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://172.19.1.13:8080
2018-12-17 14:19:25.493 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://172.19.1.13:8443
2018-12-17 14:19:26.752 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'AmXXX.items'
2018-12-17 14:19:26.934 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2018-12-17 14:19:27.086 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model '3OG_Guenthi_Tobby.sitemap'
2018-12-17 14:19:27.112 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'AmXXX.sitemap'
2018-12-17 14:20:24.465 [INFO ] [ebuilder.internal.HomeBuilderServlet] - Started Home Builder at /homebuilder
2018-12-17 14:20:24.479 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2018-12-17 14:20:24.670 [INFO ] [.transport.mqtt.MqttBrokerConnection] - Starting MQTT broker connection to 't-mqtt' with clientid paho133344930214568 and file store '/var/lib/openhab2/mqtt/t-mqtt'
2018-12-17 14:20:24.931 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui
2018-12-17 14:20:24.971 [INFO ] [ui.habmin.internal.servlet.HABminApp] - Started HABmin servlet at /habmin
Doesn’t look like an error…
event.log looks like this:
2018-12-17 14:20:24.571 [hingStatusInfoChangedEvent] - 'onewire:owserver:towserver' changed from UNINITIALIZED to INITIALIZING
2018-12-17 14:20:24.596 [hingStatusInfoChangedEvent] - 'onewire:owserver:towserver' changed from INITIALIZING to UNKNOWN
2018-12-17 14:20:24.598 [hingStatusInfoChangedEvent] - 'mqtt:broker:tmqtt' changed from UNINITIALIZED to INITIALIZING
2018-12-17 14:20:24.611 [hingStatusInfoChangedEvent] - 'onewire:owserver:towserver' changed from UNKNOWN to ONLINE
2018-12-17 14:20:24.639 [hingStatusInfoChangedEvent] - 'mqtt:broker:tmqtt' changed from INITIALIZING to OFFLINE
2018-12-17 14:20:24.680 [hingStatusInfoChangedEvent] - 'onewire:temperature:towserver:28_FF2526A41504' changed from UNINITIALIZED to INITIALIZING
2018-12-17 14:20:24.706 [me.event.ThingUpdatedEvent] - Thing 'onewire:temperature:towserver:28_FF2526A41504' has been updated.
2018-12-17 14:20:24.732 [hingStatusInfoChangedEvent] - 'mqtt:broker:tmqtt' changed from OFFLINE to ONLINE
2018-12-17 14:20:24.733 [me.event.ThingUpdatedEvent] - Thing 'mqtt:broker:tmqtt' has been updated.
2018-12-17 14:20:24.746 [hingStatusInfoChangedEvent] - 'ntp:ntp:local' changed from UNINITIALIZED to INITIALIZING
2018-12-17 14:20:24.784 [hingStatusInfoChangedEvent] - 'ntp:ntp:local' changed from INITIALIZING to ONLINE
2018-12-17 14:20:24.821 [vent.ItemStateChangedEvent] - Datum_Uhrzeit changed from NULL to 17.12.2018 14:20:24
2018-12-17 14:20:24.988 [thome.event.ExtensionEvent] - Extension 'ui-homebuilder' has been installed.
2018-12-17 14:20:24.988 [thome.event.ExtensionEvent] - Extension 'binding-mqtt' has been installed.
2018-12-17 14:20:24.988 [thome.event.ExtensionEvent] - Extension 'ui-basic' has been installed.
2018-12-17 14:20:24.988 [thome.event.ExtensionEvent] - Extension 'binding-onewire' has been installed.
2018-12-17 14:20:24.989 [thome.event.ExtensionEvent] - Extension 'binding-ntp' has been installed.
2018-12-17 14:20:24.989 [thome.event.ExtensionEvent] - Extension 'ui-habmin' has been installed.
2018-12-17 14:20:24.989 [thome.event.ExtensionEvent] - Extension 'ui-habpanel' has been installed.
2018-12-17 14:20:24.989 [thome.event.ExtensionEvent] - Extension 'ui-paper' has been installed.
I also removed the item from the two groups, but that didn’t change a thing…
So I purged my whole openhab2 installation including zulu-8 and reinstalled it from the testing-repository. Then put my .items, .things and .sitemap files back in place, restarted openhab2, installed “binding-onewire” in PaperUI aaaand … it didn’t change anything
I also tried removing some special letters (spaces, dots, underscores, …) everywhere. But that wasn’t the problem either
Changed “Number” to “Number:Temperature” in my items-file. No change, still “initializing” (and no value is shown when viewing my sitemap in the Basic UI)
Was your Bridge also deleted from PaperUI after adding it to your things file? I ask b/c the log mentioned the connection already open. I would also rename the file from t-owserver.things to t_ownserver.things.
In case your wondering, yes I’m grasping for straws at this point.
Yes, I purged everything (the whole installation) and added all devices just by using the things-file…
Tried to rename my things file, too.
No change
I now added some MQTT stuff by defining it in my things file. This works. But my temperature sensors still don’t Maybe I should open an issue on Github.