Forum Replies Created
-
AuthorPosts
-
psmedleyParticipantWell I tried replacing the distance sensor, now it always reads 0cm 🙁 I guess I damaged something removing the old sensor. I’ve ordered a replacement OG.
October 2, 2022 at 6:48 am in reply to: Firmware 1.2.0 pre-release, supports both Blynk and OTC #2496
psmedleyParticipantHi Ray,
I’ll try connecting it to openthings.io again. My recollection from testing the 2.0 firmware was that OTC API keeps working, but port 80 stops responding. Openhab just polls the web interface every minute to check the door status.
When I updated on Friday morning, I was periodically trying to refresh the webui on my laptop, and couldn’t get it to load at all…
Cheers,
Paul
October 1, 2022 at 10:40 am in reply to: Firmware 1.2.0 pre-release, supports both Blynk and OTC #2493
psmedleyParticipantHi Ray,
My OG has been stable for > 24 hours now running the latest firmware and NOT connecting to openthings.io
I’m querying the local IP every 60 seconds for openhab integration – but with openthings.io it stops responding after a while.
re: the flash memory – I’m assuming that if the flash succeeded all is well?
Cheers,
Paul
September 29, 2022 at 6:14 pm in reply to: Firmware 1.2.0 pre-release, supports both Blynk and OTC #2488
psmedleyParticipantHi Ray,
Installed this build this morning – not 100% sure what OG version it is – but I’ve had it for at least 5 years – perhaps longer. I don’t remember if it’s one I brought from our old house, or if I ordered a new one when we moved here.
With the previous 2.0.0 build I had issues where after a period of time, the OG became unresponsive on it’s local IP – seems I’m having that issue again.
Initially I connected it to the new openthings API – after an hour or so, I couldn’t access the web ui (which I use in conjunction with OpenHAD). I’ve now reset the unit to defaults, and have configured WITHOUT the openthings API to see if it changes anything.
Is there an easy way to tell which OG hardware revision I have?
Cheers,
Paul
psmedleyParticipantUpdated both of my units to this firmware and no obvious issues with it.
psmedleyParticipantHi Ray,
Last night I disabled the cloud connection, and the OG is still responding on the local IP some 14 hours later. Seems the cloud connection is somehow killing the local interface. I didn’t think of trying to reboot via the cloud interface, but I can try that if it helps.
psmedleyParticipantFollowing up – the OG is offline again. I currently have openhab polling the OG for status every minute… I can try and check logs to see when it stopped responding… off to reboot it now.
psmedleyParticipantHi Ray, installed the new firmware today and all seems well. After doing the configuration, I did find the OG had stopped responding and I had to power cycle it, but all seems good now and I’ll monitor stability.
I’ve confirmed I see the OG via the remote interface; and also that it still works with my OpenHab binding.
Looks useful – could open up you guys supporting Alexa/Homekit/Google Home as well?
Cheers,
Paul
psmedleyParticipantFWIW, the changes have been merged and will be in openhab 2.5.5 when it comes out
psmedleyParticipantFixed link to PR is https://github.com/openhab/openhab-addons/pull/7486
psmedleyParticipantHi All,
I added a ‘Contact’ and ‘RollerShutter’ item for help with google assistance and rules.
PR for the change is at https://github.com/openhab/openhab-addons/pull/7480
Testing jar is at http://smedley.id.au/tmp/org.openhab.binding.opengarage-2.5.5-SNAPSHOT.jar
Cheers,
Paul
psmedleyParticipantIt could definitely be possible – OG just switches a relay momentarily to open or close the door. If the door is already closed, and OG thinks the door is open, so automatically “closes” it (ie momentarily pushes the button) , the door will open….
psmedleyParticipantNote: Openhab 2.5 Milestone 3 is out and includes:
[opengarage] opengarage initial contribution by Paul Smedley (#5911) (detail / githubweb)
psmedleyParticipantFYI – code is now in the Openhab 2.5 repository, and should be included in Milestone 3 when it’s released. Meanwhile, a snapshot build can be downloaded from https://openhab.jfrog.io/openhab/online-repo-snapshot/2.5/org/openhab/addons/bundles/org.openhab.binding.opengarage/2.5.0-SNAPSHOT/org.openhab.binding.opengarage-2.5.0-SNAPSHOT.jar
psmedleyParticipantHi, something like this would definitely be possible. Are you thinking two separate channels/items, or one with the latest action (opened or closed)?
psmedleyParticipantHi again – can you try http://smedley.id.au/tmp/org.openhab.binding.opengarage-2.5.0-SNAPSHOT.jar
Pretty sure you’ll need to delete your Opengarage ‘thing’ and re-add it to show the new Item.
It will report:
“No vehicle detected”
“Vehicle detected”
“Vehicle Status Unknown”Depending on the value from the controller.
Cheers,
Paul.
psmedleyParticipantHi again,
See: https://community.openhab.org/t/new-binding-opengarage-controller/78750 for the openhab forums post.
I’ll try and add channels for vehicle detection over the weekend – I don’t use this as we have a 2-car garage with a single door, so I have the opengarage centrally mounted. I guess I could move it over above one of the cars for testing purposes.
For the temperature readings – this is only supported if there is an external temperature probe connected to the controller. Perhaps I’ll order one just for testing reasons.
Cheers,
Paul
psmedleyParticipantHi @sonyxperiageek,
Thanks for testing! Do you have any need for the vehicle detection or temperature sensor output from the Opengarage? I haven’t added these to the binding yet, but it should be pretty trivial to do so. I’m already reading the values from the json output, I just need to add more channels to the binding.
I also need to write some code to support auto-detection, but adding the IP isn’t too bad for now.
I also want to get the code included in the Openhab base code, to make installation easier.
Cheers,
Paul.
psmedleyParticipantIt hasn’t messed anything up here:)
Meanwhile, I’ll see if I can work out how to build the binding targetting openhab 2.4 to avoid having to install extra dependencies.
psmedleyParticipantHi,
Thanks for trying to test! Does the binding appear in the list of bindings in Openhab? There might be some missing dependencies 🙁 Can you check openhab.log and look for an entry around opengarage?
IIRC (from when I was trying to get this working) I had to install a newer version of gson (this is as the binding is built against the openhab 2.5 code).
From karaf:
bundle:install http://central.maven.org/maven2/com/google/code/gson/gson/2.8.5/gson-2.8.5.jarOr download the gson jar and drop it in the addons folder.
Hopefully that will get the binding to show up. Then it should be as easy as adding a Thing (manually specifying the IP) as Autodiscover doesn’t work yet
Cheers,
Paul
psmedleyParticipantHi All,
I’m currently working on a binding for the OpenGarage (https://opensprinkler.com/product/opengarage/) controller.
An initial build is at: http://smedley.id.au/tmp/org.openhab.binding.opengarage-2.5.0-SNAPSHOT.jar
Source is currently at https://github.com/psmedley/openhab2-addons/tree/opengarage
Feedback appreciated.
Cheers,
Paul
psmedleyParticipantFWIW – I think I’m going to try and create a proper openhab binding for the OpenGarage, no idea how long this will take me, but it shouldn’t be too hard 🙂
psmedleyParticipantOK, 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!
psmedleyParticipantI’ll try document what I’m using tonight… Sorry, I’ve had a busy few weeks!
psmedleyParticipantHi there, I have it working, will try put something together for you…. I’m using http binding (FYI)
-
AuthorPosts