Author Topic: Picture when door is unlocked?  (Read 2911 times)

Offline fmulder21

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
Picture when door is unlocked?
« on: May 16, 2011, 10:42:11 am »
How can i set my Vera to email/mms me a picture when the door is open? I couldn't find the option aside from "archive picture when door is ..."

Thanks

Offline teonebello

  • Sr. Member
  • ****
  • Posts: 405
  • Karma: +0/-0
  • Macs, Home Automation, Bikers
Re: Picture when door is unlocked?
« Reply #1 on: May 23, 2011, 04:06:32 pm »
Also interested ti this topic.

Offline Henk

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 820
  • Karma: +3/-0
Re: Picture when door is unlocked?
« Reply #2 on: May 23, 2011, 04:15:25 pm »
With the standard notification for Vera this is not possible.
Vera only sends text or email notifications on events.

For more info see:
http://wiki.micasaverde.com/index.php/Set_up_of_Notifications

The only solution (if at all) would be to write LUA code that would take a snapshot of the camera, attach it to a mail and then use something like this:

Quote
  local SMTP_SERVER = "your.smtp.server"
  local SMTP_AUTH_USER = "your auth user"
  local SMTP_AUTH_PW = "your passws"       
  local SMTP_PORT = "25"
  local USER_SENDING = "sendingmailaddress@wherever.youare"
  local USER_RECEIVING = "yourreceiving@email.account"

To send the mail to your email account
Maybe someone like Ap15e could help out with the coding part (if, like i said, its possible at all)
| Vera2 @ UI4 1.1.1350 / 3.20 | Vera Lite @ UI5 | Vera 3 @ UI5 | 2x Merten  504519 | 1x Duewi  064374 | 1x Everspring SM103 doorbell mod |1 Y-cam IP cam | various LUUP plugins |

Offline achalhoub

  • Jr. Member
  • **
  • Posts: 83
  • Karma: +0/-0
Re: Picture when door is unlocked?
« Reply #3 on: August 03, 2011, 10:14:12 am »
Is this possible by Lua?

Offline Ap15e

  • Beta Testers
  • Hero Member
  • *****
  • Posts: 1998
  • Karma: +12/-0
Re: Picture when door is unlocked?
« Reply #4 on: August 03, 2011, 10:34:20 am »
Catch the door event with luup.variable_watch.
Install my plugin SND to send emails.
I have no idea how to get a picture from the camera via Luup. You could check whether pictures are available from MCV's Camera Management Server.

Edit:
Use luup.inet.wget to get a picture from the camera.
« Last Edit: August 03, 2011, 11:08:34 am by Ap15e »

Offline bmeyer29

  • Sr. Newbie
  • *
  • Posts: 29
  • Karma: +0/-0
Re: Picture when door is unlocked?
« Reply #5 on: August 28, 2011, 02:42:52 pm »
I went a low tech way, and for me it is working pretty well. YMMV

At this site the front door is down a narrow hallway, with little natural light nearby. The camera (linksys WVC80N) that monitors the front door has a "motion detection" mode that will send an email when the light level changes dramatically. When someone unlocks the front door, the z-wave Kwikset deadbolt sends a message to Vera2, which then turns on the overhead lights near the door. The change in light level in the hallway causes the camera to send an email with a sequence of pictures over several seconds, completely independent of Vera2 and mios servers. (The camera just knows the light level changed, it doesn't know why).

Additionally, I have Vera2 send a text message to my cellphone (directly through my ISP) when the deadbolt is unlocked, so I get notification of entry within a few seconds. I can then look at a real-time view from cameras at this site on my iPhone using an app called Total Control. The pictures in the email become "backup" documentation of who entered the site, not my primary window into who entered the site a few moments ago.

Hope this helps.