We have moved at community.getvera.com

Author Topic: Garage Door open Check  (Read 9883 times)

Offline DigitalC

  • Sr. Newbie
  • *
  • Posts: 48
  • Karma: +0/-0
Garage Door open Check
« on: February 13, 2014, 02:27:34 pm »
Hi all, my apologies upfront if this is an old topic.  I am new to home automation and am still confused about Vera usage.  I just installed a garage door controller (LFM-20) and door/window sensor.  Both appear to be working fine. Now I would like to add a schedule to check to see if the garage door is open after 8PM and have it send me a notification - can some one please point me in the right direction? Please keep it in layman's terms as my head is already spinning  :-[

Offline RichardTSchaefer

  • Community Beta
  • Master Member
  • ******
  • Posts: 10091
  • Karma: +764/-143
Re: Garage Door open Check
« Reply #1 on: February 13, 2014, 03:44:28 pm »
I hope you have found the Garage door plugin to actually watch the Garage Door Sensor and Pulse the relay.

I am afraid your request is more than a trivial request.

I recommend the PLEG plugin.
There is a nice getting started guide.

You will need an input timer for it called "NightCheck"
It wii fire every day at 8:00 pm

And an input triigger called "DoorOpen" that is bound to the garage door sensor or the Garage Door Plugin, if you use it.

Then create a condition called "Announce" with the following Condition expression:

DoorOpen AND NightCheck

Then for the PLEG device go to the notifications tab and create a notification for when the condition
"Announce" is satisfied.

guest13871

  • Guest
Re: Garage Door open Check
« Reply #2 on: February 13, 2014, 04:40:14 pm »
... Now I would like to add a schedule to check to see if the garage door is open after 8PM and have it send me a notification - can some one please point me in the right direction? Please keep it in layman's terms as my head is already spinning  :-[

I do exactly what you are asking for but I use Vera Alerts.  This is beyond a simple beginner step though.  It involves a Lua script inside a scene, and you need to have Vera Alerts installed.  The way this works is at the prescribed time a scene kicks off which turns off my outside lights, basement lights, etc., locks the doors, and checks the status of the garage doors.  It then sends a message to my Android smart phone via Vera Alerts to tell me if the garage doors are open or closed.

If you want to attempt this let me know and I'll give you the gory details.

Offline DigitalC

  • Sr. Newbie
  • *
  • Posts: 48
  • Karma: +0/-0
Re: Garage Door open Check
« Reply #3 on: February 13, 2014, 04:54:19 pm »
I hope you have found the Garage door plugin to actually watch the Garage Door Sensor and Pulse the relay.

Thank you for responding. I did install the Garage Door plugin but could figure out what it does.  I did manage to get the relay and door sensor to work and to notify me when the door is opened and closed. Not sure I understood all else you mentioned  ???

Offline DigitalC

  • Sr. Newbie
  • *
  • Posts: 48
  • Karma: +0/-0
Re: Garage Door open Check
« Reply #4 on: February 13, 2014, 04:58:15 pm »
... Now I would like to add a schedule to check to see if the garage door is open after 8PM and have it send me a notification - can some one please point me in the right direction? Please keep it in layman's terms as my head is already spinning  :-[

I do exactly what you are asking for but I use Vera Alerts.  This is beyond a simple beginner step though.  It involves a Lua script inside a scene, and you need to have Vera Alerts installed.  The way this works is at the prescribed time a scene kicks off which turns off my outside lights, basement lights, etc., locks the doors, and checks the status of the garage doors.  It then sends a message to my Android smart phone via Vera Alerts to tell me if the garage doors are open or closed.

If you want to attempt this let me know and I'll give you the gory details.

Thank you for responding.  I did install Vera Alert as I wanted to see if I could get it to send me a voice message like "Garage Door Opened" but have not been able to get it to work.  Most definately I would love to get any tutoring you can provide  ;D

Offline BulldogLowell

  • Hero Member
  • *****
  • Posts: 1576
  • Karma: +191/-85
Re: Garage Door open Check
« Reply #5 on: February 13, 2014, 05:47:17 pm »
I hope you have found the Garage door plugin to actually watch the Garage Door Sensor and Pulse the relay.

Thank you for responding. I did install the Garage Door plugin but could figure out what it does.  I did manage to get the relay and door sensor to work and to notify me when the door is opened and closed. Not sure I understood all else you mentioned  ???

DigitalC,

Richard is telling you that the Garage Door app actually has built in logic to test the open/closed status of the door.  I recommend that you take another look and consider using that to open and close your door.  If you install it, you don't have to look at the sensor to know if it is open/closed.  It appears as a lock.  Locked = Closed; Unlocked = Open.

great app


Offline RichardTSchaefer

  • Community Beta
  • Master Member
  • ******
  • Posts: 10091
  • Karma: +764/-143
