Hi,
I have taken a first cut at implementing the omnilink binding for Openhab 2. I tried to use as much of Dan’s earlier binding code as possible.
As of right now it supports discovery of units and zones.
Here is the location to my addon:
(look in openhab2-addons/addons/binding/omnilink)
To get it to build in my eclipse i had to rename the prior generation binding (i.e., append -1 to it’s project name)
This is really alpha, but I was able to control a light and have the motion sensor of a zone turn a switch on and off.
This was my first exposure to openhab 2 as well, so I am learning it as I go, and don’t feel I quite get it all.
For me, I had to add an entry into an item file, and sitemap to see it on the classic ui.
eg.
in the demo.items i added:
Switch LivingRoomMotion { channel=“omnilink:zone:3:status” }
Dimmer FoyerLights {channel=“omnilink:unit:2:light level”}
then in the demo.sitemap just refer to those items as you did in 1.x
I haven’t implemented discovery of the omnilink controller yet. For that go to inbox, search for things, then pick omnilnik. Then pick add manual. The access point shows as a thing you can add. Choose that and then enter the ip and keys.
Then discovery for omnilink should pick up your units and zones. You may have to reboot openhab after first adding the controller…not sure.
Would really appreciate if someone would be able to test this out and offer some feedback so I can keep the progress going.
cheers,
craig