Minimote

Can somebody post the item/sitemap/rules file for minimote in OH2 format. Search is only returning me OH1 results.

items

Number Minimote1 "Office Minimote" (gMinimote) {channel="zwave:device:abcdefg:node56:scene_number"}

rules

rule "Minimote1 ON/OFF Button 1 Short Press"
when
	Item Minimote1 changed
then
    if(Minimote1.state == 1)
    if(WeMoLamp.state == ON) {
            sendCommand(WeMoLamp,OFF)
            Minimote1.postUpdate(NULL)
      }
    else {
            sendCommand(WeMoLamp,ON)
            Minimote1.postUpdate(NULL)
    }
end


rule "Minimote1 ON/OFF Button 2, Short Press"
when
        Item Minimote1 changed
then
    if(Minimote1.state == 3)
    if(BigLamp.state == ON) {
            sendCommand(BigLamp,OFF)
              Minimote1.postUpdate(NULL)
      }
    else {
            sendCommand(BigLamp,ON)
            Minimote1.postUpdate(NULL)
    }
end


rule "Minimote1 ON/OFF Button 3 Short Press"
when
        Item Minimote1 changed
then
    if(Minimote1.state == 5)
    if(Lamp2.state == ON) {
            sendCommand(Lamp2,OFF)
            Minimote1.postUpdate(NULL)
      }
    else {
            sendCommand(Lamp2,ON)
            Minimote1.postUpdate(NULL)
    }
end



rule "Minimote1 ALL-ON Button 4 Short Press"
when
        Item Minimote1 changed
then
               if(Minimote1.state == 7)  {
               sendCommand(WeMoLamp,ON)
               sendCommand(BigLamp,ON)
               sendCommand(Lamp2,ON)
               Minimote1.postUpdate(NULL)
                      }
end

rule "Minimote1 ALL-OFF Button 4 Long Press"
when
        Item Minimote1 changed
then
               if(Minimote1.state == 8)  {
               sendCommand(WeMoLamp,OFF)
               sendCommand(BigLamp,OFF)
               sendCommand(Lamp2,OFF)
               Minimote1.postUpdate(NULL)
                      }
end

Here is what I use to control lights in the house.
I’m sure there is a better way to write the rules, but I’m not a programmer.