Re: Garage Door open Check
« Reply #6 on: February 13, 2014, 05:51:58 pm »
To use the Garage Door Plugin:
1) Goto Your Door Sensor.
    Click the wrench icon.
    Click the Advanced Tab.
    In the Upper Left corner it will say device#XXX  where XXX is a number.
    This number is the DoorSensorDevNum used in step 3
2) Goto your LFM-20 Device
   Click the wrench Icon
   Click the Advanced Tab.
   In the upper Left corner it will say device#YYY where YYY is a number.
   This nunber is the DoorSwitchDevNumber  used in step 3
3) Goto the Garage Door Plugin
  Click the Wrench Icon.
  Click the Advanced Tab.
  Set the DoorSensorDevNum to the value of XXX from step 1
  Set the DoorSwitchDevNumber to the valye of YYY from step 2


To get the PLEG beginners guide see:
http://forum.micasaverde.com/index.php/topic,21603.0.html
You need to download and install both of the following:
http://apps.mios.com/plugin.php?id=3066
http://apps.mios.com/plugin.php?id=3086

For Vera Alerts ... Did you install the Android App Yet ?
Did you Register it ?
What is your Vera Alerts ID ?
It sounds like you already have a Vera Alerts Vera Plugin installed.
Have you created a Vera Mobile Profile yet ?
You will need the Vera Alerts ID from the Cell phone for that.
If that's done ... Post the Report from the Vera Alerts Plugin.
I will be able to advise your further once I see that.

It's a lot to take in ... but I am sure you will like all the plugins I written to make things easier for you.



« Last Edit: February 13, 2014, 05:54:24 pm by RichardTSchaefer »

guest13871

  • Guest
Re: Garage Door open Check
« Reply #7 on: February 13, 2014, 06:53:09 pm »
Thank you for responding.  I did install Vera Alert as I wanted to see if I could get it to send me a voice message like "Garage Door Opened" but have not been able to get it to work.  Most definitely I would love to get any tutoring you can provide  ;D

Ok, you start by creating a scene that does whatever you want as far as turning lights off, locking doors, or doing nothing at all.  Set the Schedule to go off at the days/times you want, and then in the Luup section here is the code that checks my two garage doors and then sends me the message whether each is open or closed:

local DdoorStatus
local SdoorStatus

-- Check S's Door (device xx)
SdoorStatus = luup.variable_get("urn:micasaverde-com:serviceId:SecuritySensor1","Tripped",xx)

if (tonumber(SdoorStatus) == 1) then
  luup.call_action("urn:richardgreen:serviceId:VeraAlert1", "SendAlert",
                  {Message = "S's garage door is OPEN{tone:1}", Recipients = "your Vera Alerts ID"}, 80)
else
  luup.call_action("urn:richardgreen:serviceId:VeraAlert1", "SendAlert",
                  {Message = "S's garage door is Closed{tone:1}", Recipients = "your Vera Alerts ID"}, 80)
end

-- Check D's Door (device yy)
DdoorStatus = luup.variable_get("urn:micasaverde-com:serviceId:SecuritySensor1","Tripped",31)

if (tonumber(DdoorStatus) == 1) then
  luup.call_action("urn:richardgreen:serviceId:VeraAlert1", "SendAlert",
                  {Message = "D's garage door is OPEN{tone:1}", Recipients = "your Vera Alerts ID"}, 80)
else
  luup.call_action("urn:richardgreen:serviceId:VeraAlert1", "SendAlert",
                  {Message = "D's garage door is Closed{tone:1}", Recipients = "your Vera Alerts ID"}, 80)
end


Obviously you have to change xx and yy to the device IDs of your garage door(s), and "your Vera Alerts ID" to the 12 character ID code that you got from Vera Alerts.  If you only have one garage door then just eliminate half the code.

Let me know if this helps.

Offline RichardTSchaefer

  • Community Beta
  • Master Member
  • ******
  • Posts: 10091
  • Karma: +764/-143
Re: Garage Door open Check
« Reply #8 on: February 13, 2014, 08:46:21 pm »
Actually, you should use the Profile, or UserName (You can find the list of these on the Sent Alert Tab of the Vera Alert Plugin) in place of the "your Vera Alerts ID".

The "your Vera Alerts ID" is supported for backwards compatibility. The others are more flexible and work with any/multiple Vera Alerts targets.

There is a LOT to understand in this example if you do not already have some understanding of LUA code and MCV Extensions.


Offline DigitalC

  • Sr. Newbie
  • *
  • Posts: 48
  • Karma: +0/-0
Re: Garage Door open Check
« Reply #9 on: February 14, 2014, 09:50:53 am »


It's a lot to take in ... but I am sure you will like all the plugins I written to make things easier for you.

