Omnilink binding in 1.5

302 views
Skip to first unread message

nasko...@gmail.com

unread,
Jun 18, 2014, 9:55:51 AM6/18/14
to ope...@googlegroups.com
Hi all,
According to the release notes for openHAB 1.5 (https://github.com/openhab/openhab/wiki/Release-Notes-1.5) there is now a binding for HAI Omnilink. I just downloaded the 1.5 addons package (https://github.com/openhab/openhab/releases/download/v1.5.0/distribution-1.5.0-addons.zip) and I don't see the binding present. Is it missed by any chance or did I get the wrong package?
Thanks in advance!
Nasko Oskov

dan cunningham

unread,
Jun 18, 2014, 6:08:14 PM6/18/14
to ope...@googlegroups.com
Your right, its not being bundled, I'll find out why, in the mean time you can drop this jar in your addons directory.


--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.

org.openhab.binding.omnilink-1.6.0-SNAPSHOT.jar

nasko...@gmail.com

unread,
Jun 19, 2014, 2:48:56 AM6/19/14
to ope...@googlegroups.com
Thanks for the jar. It seems to load, but it doesn't print anything to the log, even though I have omnilink:generateItems=true. The debug output shows:

...
23:34:30.693 DEBUG o.o.b.o.i.OmniLinkActivator[:34] - OmniLink binding has been started.
23:34:30.722 DEBUG o.o.b.n.internal.NtpActivator[:31] - NTP binding has been started.
...

Once I configure an unit, the log shows:

23:47:26.479 DEBUG o.o.b.o.i.OmniLinkGenericBindingProvider[:74] -  Adding item UNIT 20

But adding a slider or switch to the sitemap doesn't seem to invoke any behavior. What is the easiest way to troubleshoot what the problem might be?

dan cunningham

unread,
Jun 19, 2014, 8:06:59 AM6/19/14
to ope...@googlegroups.com
If you run openHAB using start_debug.sh (debug logging) it should print out more info.  Just to verify, you have both hex keys, the ip address and port correct?  And uncommented?  Can you tell me what devices you have attached to your omni?  Are they all named?  Do you know what version of the Omni firmware you have?

nasko...@gmail.com

unread,
Jun 19, 2014, 10:29:46 AM6/19/14
to ope...@googlegroups.com
I did run start_debug.sh, this is how I got the debug logs I pasted. Yes, I do have the setting in configurations/openhab.cfg and they are not commented. I have Omni IIe and I upgraded the firmware (was 3.9, now is 3.13). I have bunch of dimmers, a thermostat, a bunch of sensors. They are all named. 
I've been able to retrieve the items with my own binding I started playing around with, but decided to use yours as it is more feature complete. So the communication is likely going to be fine, but what might be going wrong is reading the settings from the file or kicking off the connection to the controller. I started a brand new install with only couple of items in the configuration, just to make sure I'm not missing something.

dan cunningham

unread,
Jun 19, 2014, 11:33:34 AM6/19/14
to ope...@googlegroups.com
There should more logging then that, after openHAB adds the items to the provider, the omnilink binding should print out connection info like so :

20:24:04.545 DEBUG o.o.b.o.i.OmniLinkBinding[:242]- Starting update
20:24:04.558 DEBUG o.o.b.o.i.OmniLinkBinding[:308]- OmniConnectionThread init
20:24:04.571 DEBUG o.o.b.o.i.OmniLinkBinding[:347]- OmniConnectionThread running
20:24:04.572 DEBUG o.o.b.o.i.OmniLinkBinding[:355]- OmniConnectionThread trying to connect
....
20:24:04.754 DEBUG o.o.b.o.i.OmniLinkBinding[:360]- OmniConnectionThread connected
....
20:24:04.927 INFO  o.o.b.o.i.OmniLinkBinding[:398]- System: SystemStatus ( timeDateValid = true    year = 14    month = 6    day = 16    dayOfWeek = 1    hour = 20    minute = 22    second = 24    daylightSavings = true    sunriseHour = 6    sunriseMinute = 30    sunsetHour = 21    sunsetMinute = 22    batteryReading = 225    alarms = {}     )
 
If you don't see the first couple lines it might be the config file, can you post a sanitized version here, or ping me offline?  I'm sure its something small that's causing the issue. 

Dan-

Thomas Eichstädt-Engelen

unread,
Jun 20, 2014, 5:41:19 AM6/20/14
to ope...@googlegroups.com
Hi Dan, Nasko,

see https://github.com/openhab/openhab/commit/2bd995a9b431c13a66daee00248eae24b1096d7f the binding has now been added to the distribution archive.

Thanks for pointing this out. Any success with starting the bundle meanwhile?

Best,

Thomas E.-E.


<org.openhab.binding.omnilink-1.6.0-SNAPSHOT.jar>

dan cunningham

unread,
Jun 20, 2014, 8:24:33 AM6/20/14
to ope...@googlegroups.com
Thanks Thomas!  I believe my other binding (freeswitch) will need to be added as well, I'll get a pull request going for that. 

Dan-

Thomas Eichstädt-Engelen

unread,
Jun 20, 2014, 8:40:26 AM6/20/14
to ope...@googlegroups.com
Hi Dan,

great thanks!

Please also add the jdeb plugin section to both of the pom.xml files which makes your bundle available in the deb-repo as well.

Thanks, Thomas E.-E.

dan cunningham

unread,
Jun 20, 2014, 8:47:38 AM6/20/14
to ope...@googlegroups.com
Will do.

Dan-

Nasko Oskov

unread,
Jun 20, 2014, 5:01:07 PM6/20/14
to ope...@googlegroups.com
On Fri, Jun 20, 2014 at 2:41 AM, Thomas Eichstädt-Engelen <teic...@gmail.com> wrote:
Hi Dan, Nasko,

see https://github.com/openhab/openhab/commit/2bd995a9b431c13a66daee00248eae24b1096d7f the binding has now been added to the distribution archive.
Thanks for pointing this out.

I'm glad to help. Are the 1.5 distribution files going to be updated? I'd love to get the "official" 1.5 binding for Omnilink.
 
Any success with starting the bundle meanwhile?

No, unfortunately. The root cause of the problem seems to be the binding not picking up the configuration from openhab.cfg. Do you have any tips on how to try and troubleshoot that short of setting up a copy of the source and debugging through it?
 
Best,

Thomas E.-E.


On 19 Jun 2014, at 00:08, dan cunningham <d...@digitaldan.com> wrote:

Your right, its not being bundled, I'll find out why, in the mean time you can drop this jar in your addons directory.


On Wed, Jun 18, 2014 at 7:55 AM, <nasko...@gmail.com> wrote:
Hi all,
According to the release notes for openHAB 1.5 (https://github.com/openhab/openhab/wiki/Release-Notes-1.5) there is now a binding for HAI Omnilink. I just downloaded the 1.5 addons package (https://github.com/openhab/openhab/releases/download/v1.5.0/distribution-1.5.0-addons.zip) and I don't see the binding present. Is it missed by any chance or did I get the wrong package?
Thanks in advance!
Nasko Oskov


--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.
<org.openhab.binding.omnilink-1.6.0-SNAPSHOT.jar>

--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/BPViYgrY-I4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.

dan cunningham

unread,
Jun 20, 2014, 5:25:34 PM6/20/14
to ope...@googlegroups.com
I was thinking I could give u a build with much more logging , i try and post something soon

Sent from my iPhone

DigitalDan

unread,
Jun 23, 2014, 9:59:01 AM6/23/14
to ope...@googlegroups.com
I'm having trouble building from trunk right now, I will hopefully have something soon.


On Friday, June 20, 2014 3:25:34 PM UTC-6, DigitalDan wrote:
I was thinking I could give u a build with much more logging , i try and post something soon

Sent from my iPhone

On Jun 20, 2014, at 3:01 PM, Nasko Oskov <nasko...@gmail.com> wrote:

On Fri, Jun 20, 2014 at 2:41 AM, Thomas Eichstädt-Engelen <teic...@gmail.com> wrote:
Hi Dan, Nasko,

see https://github.com/openhab/openhab/commit/2bd995a9b431c13a66daee00248eae24b1096d7f the binding has now been added to the distribution archive.
Thanks for pointing this out.

I'm glad to help. Are the 1.5 distribution files going to be updated? I'd love to get the "official" 1.5 binding for Omnilink.
 
Any success with starting the bundle meanwhile?

No, unfortunately. The root cause of the problem seems to be the binding not picking up the configuration from openhab.cfg. Do you have any tips on how to try and troubleshoot that short of setting up a copy of the source and debugging through it?
 
Best,

Thomas E.-E.


On 19 Jun 2014, at 00:08, dan cunningham <d...@digitaldan.com> wrote:

Your right, its not being bundled, I'll find out why, in the mean time you can drop this jar in your addons directory.
On Wed, Jun 18, 2014 at 7:55 AM, <nasko...@gmail.com> wrote:
Hi all,
According to the release notes for openHAB 1.5 (https://github.com/openhab/openhab/wiki/Release-Notes-1.5) there is now a binding for HAI Omnilink. I just downloaded the 1.5 addons package (https://github.com/openhab/openhab/releases/download/v1.5.0/distribution-1.5.0-addons.zip) and I don't see the binding present. Is it missed by any chance or did I get the wrong package?
Thanks in advance!
Nasko Oskov


--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.
<org.openhab.binding.omnilink-1.6.0-SNAPSHOT.jar>

--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/BPViYgrY-I4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openhab+unsubscribe@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+unsubscribe@googlegroups.com.

DigitalDan

unread,
Jun 23, 2014, 2:17:06 PM6/23/14
to ope...@googlegroups.com
attached.  I added a little more debug logging in the update method where the configuration would be passed.  Also can you tell me a little about the system you are running on?  OS, Java Version and Vendor, etc...  Also are any other bindings working for you?
org.openhab.binding.omnilink-1.6.0-SNAPSHOT.jar

Nasko Oskov

unread,
Jun 24, 2014, 12:36:50 AM6/24/14
to ope...@googlegroups.com
No extra logging that I haven't seen before:

21:32:01.420 DEBUG o.o.b.o.i.OmniLinkActivator[:34] - OmniLink binding has been started.
21:32:01.439 DEBUG o.o.m.i.i.GenericItemProvider[:334] - Start processing binding configuration of Item 'BedroomEntry (Type=DimmerItem, State=Uninitialized)' with 'OmniLinkGenericBindingProvider' reader.
21:32:01.442 DEBUG o.o.b.o.i.OmniLinkGenericBindingProvider[:74] -  Adding item UNIT 20
21:32:01.442 DEBUG o.o.m.i.i.GenericItemProvider[:334] - Start processing binding configuration of Item 'Thermostats_Temp (Type=NumberItem, State=Uninitialized)' with 'OmniLinkGenericBindingProvider' reader.
21:32:01.443 DEBUG o.o.b.o.i.OmniLinkGenericBindingProvider[:74] -  Adding item THERMO_TEMP 1
21:32:01.443 DEBUG o.o.m.i.i.GenericItemProvider[:334] - Start processing binding configuration of Item 'Master (Type=DimmerItem, State=Uninitialized)' with 'OmniLinkGenericBindingProvider' reader.
21:32:01.443 DEBUG o.o.b.o.i.OmniLinkGenericBindingProvider[:74] -  Adding item UNIT 24


The "Start processing" lines show up once I add entries into the items file, otherwise I only see the first line.
I'm running this on Ubuntu Server 10.04, openjdk:
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.10.04.4)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

I have developed my own Omnilink binding for basic lighting setup based on your jOmnilink library and it works fine, but I don't read the configuration from the config file, rather it is hardcoded in my dev version. I don't have other bindings that have a need to read openhab.cfg.

Thanks,
Nasko



To unsubscribe from this group and all its topics, send an email to openhab+u...@googlegroups.com.

dan cunningham

unread,
Jun 24, 2014, 11:55:46 AM6/24/14
to ope...@googlegroups.com
There have been issues with java 1.6 and some bindings, can you try oracle 1.7 instead?  I suspected this was probably the issue.  


To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.

Nasko Oskov

unread,
Jun 28, 2014, 4:03:52 AM6/28/14
to ope...@googlegroups.com
Changing to Oracle JRE 8 got things to work. Thanks!

Does the binding support zone setting and arming/disarming?

DigitalDan

unread,
Jun 28, 2014, 11:07:57 AM6/28/14
to ope...@googlegroups.com, nasko...@gmail.com
Awesome!

Yes it does, I have a fully central monitored setup with 20+ hardwrired zones, smoke, CO2 as well as a few wireless sensors, I use openhab to arm, disarm, bypass , ect....  I also use the zone events to trigger rules like emailing me when the front door opens.   
Best,

Thomas E.-E.


To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.

To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "openhab" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openhab+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
Visit this group at http://groups.google.com/group/openhab.
For more options, visit https://groups.google.com/d/optout.
<org.openhab.binding.omnilink-1.6.0-SNAPSHOT.jar>

--
You received this message because you are subscribed to a topic in the Google Groups "openhab" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openhab/BPViYgrY-I4/unsubscribe.

mada...@gmail.com

unread,
Jul 24, 2014, 1:40:00 PM7/24/14
to ope...@googlegroups.com
I'm having trouble with the binding.  It seems to connect to my OmniProII and then disconnect.  Any ideas?

12:54:01.955 DEBUG o.o.b.o.i.OmniLinkBinding[:360]- OmniConnectionThread connected
12:54:02.098 INFO  o.o.b.o.i.OmniLinkBinding[:398]- System: SystemStatus ( timeDateValid = true    year = 14    month = 7    day = 24    dayOfWeek = 4    hour = 12    minute = 53    second = 58    daylightSavings = true    sunriseHour = 5    sunriseMinute = 39    sunsetHour = 20    sunsetMinute = 15    batteryReading = 228    alarms = {}     )
12:54:02.276 ERROR o.o.b.o.i.OmniLinkBinding[:449]- Could not connect to system
java.lang.NullPointerException: null
at org.openhab.binding.omnilink.internal.ui.OmnilinkItemGenerator.generateUnits(OmnilinkItemGenerator.java:250)
at org.openhab.binding.omnilink.internal.ui.OmnilinkItemGenerator.generateItemsAndGroups(OmnilinkItemGenerator.java:159)
at org.openhab.binding.omnilink.internal.OmniLinkBinding$OmniConnectionThread.run(OmniLinkBinding.java:410)
12:54:02.283 ERROR o.o.b.o.i.OmniLinkBinding[:383]- OmniConnectionThread was disconnected, will try again
java.net.SocketException: Socket Closed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.DataInputStream.readUnsignedShort(Unknown Source)
at com.digitaldan.jomnilinkII.Connection.readBytesEncrypted2(Unknown Source)
at com.digitaldan.jomnilinkII.Connection.run(Unknown Source)
12:54:02.283 DEBUG o.o.b.o.i.OmniLinkBinding[:355]- OmniConnectionThread trying to connect
12:54:02.352 DEBUG o.o.b.o.i.OmniLinkBinding[:360]- OmniConnectionThread connected
12:54:02.822 INFO  o.o.b.o.i.OmniLinkBinding[:398]- System: SystemStatus ( timeDateValid = true    year = 14    month = 7    day = 24    dayOfWeek = 4    hour = 12    minute = 53    second = 59    daylightSavings = true    sunriseHour = 5    sunriseMinute = 39    sunsetHour = 20    sunsetMinute = 15    batteryReading = 228    alarms = {}     )
12:54:03.474 ERROR o.o.b.o.i.OmniLinkBinding[:449]- Could not connect to system
java.lang.NullPointerException: null
at org.openhab.binding.omnilink.internal.ui.OmnilinkItemGenerator.generateUnits(OmnilinkItemGenerator.java:250)
at org.openhab.binding.omnilink.internal.ui.OmnilinkItemGenerator.generateItemsAndGroups(OmnilinkItemGenerator.java:159)
at org.openhab.binding.omnilink.internal.OmniLinkBinding$OmniConnectionThread.run(OmniLinkBinding.java:410)
12:54:03.480 ERROR o.o.b.o.i.OmniLinkBinding[:383]- OmniConnectionThread was disconnected, will try again
java.net.SocketException: Socket Closed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.io.DataInputStream.readUnsignedShort(Unknown Source)
at com.digitaldan.jomnilinkII.Connection.readBytesEncrypted2(Unknown Source)
at com.digitaldan.jomnilinkII.Connection.run(Unknown Source)
12:54:03.481 DEBUG o.o.b.o.i.OmniLinkBinding[:355]- OmniConnectionThread trying to connect
12:54:03.783 DEBUG o.o.b.o.i.OmniLinkBinding[:360]- OmniConnectionThread connected
12:54:04.140 INFO  o.o.b.o.i.OmniLinkBinding[:398]- System: SystemStatus ( timeDateValid = true    year = 14    month = 7    day = 24    dayOfWeek = 4    hour = 12    minute = 54    second = 0    daylightSavings = true    sunriseHour = 5    sunriseMinute = 39    sunsetHour = 20    sunsetMinute = 15    batteryReading = 228    alarms = {}     )
12:54:04.777 ERROR o.o.b.o.i.OmniLinkBinding[:449]- Could not connect to system

dan cunningham

unread,
Jul 24, 2014, 7:10:35 PM7/24/14
to ope...@googlegroups.com
It's connecting ok, but hitting a bug in the item generation code, that part of the code base was a little messy, let me look at it and see what I can do.

Sent from my iPhone

mada...@gmail.com

unread,
Jul 25, 2014, 10:55:41 AM7/25/14
to ope...@googlegroups.com
Thanks - i'm running firmware 3.13 if that helps.

dan cunningham

unread,
Jul 25, 2014, 12:36:43 PM7/25/14
to ope...@googlegroups.com
What type of lighting do you have connected?  

mada...@gmail.com

unread,
Jul 25, 2014, 12:38:33 PM7/25/14
to ope...@googlegroups.com
just z-wave

dan cunningham

unread,
Jul 25, 2014, 12:40:55 PM7/25/14
to ope...@googlegroups.com
Do you have them grouped in HAI rooms?  Or does your system list off of the lights individually under a flat hierarchy?

mada...@gmail.com

unread,
Jul 25, 2014, 12:43:56 PM7/25/14
to ope...@googlegroups.com
I do use the room function.  When I look at my unit list they are just one big list.  In order to use the room function you have to first go into that room for it to filter the unit list.  So I think in this case its just a flat hierarchy.  

The same unit can be in multiple rooms as far as I know - so i'm fairly sure its all still flat.

dan cunningham

unread,
Jul 25, 2014, 12:49:52 PM7/25/14
to ope...@googlegroups.com
Gotcha, I can see where its failing, very poor coding on my part, I'll post something here for you to test shorty.

dan cunningham

unread,
Jul 25, 2014, 1:20:40 PM7/25/14
to ope...@googlegroups.com
Can you try the attached jar?  Make sure to move the old jar out of the addons folder before restarting.
org.openhab.binding.omnilink-1.6.0-SNAPSHOT.jar

mada...@gmail.com

unread,
Jul 25, 2014, 1:32:33 PM7/25/14
to ope...@googlegroups.com
perfect - i got it to load and it seems to see all of my units/thermostats in the log file.

Now I just have to figure out how to show it in a sitemap - i'm BRAND new to OpenHAB and figured i'd start with this!.  Am I missing an easy way to create one?

dan cunningham

unread,
Jul 25, 2014, 1:58:43 PM7/25/14
to ope...@googlegroups.com
There should be a simple sitemap and items list printed out to the logs.  Most, if not all openHAB bindings do not print something like this out.  I wrote this class specifically b/c I had hundreds of things and I was too lazy to write a sitemap by hand.  Hence why its a little messy and kinda of a hack.  You can use it as a starting place.  Now that you have a basic place to start I would disable printing the config to the logs as it adds startup time to openHAB and doesn't provide any other value then saving you time on creating your initial items and sitemap file. 

There are two sets of things prinited to the log, the first is the sitemap, it begins with 'sitemap home label="Main Menu{'  and lists everything that will be displayed on one of the openHAB clients (ios, android, web, etc..).  Copy and paste this all the way to the final '}' into a file named main.sitemap in the sitemaps folder.  The second list of things will be the items, copy and paste these into a file called omni.items (can be named anything actually, as long as it ends in .items) and put this in the items directory.

Make sure to use the output from the .sh or .bat file you are running, I just realized I am using a System.out.println for the sitemap which needs to be changed so everything goes to a proper log. 

mada...@gmail.com

unread,
Jul 25, 2014, 2:04:53 PM7/25/14
to ope...@googlegroups.com
Hi Dan,

Thanks.  I see the text for the items file in the log (i managed to fiddle with this and get some to disable in the demo sitemap).  Unfortunately it doesn't appear to write a sitemap to the log.  if I search the whole log for "sitemap" I get nothing.  I have omnilink:generateItems=true

dan cunningham

unread,
Jul 25, 2014, 2:07:25 PM7/25/14
to ope...@googlegroups.com
What OS are you running this on?

dan cunningham

unread,
Jul 25, 2014, 2:12:46 PM7/25/14
to ope...@googlegroups.com
Here try this one, I fixed it so everything prints to the right log.  The items will be printed first, then the sitemap.


On Fri, Jul 25, 2014 at 11:04 AM, <mada...@gmail.com> wrote:
org.openhab.binding.omnilink-1.6.0-SNAPSHOT.jar

mada...@gmail.com

unread,
Jul 25, 2014, 2:35:08 PM7/25/14
to ope...@googlegroups.com
Bingo - now I have a sitemap - lots of errors though.  I think the text is missing some things.  Here is an example of how it comes out of the log (console looks almost identical).  This is running on windows 7.  The thermostats are complaining about not finding the data items (i think the below is mangled somehow)

Text label="Guest Room  [%d°F]" item=Thermostats_GuestRoom_Temp icon="omni_thermostat" {
Frame item=Thermostats_GuestRoom_Temp label="Guest Room [%d°F]"{
Setpoint item=Thermostats_GuestRoom_CoolPoint minValue=32 maxValue=100 step=1
 icon="omni_thermostat-cool"Setpoint item=Thermostats_GuestRoom_HeatPoint minValue=32 maxValue=100 step=1
 icon="omni_thermostat-heat"Switch item=Thermostats_GuestRoom_System label="Mode" icon="omni_thermostat" mappings=["0"=Off, "1"=Heat, "2"=Cool,"3"=Auto,"4"=Emer]
Switch item=Thermostats_GuestRoom_Fan label="Fan" mappings=["0"=Auto, "1"=On]
Switch item=Thermostats_GuestRoom_Hold label="Hold" mappings=["0"=Off, "1"=On]

dan cunningham

unread,
Jul 25, 2014, 2:38:39 PM7/25/14
to ope...@googlegroups.com
Its probably missing the ending '}' I think it should be printed ok to the log file, I would check to see if you missed one param or more.  If it is wrong (which totally could be the case), then go through the sitemap and make sure there is matching }.  If your post your sitemap, I can take a look for you.

mada...@gmail.com

unread,
Jul 25, 2014, 2:43:31 PM7/25/14
to ope...@googlegroups.com
Here is the map copied directly from the log file.  I'll take a look to see.  I noticed there appear to be some lines that are broken - maybe the CR's are not working?
main.sitemap

dan cunningham

unread,
Jul 25, 2014, 5:02:16 PM7/25/14
to ope...@googlegroups.com
can you send me the items file as well?  Do your light names have a dash '-' in them, it looks like this may not be supported in the sitemap syntax, easy enough fix if so.  

mada...@gmail.com

unread,
Jul 26, 2014, 6:26:07 AM7/26/14
to ope...@googlegroups.com
Here it is.  Yes there are a few that have -
...
omni.items

dan cunningham

unread,
Jul 26, 2014, 10:51:36 AM7/26/14
to ope...@googlegroups.com
Can you try this version and resend those files? 
org.openhab.binding.omnilink-1.6.0-SNAPSHOT.jar

mada...@gmail.com

unread,
Jul 26, 2014, 5:19:40 PM7/26/14
to ope...@googlegroups.com
Here we go - much closer now!

Appreciate your help on this!

--
You received this message because you are subscribed to the Google Groups &
...
Capture.PNG
omni.items
main.sitemap

dan cunningham

unread,
Jul 26, 2014, 8:33:45 PM7/26/14
to ope...@googlegroups.com
That's great!  I noticed that i named a few of the icons "omni_lights" and "omni_thermostat" , those were my own icons, you should change those to "

 light-on" and "temperature", i'll change that as well in the code in the next release (again I wrote this for myself and only afterwards did i think others may get some use out of it).  You will also notice that there are a lot more items in the item file then in the sitemap (like security zones and buttons), I'm not sure why those did not get printed out to the sitemap file, were there any errors?  You can manually add them, I'm just not sure why they did not get printed out.   I have attached one of my sitemaps as an example of a fairly complete example to help you get going on whats possible.  By the way, openHAB blows the HAI touch screen stuff out of the water (their touch screens are total crap) , it breathed a whole new life into my system.  

dan cunningham

unread,
Jul 26, 2014, 8:34:51 PM7/26/14
to ope...@googlegroups.com
Sorry, forgot the attachment.
main.sitemap

mada...@gmail.com

unread,
Jul 27, 2014, 6:52:27 AM7/27/14
to ope...@googlegroups.com
Hi Dan,

No errors in the log - it seems to have just skipped all those items.

What did you end up replacing your touchscreens with? (hardware).

G
...

mada...@gmail.com

unread,
Jul 27, 2014, 6:59:33 AM7/27/14
to ope...@googlegroups.com, mada...@gmail.com
I cleared everything out and ran it again - the sitemap is still missing those items.

It seems to close out all of the brackets so i guess it thinks its done.
...

dan cunningham

unread,
Jul 28, 2014, 6:49:53 PM7/28/14
to ope...@googlegroups.com
Try the attached file.
  
I have 4 nexus 7 tablets (2011 model)  running the android client with a few modifications I made to support day dream mode and full screen mode (android 4.4 features). 
org.openhab.binding.omnilink-1.6.0-SNAPSHOT.jar

mada...@gmail.com

unread,
Jul 28, 2014, 8:29:24 PM7/28/14
to ope...@googlegroups.com
Thanks again! - almost perfect.  Just one problem with the thermostat pages (all of them are the same).  Everything else is there now that I can see and it appears to be working!
Capture.PNG
omni.items
main.sitemap

pete c

unread,
Aug 1, 2014, 4:06:16 PM8/1/14
to ope...@googlegroups.com, nasko...@gmail.com
Great stuff Dan!  Not sure if I am posting in the right place for testing?

Playing a bit today with the HAI stuff.  I am currently testing with the home panel today.  It is configured mostly with UPB, X10 and Z-Wave devices, Russound audio, Omnistats and legacy Omnitouch (5.7) and IP Omntouch (5.7) screens. 

It seems to be working fine.  For whatever reason I am not seeing temps on the Omnistat page.


dan cunningham

unread,
Aug 2, 2014, 9:42:02 AM8/2/14
to ope...@googlegroups.com
This is the place ;-)   Can you tell me a little more? Are those lines missing or are the temp values 0 (or - )?  Do you know what firmware version you are running on the omni?  Can you post your sitemap and items file?  A screenshot also would be helpful as well.


dan cunningham

unread,
Aug 2, 2014, 9:45:03 AM8/2/14
to ope...@googlegroups.com
Graham, sorry I have been traveling a bit and just getting back to your issues.  Did you ever resolve your temp issue?

Graham Clifford

unread,
Aug 2, 2014, 9:46:18 AM8/2/14
to ope...@googlegroups.com
Not yet - I am also travelling - back on Monday hopefully!

pete c

unread,
Aug 11, 2014, 1:47:11 PM8/11/14
to
Apologies Dan.

I am running firmware 3.13,  A bit off on a tangent I have installed a modded TP-Link combo router between the ethernet interface and the rest of the network in the last few days.  That said I have also been playing with the serial connectivity via Pro-Link and Omni-link.  I can talk fine also to the serial ports connected to the OPII panel.  Not sure though if I can get OpenHab to run on the OpenWRT OS.  The CPU is only 400Mhz. 

The Omnistat display and functions are working well.  I have additional temperature and humidity sensors.  These do show up in the zones section with no temperature or humidity values.

Pete


On Saturday, August 2, 2014 8:42:02 AM UTC-5, DigitalDan wrote:
This is the place ;-)   Can you tell me a little more? Are those lines missing or are the temp values 0 (or - )?  Do you know what firmware version you are running on the omni?  Can you post your sitemap and items file?  A screenshot also would be helpful as well.
On Fri, Aug 1, 2014 at 2:06 PM, pete c <pcal...@gmail.com> wrote:
Great stuff Dan!  Not sure if I am posting in the right place for testing?

Playing a bit today with the HAI stuff.  I am currently testing with the home panel today.  It is configured mostly with UPB, X10 and Z-Wave devices, Russound audio, Omnistats and legacy Omnitouch (5.7) and IP Omntouch (5.7) screens. 

It seems to be working fine.  For whatever reason I am not seeing temps on the Omnistat page.


openHAB-Omnistat2.jpg
OpenHabZoneView.jpg
ZoneView-2.jpg

mada...@gmail.com

unread,
Aug 19, 2014, 1:42:20 PM8/19/14
to ope...@googlegroups.com
No - the thermostat screen still has some bad characters at the top (pete c also has them)

Also - I cannot seem to figure out how to get the arm/disarm.  Do I need to add "areas" to the map?
...
Reply all
Reply to author
Forward
0 new messages