I used this app in ST with great success. Since moving to Hubitat I tried the Virtual Garage Door App from Patrick McKinnon but it didn't work for me, probably because I don't have an acceleration sensor. I have a closed contact and activate the door with a Konnected relay output.
When I added the app code I got an error message, something about javascript I think. I'm not a programmer and since it seemed to relate to notifications, which I don't used, I just commented out the code!
Imagine my surprise when I found it actually worked!
If anyone is interested, here is the code that seemed to cause the problem:
here is a port of my latest version ... with notification intack.. havent fully tested as i am at my other location that i use it for. (lgk are my initials)
Great to see you here!
Yes, I did move over both the app and the driver (with Mark C's mods), and it works.
I'll try your new port and report back.
Thanks,
Quick question, I pasted the new code over the apps code I already had. Do I need to remove and then re-add the user app? It seems like it's just working!
this is not for std garage door control devices there are standard device types for that that work fine.
this is for using a relay/dry switch for the door contgrol and separate door or tilt switch to show status.
This links the two together to make it liooik like a standard all in one garage door device.
ok hold on.. when this was written for smartthings i had my own virtual garage door device type as they did not have one.. now they are called virtual garage door.. i think if you change it to that it may work. as i said i am not at the house to test..
Smartthings had no garage door control capability thus I was using door control (which hubitat has, but has no virtual door control device) so the solutions are
use and port the virtual garage door driver I wrote for smarthtings. which I have
or
try this better solution first.. I changed the device type to garagedoorcontrol and use the hubitat standard virtual garage door control device.
So try 2. first.. go get the new version of the app from the github and try it.. with the stock hubitat virtual garage door device.
I thought I had done that, but maybe not. I copied down the app code from Github and started again, using the Hubitat built-in "Virtual Garage Door Controller" . Voila! It's working now.
Not sure what this "transition time" parameter is in the virtual device, choices are 5, 30 or 90 seconds. I left it at the default 5 seconds.
that would be how long it takes for your door to completely open or close.. dont think it matters you can control in the smart app how long to wait to check that the door really did open or close .
it wasnt ported..
I just did it now.. In addition as I said there was no garage door control before in smartthings so I was using door control .
I added garage door control as well so now I think it will work with my change to the smartapp, but let me know..
alsp this also pauses for two seconds before saying open or closed.. you can change it.. but you should probably set it to how long it takes your door to do that.. It is in the runin() statements in the code if you want to change it.