Thank you, I will give this a try.  I am learning and truly appreciate your help and all your excellent plugins.

Offline DigitalC

  • Sr. Newbie
  • *
  • Posts: 48
  • Karma: +0/-0
Re: Garage Door open Check
« Reply #10 on: February 14, 2014, 09:53:41 am »


Ok, you start by creating a scene that does whatever you want as far as turning lights off, locking doors, or doing nothing at all.  Set the Schedule to go off at the days/times you want, and then in the Luup section here is the code that checks my two garage doors and then sends me the message whether each is open or closed:
Let me know if this helps.
[/quote]

Thank you - this hurts my head but I need to learn it.  Appreciate your help.

Offline RichardTSchaefer

  • Community Beta
  • Master Member
  • ******
  • Posts: 10091
  • Karma: +764/-143
Re: Garage Door open Check
« Reply #11 on: February 14, 2014, 10:48:19 am »
There are actually two different approaches being presented ... in this thread!

One (by @ufd108)  use a Scene and some attached LUA code.
The other by me uses the PLEG plugin.

Both require setting up a schedule ...
One is done by editing the Scene ... adding the appropriate schedule .... and applying a modified version of the presented LUA code.

The other is done by editing the PLEG Input Schedule (In my example I named it NightCheck) . And setting up triggers, conditions and actions.
PLEG was developed to get past the requirement to use LUA code for anything other than the most trivial scene automation.
In PLEG a Graphical User Interface (GUI) allow you to associate the value of a Sensor to variable (DoorOpen). This is equivalent functionality to the luup.get_variable call in the LUA code. Using the GUI to do menu selections gets the right arguments as opposed to having to know the strange looking arguments to the luup.get_variable call.

You use the condition I provided to tie the Schedule to and the status together to trigger the action. The condition was named: Announce with a value of:
    DoorOpen AND NightCheck

You use standard Vera Notification to get your alert. This is equivalent functionality to the luup.call_action calls in the LUA code. Also standard Vera Menu's as opposed to strange/vague arguments/syntax  to the luup.call_action.



 
« Last Edit: February 14, 2014, 10:50:30 am by RichardTSchaefer »

Offline DigitalC

  • Sr. Newbie
  • *
  • Posts: 48
  • Karma: +0/-0
Re: Garage Door open Check
« Reply #12 on: February 14, 2014, 12:31:03 pm »

It's a lot to take in ... but I am sure you will like all the plugins I written to make things easier for you.

Richard, I installed the Garage Door plugin and it is fully functional. Now I am working on the PLEG plugin and trying to get smart on it. I am working on one issue at a time so the Vera Alert will have to wait for now.  I do have one more question regarding the Garage Door plugin - I have two separate garages and will be installing the z-wave components to the second garage.  Do I  just add another copy of the plug in and configure it like I did the first (naturally the device #'s would be different)?

Offline RichardTSchaefer

  • Community Beta
  • Master Member
  • ******
  • Posts: 10091
  • Karma: +764/-143
Re: Garage Door open Check
« Reply #13 on: February 14, 2014, 12:40:20 pm »
Yep ... to create a new instance of the Garage Door Plugin ... Goto APPS  on the top of the Vera Control Panel.
Then goto My Apps. Look for the Garage Door plugin. Click on the link next to the name.  Then click Create Another.
Fill out the details ... and you are good to go.

I put the sensor and the control switch devices into a separate room ... that I have named virtual control.  I do not normally interact with the devices in that room.
They are strictly supporting devices.   Then my garage door plugin Locks are in the room called Garage.
 
Then when you use 3rd party apps, those devices will not be in the way.


Offline DigitalC

  • Sr. Newbie
  • *
  • Posts: 48
  • Karma: +0/-0
Re: Garage Door open Check
« Reply #14 on: February 15, 2014, 11:39:13 am »
Yep ... to create a new instance of the Garage Door Plugin ... Goto APPS  on the top of the Vera Control Panel.
Then goto My Apps. Look for the Garage Door plugin. Click on the link next to the name.  Then click Create Another.
Fill out the details ... and you are good to go.

I put the sensor and the control switch devices into a separate room ... that I have named virtual control.  I do not normally interact with the devices in that room.
They are strictly supporting devices.   Then my garage door plugin Locks are in the room called Garage.
 
Then when you use 3rd party apps, those devices will not be in the way.

Richard, I have installed the garage door plugin and vera alerts and are both working fine (thank you for your help).  I have also installed both PLEG and PLC and have attempted to set up a notification of the door is left open.  Unfortunately after several test attempts, I can not get it to work. Not sure what I am doing wrong.  If I am not imposing too much, can I get you to take a look at my setup (attached) and steer me in the right direction? Thanks  ???