OpenHAB Integration

Ok so I am working on integrating the Konnected Panel into OPENHAB.   So far i have a very bare bones binding developed that can discover a Konnected Module via SSDP and add it as a thing into OPENHAB.

Link to github binding.   But at this point that is all it can do is see the Konnected module and grab the various settings (IP and port) that are needed to communicate.  I am now at the next more difficult step of actually enabling the two way communication between the two.

I see in the python client where settings can be synced to the Konnected Module to send put commands on status updates.  While i could develop a separate websocket client as part of the openhab binding for the Konnected module to talk to, OPENHAB already has a well developed RESTful API that can be used for outside services to communicate updates to items and things.  My thought is that there could be a way where the Konnected module could be "synced" with the appropriate settings from the OPENHAB binding to communicate back with the relevant items and things via the OPENHABAPI. That way another websocket server doesn't have to be deployed.  I am happy to fork the firmware and develop the appropriate code, but any help would be appreciated on where to start. :-)

Keep at it. I’m right where you are, except I’m still in the basic stand pose.

Anyhow, I’m rooting for you. I want Konnected on OpenHAB like hummingbirds need nectar.

^^

Jose i was able to get a working binding.  It is alpha stage but here is a link to the pull request where you can download the version i have been using for several weeks now.


https://github.com/openhab/openhab2-addons/pull/3702


Also a link to the discussion on the OpenHAB community.  Would love some more testers.


https://community.openhab.org/t/konnected-binding/46456/10



Jose i now have a working alpha version of the binding which you can download at the pull request here:


https://github.com/openhab/openhab2-addons/pull/3702


Also here is a link to the discussion on the OpenaHAB forums.  Would love some additional testers.


https://community.openhab.org/t/konnected-binding/46456/10

Hey, 


I added the binding and Openhab discovered both of my Konnected boards. Good but it doesn't sense the opening and closing of doors and the openhab logs are full of errors. 


A few questions? 

1) The Openhab add-on documentation says: "But once it is added you will need to provide an Auth Token to secure communication between the module and openHAB.". Where do I do that? I thikn its not explained anywhere. 

2) Any advice on what I did wrong? 



2018-12-16 11:24:28.162 [TRACE] [nternal.servlet.KonnectedHTTPServlet] - Removing KonnectedHandler [konnected:module:8547762] from KonnectedHTTP Servlet. 

2018-12-16 11:24:28.166 [DEBUG] [ed.internal.handler.KonnectedHandler] - Running dispose()

2018-12-16 11:24:28.178 [hingStatusInfoChangedEvent] - 'konnected:module:8547762' changed from UNINITIALIZED (HANDLER_INITIALIZING_ERROR) to UNINITIALIZED (HANDLER_MISSING_ERROR)

2018-12-16 11:24:28.174 [DEBUG] [ted.internal.KonnectedHandlerFactory] - The callback ip address obtained from the Network Address Service was:192.168.2.130

2018-12-16 11:24:28.187 [DEBUG] [ted.internal.KonnectedHandlerFactory] - the port for the callback is: 8080

2018-12-16 11:24:28.193 [DEBUG] [ed.internal.handler.KonnectedHandler] - The callback ip address is: 192.168.2.130:8080

2018-12-16 11:24:28.198 [DEBUG] [ted.internal.KonnectedHandlerFactory] - Adding thinghandler for thing 8547762 to webhook.

2018-12-16 11:24:28.202 [TRACE] [nternal.servlet.KonnectedHTTPServlet] - Adding KonnectedHandler[konnected:module:8547762] to KonnectedHTTPServlet.

2018-12-16 11:24:28.257 [hingStatusInfoChangedEvent] - 'konnected:module:8547762' changed from UNINITIALIZED (HANDLER_INITIALIZING_ERROR) to INITIALIZING


2018-12-16 11:24:28.264 [hingStatusInfoChangedEvent] - 'konnected:module:8547762' changed from INITIALIZING to UNKNOWN


2018-12-16 11:24:28.269 [DEBUG] [ed.internal.handler.KonnectedHandler] - The channelUID is: konnected:module:8547762:Zone_6 and the zone is :


2018-12-16 11:24:28.275 [DEBUG] [ed.internal.handler.KonnectedHandler] - getasstring: konnected:module:8547762:Zone_6 getID: Zone_6 getGroupId: null toString:konnected:module:8547762:Zone_6


2018-12-16 11:24:28.282 [DEBUG] [ed.internal.handler.KonnectedHandler] - The channelUID is: konnected:module:8547762:Zone_1 and the zone is :

[11:47:43] openhabian@moosecabin1:/etc/openhab2/things

 Hello... I added the module in paperUI and made a channel with ID zone1 as indicated in the readme, its a bell so I made it as an actuator. The konnected module things status is "Obscure" when restart. At the point when I test the signal it doesn't react. At the point when I add the Thing through paperUI the light doesn't squint on the module ether.