Could you turn up the debugging and let me know what error messages you are seeing. The majority of the binding development was done on 2.1, and we then 2.2 when it was created.
Could you please create an issue over on the GitHub page for the binding, and someone should be able to help you out.
Guys I am just digging in to this. I am very confused how I can have a switch with ON - OFF - and then A - B - C - D all on a single line for a particular scene switch? Seems like it should be easy but without a concise example I can’t seem to get it to work properly. Any thoughts? I saw something about rules files but is that still appropriate in OpenHAB 2.x?
@heffneil
Hi Neil, to continue from our cocoontech discussion…
I had some time today to mess around with the scenes. I saw your rule based solution on cocoontech. I also figured out how to do scene switches without using rules. The trick is to use the “state” item for each room. Below is my Family Room item and the example sitemap choices:
Item: Number FamilyRoom_State "Family Room Lights [%s]" (Lights_FamilyRoom) {channel="omnilink:room:home:1:state"}
I have to try it out! Thanks for the help! Can you expound on your notifications you have enabled? Also anything else you have cool setup? I was trying to stoke the fires of conversation about this on cocoontech.
Just tested this and it does work! Much cleaner! Thanks! I wonder if it is possible to have the state of the room be loaded when the page is loaded? In other words if I push B on the Family Room switch can it reflect that on loading? - Update it looks like it is updating the state on load so that solves that problem! My only issue is the way this is configured in Basic UI I don’t see the room name… I don’t know if you use basic UI but with the optional buttons on the right it leaves no room for the room name?
What is “Lights_FamilyRoom” in your example? I don’t see it used anywhere else? Also the [%s} is the state right? But I don’t believe this is working properly for some reason.
“Lights_FamilyRoom” is a group name. I have nested groups set up using the name of each room and a top level group called “Lights”. This will group the rooms on the sitemap, and all you have to list on the sitemap is the top level group. The rest of the items will show up.
As for other cool stuff I’m doing with OpenHAB, I have one unfinished experiment after the other, right now. I see OpenHAB as the “glue” I’ve been looking for to bind other technologies with my Omni. The few things I am currently relying on for OH is remote functionality. Using the Harmony remote binding, the Global Cache binding, the Onkyo binding, the LG WebOS binding, and Evdev keylogger (python script), I have a handheld, non-iPad, Harmony button remote (that has a high WAF) that will control the various AV components I have in my home, without needing line of site IR (or any IR, for that matter). It can also control lights attached to my Omni. I also am able to tap into my Rainforest Eagle energy monitor, although I haven’t used the information for anything yet.
My “Goodnight button” that is UPB and controlled through my Omni system now also shuts off all my AV equipment as well. I do still depend on the programming in my Omnipro to do the heavy lifting but not because OpenHAB can’t do it. I’m more comfortable programming my Omni, but I’m learning OpenHAB more and more.
For notifications, I have a few basic set up using the Pushover Binding. You have to register with the Pushover service, add the binding then set up the rules you want. Here is an example “test rule” to give you an idea of how the rule works. This example sends out a Pushover notification when the “Nook Light” is turned on to 100%.
rule "Pushover Notification Test"
when
Item Lights_FamilyRoom_NookLight_Switch changed from 0 to 100
then
pushover("NOOK Light ON!")
end
Other stuff I am currently playing with are related to my Opensprinkler set up, controlling my Monoprice 6 zone 6 source audio amp (via a rule and serial control via Global Cache iFlex device). I am also dabbling in z-wave, although I am waiting for the “in development” security version to be released before I do anything serious with z-wave.
Another “todo” is getting Habpanel set up using some cheap Android touch screens I purchased to place on walls in rooms around my home. Habpanel is very slick touchscreen interface but, again, requires a little programming knowledge to get working the way I would want it. Good stuff in the forum, though.
The biggest missing item from the current Omni binding (for me) is the direct ability to control my ZigBee locks. I created a work around so I can control my locks from OH but I had to create a program in my Omni using flags (which are visible in OH as switches).
The current omnilink binding is very new. There are primarily 3 developers who have done all the work (very recently). Not much documention yet but I’m slowly figuring things out.
Is there some way to bulk add things vs PaperUI where I have to click the Checkbox and then click yes to everything?
I like this idea and I want to make icons or buttons that show garage status. In other words: If the Middle Garage is open show the button CLOSE Middle Garage. When it is closed make that button say OPEN middle garage. That is what has been missing for a LONG time for me!
There isn’t a way to dynamically generate items with this version but what I have discovered is once you have created your items file the first time, and as long as you change the default controller name to the same as what is in the items file, OH will “auto-link” to the existing items file without having to link the items in the PaperUI. This is very helpful if you want to reload a fresh version of OH.
I haven’t tried making the mapped buttons change but I think I’ve seen some forum examples. I do have icons that visually change with the status of the zone. You assign icons to the items file or on the sitemap from the list of available OH icons:
You add the base icon name like right ofter the item description (before the group name if used or the channel information).
I have my garage door icons and a mapped switch on my sitemap:
You’ll notice the icon matches the state of the garage. The locks are also examples. You can also do custom icons as well if you don’t like the standard OH icons. The gate icons are one’s I made. I didn’t make an “open” version yet so those don’t change state.
Ok that is exactly what I am looking for in terms of the status of the garage doors, I don’t get it how it knows or where you tell it to behave this way?
The icons are dynamic. If you look at the list of icons many have multiple names like “garagedoor.svg” “garagedoor-open.svg” and “garagedoor-closed.svg”. By using “garagedoor” as the icon it will follow the status of the zone and automatically change the icon to match the status (open or closed in this case).
Here is my garage zone item, other zones (doors and windows are similar):
Ok thanks for the explanation! This is exactly the type of details I was looking for and you helped / saved me from sifting through endless docs to find this answer!
Greetings, I have HAI/Leviton Omni experience, but new to OpenHab. Trying to work through the maze of confusing, out of date documents, tutorials, totally different version of OpenHab, different repositories and places to get bindings, different UIs, forks, folder structures, file vs. db based setups, on and on, you have all been there, as it is said, learning curve is VERY steep, like, vertical, hope I can hang on.
Anyway, my main current interest is controlling my OmniIIe panel with OH, and accessing the devices connected to the panel. I am starting from scratch (several times already!) so nothing invested in setup so far. Omni is running latest Leviton 4.0b code, and I am running OH on a Debian RPI, current code, with java 8.151. I can load and run OH no problem, located omnilink bindings, installed them, and can run with some success but not close to what you guys are talking about. With OH 2.1.0 stable code, and omnilink binding from the eclipse marketplace, OH can talk to Omni, and with PaperUI can discover many objects in omni, like buttons, zones, flags, but NOT units. I tried snapshot version of OH, and 1.x and 2.0, 2.2, snapshot versions of omnilink binding installed manually, all with poor results. I am mostly using PaperUI. In my best case so far, where OH discovers much of omni, I tried to manually add a known unit, and it fails and my interpretation of the log is that it could not find a method in the binding for “unit”, which is hard to believe.
So my question is, where is a reasonable place to start? Should I be using the very latest OH snapshot release? Is the binding on eclipse marketplace good enough to do most everything (like find units on my omni) or is there a better version I should get, from somewhere? Is it reasonable to start with db based configs and PaperUI or do I need to figure out how to get manual install working, and where the .cfg and.jar need to go, and what they need to be called? I did see that the discovery process with snapshot code resulted in somewhat different Things in the lists, with more info, so I am inclined to switch to the snapshot repository, purge what I have, reinstall OH from snapshot, and whatever omnilink binding seems to be available from there.
Replying to myself, sorry. Some success since last post, running 2.2.0 SNAPSHOT, can search and find many Omni Things, but still can’t find any Units. All my Units are X-10 so far, set to Extended house code format. Manually creating Unit thing works but does not link to anything. Manually creating a UPB Thing with same Unit ID works to some extent. Is there a known issue with X-10 Units, or do you have any suggestions to troubleshoot why no Units are found, and no Things created?
Units should work fine. I am using it with UPB with no issue. I define them manually (I like my configs to be in source control). I think others are using UPB or other unit types with no problem.
That being said, I have not tested X10 only UPB. Your units aren’t automatically discovered? That should happen no matter the unit type.
Correct, none of my units are automatically discovered. I can add a plain “unit”, (not UPB, ALC, etc) but there is no place to link to the Omni panel Thing for a plain unit, in PaperUI. I can add a UPB unit and have had some success with that. But no auto-discovery.
I have pretty much moved on to Homeseer, partly because things like this seem to work a bit better. It is not great or complete or all that clear either, but it is not quite as steep a learning curve as OpenHab!