HAI omnilink binding for Openhab 2.0

I just noticed a typo too: I’m missing a colon in the channel between area omni device id. Hold on, will test.

I’m not getting the error in the log, but its still not doing anything and states still not updating when I change them in the Lumina:

2019-04-13 12:17:12.570 [ome.event.ItemCommandEvent] - Item 'FF_Office_Light' received command ON

2019-04-13 12:17:31.115 [vent.ItemStateChangedEvent] - Local_Date changed from 2019-04-13T12:16:30.990-0700 to 2019-04-13T12:17:31.067-0700

2019-04-13 12:17:31.130 [vent.ItemStateChangedEvent] - Local_Time changed from 2019-04-13T12:16:30.990-0700 to 2019-04-13T12:17:31.067-0700

2019-04-13 12:17:31.136 [vent.ItemStateChangedEvent] - Local_DateTime changed from 2019-04-13T12:16:30.990-0700 to 2019-04-13T12:17:31.067-0700

2019-04-13 12:17:54.020 [vent.ItemStateChangedEvent] - omnilink_controller_2c8fef01_last_log changed from {"eventNumber":14178,"timeDataValid":true,"month":4,"day":13,"hour":11,"minute":2,"eventType":49,"parameter1":255,"parameter2":1} to {"eventNumber":14179,"timeDataValid":true,"month":4,"day":13,"hour":12,"minute":17,"eventType":54,"parameter1":254,"parameter2":1}

2019-04-13 12:18:16.477 [ome.event.ItemCommandEvent] - Item 'LuminaModeHome' received command 1234

2019-04-13 12:18:31.147 [vent.ItemStateChangedEvent] - Local_Date changed from 2019-04-13T12:17:31.067-0700 to 2019-04-13T12:18:31.073-0700

2019-04-13 12:18:31.159 [vent.ItemStateChangedEvent] - Local_Time changed from 2019-04-13T12:17:31.067-0700 to 2019-04-13T12:18:31.073-0700

2019-04-13 12:18:31.175 [vent.ItemStateChangedEvent] - Local_DateTime changed from 2019-04-13T12:17:31.067-0700 to 2019-04-13T12:18:31.073-0700

2019-04-13 12:18:59.981 [ome.event.ItemCommandEvent] - Item 'LuminaModeAway' received command 1234

2019-04-13 12:19:14.740 [ome.event.ItemCommandEvent] - Item 'LuminaModeParty' received command 1234

2019-04-13 12:19:19.609 [ome.event.ItemCommandEvent] - Item 'LuminaModeSleep' received command 1234

2019-04-13 12:19:31.169 [vent.ItemStateChangedEvent] - Local_Date changed from 2019-04-13T12:18:31.073-0700 to 2019-04-13T12:19:31.100-0700

2019-04-13 12:19:31.184 [vent.ItemStateChangedEvent] - Local_Time changed from 2019-04-13T12:18:31.073-0700 to 2019-04-13T12:19:31.100-0700

2019-04-13 12:19:31.195 [vent.ItemStateChangedEvent] - Local_DateTime changed from 2019-04-13T12:18:31.073-0700 to 2019-04-13T12:19:31.100-0700

2019-04-13 12:19:45.605 [vent.ItemStateChangedEvent] - omnilink_controller_2c8fef01_last_log changed from {"eventNumber":14179,"timeDataValid":true,"month":4,"day":13,"hour":12,"minute":17,"eventType":54,"parameter1":254,"parameter2":1} to {"eventNumber":14180,"timeDataValid":true,"month":4,"day":13,"hour":12,"minute":19,"eventType":49,"parameter1":254,"parameter2":1}

whoops more issues, channel should be lumina_area not area. About to test.

I am so sorry, it all works now. Using the right channel and the right config made the difference. I am really sorry for putting you through this and really appreciate the help! Thank you so much!!

@broconne

On a related note, I use the user number for reading the log messages. I have a map file to each user name.

I prefer this over putting the user codes in open text in OH. I do have an openHAB user but I still have to put a usable pin number in the text of the rule.

Is there any appetite from anyone else (or is it possible) to use the user number versus their pin? This seems more secure to me?

