Access BridgeHandler from DeviceHandler

30 views
Skip to first unread message

Jarle B. Hjortland

unread,
Aug 4, 2015, 12:25:45 PM8/4/15
to openhab2
When my Tellstick binding for Openhab 2 is starting up I need to access the bridgehandler from the devicehandler.
The purpose is to add a event listener for updates to the device.
This seems to be the design pattern used in other bindings, however I have an issue.
When the devices are initializing the bridge has not been initialized yet, so I cannot add the listener on the bridge. Therefore I get no updates.

Should this be done differently  ?
Is there a way to make sure the bridge gets initialized first ?

Jarle

Karel Goderis

unread,
Aug 5, 2015, 4:12:41 AM8/5/15
to open...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "openhab2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab2+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openhab2/113b2119-29b6-4b96-b733-bb508ce609b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jarle B. Hjortland

unread,
Aug 5, 2015, 4:18:06 PM8/5/15
to openhab2
Thanks, works perfectly
Reply all
Reply to author
Forward
0 new messages