HAI OmniLink Bindings HELP

“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.

Group:Switch:OR(ON, OFF)	Lights	               "Lights [%s]"	     (All)
Group:Switch:OR(ON, OFF)	Lights_FamilyRoom	   "Family Room [%s]"	  (Lights)
Switch	FamilyRoom_Switch	                  "Family Room [%s]"	    (Lights_FamilyRoom)	 {channel="omnilink:room:home:1:switch"}
Switch  FamilyRoom_OnScene                    "Scene On [%s]"                (Lights_FamilyRoom)  {channel="omnilink:room:home:1:on"}
Switch  FamilyRoom_OffScene                   "Scene Off [%s]"               (Lights_FamilyRoom)  {channel="omnilink:room:home:1:off"}       
Switch  FamilyRoom_Scene_A                    "Scene A [%s]"                 (Lights_FamilyRoom)  {channel="omnilink:room:home:1:scene_a"}
Switch  FamilyRoom_Scene_B                    "Scene B [%s]"                 (Lights_FamilyRoom)  {channel="omnilink:room:home:1:scene_b"}
Switch  FamilyRoom_Scene_C                    "Scene c [%s]"                 (Lights_FamilyRoom)  {channel="omnilink:room:home:1:scene_c"}
Switch  FamilyRoom_Scene_D                    "Scene D [%s]"                 (Lights_FamilyRoom)  {channel="omnilink:room:home:1:scene_d"}
Number	FamilyRoom_State	                  "Family Room Lights [%s]" (Lights_FamilyRoom)  {channel="omnilink:room:home:1:state"}
Dimmer	Lights_FamilyRoom_Ceiling_Switch	  "Ceiling [%s]"	        (Lights_FamilyRoom)	 {channel="omnilink:upb:home:2:level"}
Dimmer	Lights_FamilyRoom_FanLight_Switch	  "Fan Light [%s]"	        (Lights_FamilyRoom)	 {channel="omnilink:upb:home:3:level"}
Dimmer	Lights_FamilyRoom_Lamp_Switch	      "Lamp [%s]"	            (Lights_FamilyRoom)	 {channel="omnilink:upb:home:4:level"}
Dimmer	Lights_FamilyRoom_CeilingFan_Switch	  "Ceiling Fan [%s]"	    (Lights_FamilyRoom)	 {channel="omnilink:upb:home:5:level"}
Dimmer	Lights_FamilyRoom_NookLight_Switch	  "Nook Light [%s]"	        (Lights_FamilyRoom)	 {channel="omnilink:upb:home:6:level"}

Group:Switch:OR(ON, OFF)  Lights_Downstairs	   "Downstairs [%s]"	      (Lights)
Switch	Downstairs_Switch	                  "Downstairs [%s]"	        (Lights_Downstairs)	 {channel="omnilink:room:home:9:switch"}
Switch  Downstairs_OnScene                    "Scene On [%s]"                (Lights_Downstairs)  {channel="omnilink:room:home:9:on"}
Switch  Downstairs_OffScene                   "Scene Off [%s]"               (Lights_Downstairs)  {channel="omnilink:room:home:9:off"}       
Switch  Downstairs_Scene_A                    "Scene A [%s]"                 (Lights_Downstairs)  {channel="omnilink:room:home:9:scene_a"}
Switch  Downstairs_Scene_B                    "Scene B [%s]"                 (Lights_Downstairs)  {channel="omnilink:room:home:9:scene_b"}
Switch  Downstairs_Scene_C                    "Scene c [%s]"                 (Lights_Downstairs)  {channel="omnilink:room:home:9:scene_c"}
Switch  Downstairs_Scene_D                    "Scene D [%s]"                 (Lights_Downstairs)  {channel="omnilink:room:home:9:scene_d"}
Number	Downstairs_State	                  "Downstairs Lights [%s]"  (Lights_Downstairs)  {channel="omnilink:room:home:9:state"}
Dimmer	Lights_Downstairs_DwnStrHall_Switch	  "DwnStr Hall [%s]"	    (Lights_Downstairs)	 {channel="omnilink:upb:home:11:level"}
Dimmer	Lights_Downstairs_Foyer_Switch	      "Foyer [%s]"	            (Lights_Downstairs)	 {channel="omnilink:upb:home:12:level"}
Dimmer	Lights_Downstairs_FntRmOutlet_Switch  "FntRm Outlet [%s]"	    (Lights_Downstairs)	 {channel="omnilink:upb:home:13:level"}
Dimmer	Lights_Downstairs_Study_Switch	      "Study [%s]"	            (Lights_Downstairs)	 {channel="omnilink:upb:home:14:level"}