Awesome, happy it works!
Well, we have no documentation… so its a bit on us :slight_smile:

I am not sure if it is more or less secure?
For one thing, your hex code is stored in plain text… Which means whoever gets that can do really whatever they want… Change user codes/lock you out, etc… if they have access to your openhab system and get that code they have “root” access to your omni system.

With the codes, we are taking the codes and validating they are correct. It is probably a coin flip on security.

Happy to help document! Should we do it in the README.md? Are you working in the unit_timers branch? I can do a PR on the file to start.

If you are interested in more code :), it also looks like I don’t see controller or console things when I discover things. Not a problem for me, but the documentation can be updated to say they are Omni only for now.

Thanks! It would be great to have your help starting to document the README.md

The best place to document is this branch as I will soon be merging this code there.

Thanks!

Newbie here - I just moved into a house that has HAI panels, switches, and alarm systems installed. It works out great directly from the panel and I’m just trying to set up the localhost with openhab so that I can access it from my device. I’m having trouble with the HAI/omnilink binding and I’m looking to get some help from this community. Here’s what I tried so far:

  1. I set up openhab 2.4 locally on my windows machine, and got it working locally.
  2. I downloaded a jar for openhab.binding.omnilink-2.4.0-SNAPSHOT.jar https://s3-us-west-2.amazonaws.com/craigham-pub/ and placed it into the add-ons folder
  3. Through the UI I tried to add a Thing for Omnilink Panel, and I placed all these in the configurations for the Thing:
    https://www.openhab.org/addons/bindings/omnilink1/#binding-configuration
  4. However there’s issue with connectivity, and I couldn’t find anything interesting in the logs.

I also tried to create a services/omnilink.cfg file:


hoping that with generateItems=true, I would have the configurations in the logs. However I wasn’t able to get anything interesting.

My goal is to dump all the existing sitemap and get those on openhab as a first step. Any help would be greatly appreciated.

Thank YOU!

Controller and console things are not discoverable (for some reason??) via the API.

Hey… unfortunately you are reading the documentation for version 1.x binding, but are installing the 2.x binding. I recommend the 2.x binding, but we don’t currently have any real documentation. Perhaps someone here who uses discovery can walk you through how to get it up and running.

Ah thanks a lot for the response, who’s the best point of contact that I can reach out to? I can try debugging on my own too but I’m not seeing useful info in the logs… so any pointers/reading materials would be greatly appreciated.

I would probably start by deleting any configuration files you have (things or services/omnilink.cfg) file. Delete the binding, re-add the binding, set your keys/ip/port and do discovery. It should automatically final all of the things on the Omni.

Tried to reset but no luck:
I also couldn’t find the place to configure keys/ip/port, am I looking at the right places?

I don’t actually know how to configure it in the GUI because I never have… You can create an omnilink.things in your things folder and put in it the following:

Bridge omnilink:controller:home [ ipAddress="<ip>", port=4369, key1="<key1>", key2="<key2>"] {

}

After that auto-discovery should work.

To Configure via the UI.
Do the following

Install the binding
Go to inbox
click on the + sign to add a thing
Choose Omnilink binding
Click on “Manually Add Thing” at the top of the page or scroll to the bottom and click on “Manually Add”
Scroll down and select Omnilink Controller
Now you can add your IP and Controller Keys.
Once done you should find new items in your inbox.

Hi @broconne
Looked at your code above

I can add a User Code via Paper UI but this means that the code is hard coded in OH.
I would like to use a Keypad using Habpanel and pass the string to the binding instead of storing the code. How do i go about doing this?

Regards

Now that this has been updated how do I go about using it? I have tried updating openhab and removing / reinstalling the binding but it still does not work.

I don’t use habpanel so I don’t really know.

I would probably ask in a different thread (it’s really a hab panel question).
You want to know how you capture a string value (of number) and send it to a channel.

Yes so even without habpanel, I want to be able to use a string to store the code instead of hard coding it.

Also how do I use the new changes to the temperature units that were done?
Edited my post above so you may not have seen it.

You would need to install the version I link to above directly from GitHub. Which would mean uninstalling the one you have and installing that one manually…

I did submit a PR to merge all the changes, so you could also opt to wait until a new official build comes out.