cyrilcc / org.openhab.binding.rflink

RFLink binding for OpenHAB 2.0
23 stars 35 forks source link

'rflink:bridge:usb0' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_CONFIGURATION_PENDING) #51

Open soyxan opened 4 years ago

soyxan commented 4 years ago

hello,

I am using openhab 2.4.1 on a RPi3, and i get the following message in the "events.log" file:

'rflink:bridge:usb0' changed from UNINITIALIZED to UNINITIALIZED (HANDLER_CONFIGURATION_PENDING)

And this is the content of my "openhab.log" file after restarting openhab2 (and having DEBUG enabled for rflink addon: log:set DEBUG org.openhab.binding.rflink):

2019-12-18 10:08:49.598 [DEBUG] [org.openhab.binding.rflink          ] - BundleEvent [unknown:512] - org.openhab.binding.rflink
2019-12-18 10:08:49.674 [DEBUG] [org.openhab.binding.rflink          ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.core.thing.binding.ThingHandlerFactory}={service.id=120, service.bundleid=198, service.scope=bundle, component.name=org.openhab.binding.rflink.internal.RfLinkHandlerFactory, component.id=12} - org.openhab.binding.rflink
2019-12-18 10:08:49.685 [DEBUG] [org.openhab.binding.rflink          ] - BundleEvent STARTING - org.openhab.binding.rflink
2019-12-18 10:08:49.689 [DEBUG] [org.openhab.binding.rflink          ] - BundleEvent STARTED - org.openhab.binding.rflink
2019-12-18 10:08:51.871 [INFO ] [panel.internal.HABPanelDashboardTile] - Started HABPanel at /habpanel
2019-12-18 10:08:52.210 [INFO ] [ebuilder.internal.HomeBuilderServlet] - Started Home Builder at /homebuilder
2019-12-18 10:09:04.558 [INFO ] [thome.model.lsp.internal.ModelServer] - Started Language Server Protocol (LSP) service on port 5007
2019-12-18 10:09:06.494 [INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'rflink.things'
2019-12-18 10:09:06.879 [DEBUG] [rflink.internal.RfLinkHandlerFactory] - RfLinkHandlerFactory createHandler(rflink:bridge:usb0)
2019-12-18 10:09:06.903 [DEBUG] [org.openhab.binding.rflink          ] - ServiceEvent REGISTERED - {org.eclipse.smarthome.config.discovery.DiscoveryService}={service.id=294, service.bundleid=198, service.scope=singleton} - org.openhab.binding.rflink
2019-12-18 10:09:07.776 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at http://192.168.1.10:8080
2019-12-18 10:09:07.779 [INFO ] [.dashboard.internal.DashboardService] - Started Dashboard at https://192.168.1.10:8443
2019-12-18 10:09:08.292 [INFO ] [arthome.ui.paper.internal.PaperUIApp] - Started Paper UI at /paperui

This is the content of my .things file

Bridge rflink:bridge:usb0 [ serialPort="/dev/ttyACM0", baudRate=57600 ] {
    energy myEnergy [ deviceId="OregonCM119-0004" ]
}

i am able to "cat" "/dev/ttyACM0" so my rflink is working.

But I am not able to see any device on discovery.

I have already issued the following command on the openhab console:

feature:install openhab-transport-serial

Do I need to do something else? Thanks in advance!

soyxan commented 4 years ago

Finally I solved it. I do not know why but defining the thing manualy (.thing file) was not working. Using discovery feature instead worked. So i plan to use Paper UI for things and all the other configurations in files.

soyxan commented 4 years ago

BTW I have upgraded to openhab 2.5.0 and the binding is working fine. Thanks @cyrilcc and @cartemere for your great work!

cartemere commented 4 years ago

Hello,

Sorry for the late reply. File configuration "should" work, but honestly I haven't tested it for a while, as I try to use the PaperUI as much as possible.

I will check the behavior with config files when I find some time...

Le mar. 24 déc. 2019 à 12:58, soyxan notifications@github.com a écrit :

BTW I have upgraded to openhab 2.5.0 and the binding is working fine. Thanks for your great work!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cyrilcc/org.openhab.binding.rflink/issues/51?email_source=notifications&email_token=AKBGQAPSBN7YIMXBFNWLGRLQ2H2PLA5CNFSM4J36VZSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHTDEPA#issuecomment-568734268, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKBGQANILUGW7XYC4R66MNTQ2H2PLANCNFSM4J36VZSA .