Group:Switch:OR(ON, OFF)	Lights_Kitchen	    "Kitchen [%s]"	          (Lights)
Switch	Kitchen_Switch	                      "Kitchen [%s]"	        (Lights_Kitchen)	 {channel="omnilink:room:home:17:switch"}
Switch  Kitchen_OnScene                       "Scene On"                (Lights_Kitchen)  {channel="omnilink:room:home:17:on"}
Switch  Kitchen_OffScene                      "Scene Off"               (Lights_Kitchen)  {channel="omnilink:room:home:17:off"}       
Switch  Kitchen_Scene_A                       "Scene A"                 (Lights_Kitchen)  {channel="omnilink:room:home:17:scene_a"}
Switch  Kitchen_Scene_B                       "Scene B"                 (Lights_Kitchen)  {channel="omnilink:room:home:17:scene_b"}
Switch  Kitchen_Scene_C                       "Scene c"                 (Lights_Kitchen)  {channel="omnilink:room:home:17:scene_c"}
Switch  Kitchen_Scene_D                       "Scene D"                 (Lights_Kitchen)  {channel="omnilink:room:home:17:scene_d"}
Number	Kitchen_State	                      "Kitchen Lights [%s]"     (Lights_Kitchen)  {channel="omnilink:room:home:17:state"}
Dimmer	Lights_Kitchen_Sink_Switch	          "Sink [%s]"	            (Lights_Kitchen)	 {channel="omnilink:upb:home:18:level"}
Dimmer	Lights_Kitchen_Overhead_Switch	      "Overhead [%s]"	        (Lights_Kitchen)	 {channel="omnilink:upb:home:19:level"}
Dimmer	Lights_Kitchen_Chandalier_Switch      "Chandalier [%s]"         (Lights_Kitchen)	 {channel="omnilink:upb:home:20:level"}
Dimmer	Lights_Kitchen_Cabinet1_Switch	      "Cabinet 1 [%s]"	        (Lights_Kitchen)	 {channel="omnilink:upb:home:21:level"}
Dimmer	Lights_Kitchen_Ceiling1_Switch	      "Ceiling 1 [%s]"	        (Lights_Kitchen)	 {channel="omnilink:upb:home:22:level"}
Dimmer	Lights_Kitchen_Cabinet2_Switch	      "Cabinet 2 [%s]"	        (Lights_Kitchen)	 {channel="omnilink:upb:home:23:level"}
Dimmer	Lights_Kitchen_Ceiling2_Switch	      "Ceiling 2 [%s]"	        (Lights_Kitchen)	 {channel="omnilink:upb:home:24:level"}

see http://docs.openhab.org/configuration/items.html#groups for more details.

My sitemap for my lights is very simple (including the two examples I sent you for scenes):

 Frame label="Lights"{
    		Group item=Lights
    		Switch item=FamilyRoom_State label="FAMILY ROOM" mappings=[0="OFF", 1="ON", 2="A",3="B",4="C",5="D"]
    		Selection item=FamilyRoom_State label="FAMILY ROOM" mappings=[0="OFF", 1="ON", 2="A",3="B",4="C",5="D"]
    	}

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.

https://github.com/QuailAutomation/openhab2-addons/tree/digitaldan-omnilink-binding-thing-types/addons/binding/org.openhab.binding.omnilink

1 Like