Tagged: 

This topic contains 4 replies, has 2 voices, and was last updated by  psmedley 2 weeks, 6 days ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1631

    Opengarageio
    Participant

    I have just installed openhab and my aim is now to get opengarage talking to it. Im trying to follow the guides but I havent got my head around it yet. Other people have mentioned here that they have got it working by using http binding or MQQT binding.

    So, Im after someone who can help walk me through the process of adding opengarage to a fresh install of openhab.

    #1633

    psmedley
    Participant

    Hi there, I have it working, will try put something together for you…. I’m using http binding (FYI)

    #1666

    Opengarageio
    Participant

    Going to offer $25AUD via paypal to anyone that can assist with instructions that help me get it working.

    #1667

    psmedley
    Participant

    I’ll try document what I’m using tonight… Sorry, I’ve had a busy few weeks!

    #1668

    psmedley
    Participant

    OK, here goes….

    items file:

    Group Garage
    Switch Garage_Opener "Garage Door Opener"
    Contact Garage_Door_Status "Garage Door [%s]" (Garage) { http="<[opengarage:10000:JS(opengarage-door.js)]" }
    Number Garage_Door_Distance "Garage Door Distance [%.0f cm]" (Garage) { http="<[opengarage:10000:JS(opengarage-dist.js)]" }

    OpenGarage.rules: note: IP will need to be edited to suit your OG

    rule "A Garage Opener was triggered"
    when
    	Item Garage_Opener received command
    then
    	if (Garage_Opener.state == ON) {
    		logInfo("OpenGarage", "Opening door, sendHttpPostRequest() returns: " + sendHttpPostRequest("http://192.168.1.19/cc?dkey=opendoor&open=1",5000))
    	}
            if (Garage_Opener.state == OFF) {
    		logInfo("OpenGarage", "Closing door, sendHttpPostRequest() returns: " + sendHttpPostRequest("http://192.168.1.19/cc?dkey=opendoor&close=1",5000))
    	}
    end

    services/http.conf:

    http:opengarage.url=http://192.168.1.19/jc
    http:opengarage.updateInterval=11000

    sitemap:

    		Switch item=Garage_Opener icon="garagedoorclosed" mappings=[ON=Open]  visibility=[Garage_Door_Status == CLOSED]
                    Switch item=Garage_Opener icon="garagedooropen"   mappings=[OFF=Close] visibility=[Garage_Door_Status == OPEN]
    		Text item=Garage_Door_Status icon="garage"
    		Text item=Garage_Door_Distance label="OG distance"
    

    Let me know how you go with this!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.