MIMOLite + garage door sensor

good day,

I’ve purchased and installed the mimolite and it’s garage door sensor.
Installing it and configure it in me veraplus worked like a charm.
I did follow the instructions from that site : http://homeautomation.lavoieholdings.com/mimolite-garage-door-plugin

I was so confident that I decided to create the scene that check if the door is opened at a specific time and if so, close it also from that page :

– Close door #1, if it’s open
local lul_temp = luup.variable_get(“urn:micasaverde-com:serviceId:SecuritySensor1”,“Tripped”, 43) or “0”
if (lul_temp == “1”) then
luup.log(“Garage door #1 open, trying to close now…”)
luup.call_action(“urn:upnp-org:serviceId:SwitchPower1”,“SetTarget”,{ newTargetValue=“1” }, 43)
else
luup.log(“Garage door #1 already closed, nothing to do here.”)
end

It worked all the time while testing the scene manually (I’ve tested multiple scenario where I open the door from the vera or from the door remote itself) So I tough it was fine to go with a scheduled scene.

Now the problem is, sometimes, when the door is closed it opens when the scene run on schedule !!!

Any advice ?
Any extra validation I could do on that door sensor before triggering the door close command ?
Is there anyway to force the mimo to refresh its status and report it to the vera other than with :
local lul_temp = luup.variable_get(“urn:micasaverde-com:serviceId:SecuritySensor1”,“Tripped”, 43) or “0”

Thanks :slight_smile:

I am not familiar with MIMOLite but I use the garage door plugin on the app store. It works really well and it utilizes two sensors, a binary sensor on the door and a switch that activates the door. You then point the device id at the two sensors and then you have single sensor that knows it is open so you don’t have to poll the status of an existing device. This may not work for your scenario but I thought I would mention it as it worked quite well for me. I built my garage door opener out of an arduino for around $5 and wrote a really simple procedure to toggle the switch. In hindsight I didn’t have to even worry about that because there is a pulse variable on the plugin so the OOB behavior is that the plugin controls opening and closing the switch which is nice. In my case I had to set the pulse value to 0 because my code handles that.

I use the Mimolite on 3 garage doors and a driveway gate. I use the garage door plugin on all of them.

Mimolite is the relay and the sensor Garage Door Plugin takes both those sensors and puts them into a single door lock. So you have icons of open/closed or lock/unlocked and you also have two buttons now instead of one. Unlock and lock. It also does all the logic for relay control. You can then have no issue with pressing lock button and the garage wont re open. The problem with have one unlock/lock button or having separate lock and unlock buttons.

To use this you would replace the defunked mimo garage door plugin and use the generic “garage door plugin” in its place. Set the device ID’s in the new plugin for both the relay and the sensor.