Omnilink 1.8.1 Binding Openhab2?

I’m just getting started with OH + Omni but I’m battling an annoying problem present under OH and OH2: My outside temp won’t update posted here. Do you have an outside temp sensor, and if so, is it updating? @digitaldan said his worked just fine. I’m going back trying to run Dan’s jOmnilinkII example code to see if I can figure out where the source of the problem is.

Sam,

I do have a couple of aux sensors that I hadn’t set up until now, and mine don’t seem to be updating either.

I would have expected to see a log entry pop up for the aux sensors periodically like the thermostat’s but no log entries for the aux sensors except on start up.

Thanks for confirming. At least now I know where not to look. I tried running Dan’s example ‘main’ in his jomnilink.jar. It runs, but then dies like this at the end. I guess I’ll get ant setup and try to learn some Java :slight_smile:.

eadBytesEncrypted2: Omni message Length 1
readBytesEncrypted2: Additional bytes to read 0
RX: 0x21 0x01 0x02 0x80 0x51 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
readBytesEncrypted2: Data still available after read 0
readBytesEncrypted2: Bytes available for reading: 0
com.digitaldan.jomnilinkII.OmniInvalidResponseException
        at com.digitaldan.jomnilinkII.Connection.reqObjectStatus(Unknown Source)
        at com.digitaldan.jomnilinkII.Connection.reqObjectStatus(Unknown Source)
        at com.digitaldan.jomnilinkII.examples.Main.main(Unknown Source)
Message:2

Dan,

I was taking a look at getting notifications for flags within the omnilink. Do you recall if this is supported within your jomnilink project? I looked at the Message class, specific the OBJ_TYPE constants and didn’t see anything.

thanks,
craig

never mind Dan. After a little more investigating, I think the flags are showing up as Units.

sorry for the bother.

Steve,

I think there is support for flags already.

Within my items file, I have this: (my flag within omnilink is ‘DisarmedLite’. Within PC Access, it shows under the flags section, with ID 394.

Dimmer Lights_DisarmedLite_Switch “DisarmedLite [%d%%]” (Lights) {omnilink=“unit:394”}

This would have been created automatically by Dan’s script to generate the items file, found within the cfg file.

So I believe that flags can be watched and set within openhab by setting up a Dimmer.

Give it a shot and let me know.

craig

Well, look at that…it worked. It’s always the easy stuff that gets me! Might be a good mention in the wiki since flags are a meat and potatoes programming tool for the omni board. Thank you @craigh!

My only other questions are around heating/cooling current run status (Cooling/Heating, Idle, or Off) but I can do that easily with flags, if needed.

Any ideas on if there might be a way to pass an alarm code to the panel or a way to retrieve user codes used to arm/disarm (events) from the omni?

And final question; what would be needed to get the 1.9.X binding added to the 2.0 compatible bindings list? I’ve been using 1.9.0 for some time now and it’s been very reliable. My only issues have been around expanding functionality.

Steve,

How did you figure out the unit #? Did you use the auto-generate feature?

I ask because I am trying to think of how to explain in the wiki for the next person.

I used PC Access. My flags didn’t auto generate back when I first set up OH. Units tied to lighting, zones, buttons, basic security, and thermostats auto generated but nothing else.

Another item that didn’t auto generate for me was AUX temp sensors, although they are covered in the current wiki.

Hello. Im trying to figure out how t install this binding rather then just copy my old v1 jar. Is this in a distribution yet?

There is a OH2 version in the Marketplace but it isn’t as functional (yet) as the v1 binding. For the record, I’ve been using version 1.9.0 for some time in OH2 and it’s been reliable. A new binding is in work, though, if you want to wait.

I just built a new Openhabian install and the easy stuff is in place. I did add the marketplace and install the new Omni Binding. What are my next steps. My Omni Config is in place but has not built a site map yet. Is that possible like it was in OH1?

Thanks
Oakguy

New question. Do you define your rooms so that the Apple Homekit add-on can see them? Also how would you define rooms and omnilink buttons for the Homekit?

Thanks
Guy

@craigh what should the location setting under configure omnilink controller in OH2 be? is it a place, or a number, or leave it blank?

can’t figure this partciular setting out.

thanks

You can leave that blank. That is a setting inherited from Openhab. I don’t use it myself.

@Spacecoast
Location is an OH2 thing that, to the best of my knowledge, only effects the Paper UI. You can group common things by setting a common location name. Each location will show up in the Paper UI with the items you named grouped under the location. I use this function to clean up the Paper UI to make it easier to find things.

Thanks gentlemen.

I’ve done 3 complete installs for neighbors for bridging our alarms with Vera.

Now considering long term move to drop Vera for something more ‘stable’!