I’m wanting to find a way to use an incoming email message as a trigger with Vera. I know that this is a possibly dangerous situation if the trigger is used to open my locks or disable my alarm system. Assuming I’m smart enough to not make my system vulnerable, does anyone have an idea of how to use an incoming email to trigger an event?
This is significant project even with the existence of POP and IMAP libraries for LUA. I am not sure of the quality, or ease of use of those libraries.
If you have a PC mail tool that allows some scripting/filtering of messages as it reads them … that would be the easiest … than you could filter the message. When your filter detects the appropriate message, it can send an http request to Vera to perform some action.
I wouldn’t need it to filter in order to find the appropriate email. I was thinking of setting up a specific email address that had no other purpose other then to trigger a scene, whenever it got any new mail. It would obviously be an email address I wouldn’t give out.
There are many ios & android apps that will send emails when a specific event happens. If I created an email address that was supplied to be used only when those events happened, It would mean I could use their notifications (regardless of what is written in the email) to activate a scene.
I’m just not sure how to have the event of an email being received on my mac, act as a trigger for vera.
That part is easy. Running a scene on Vera can be triggered with an HTTP call. Here’s one document: http://wiki.micasaverde.com/index.php/Desktop_Shortcut
This requires that your computer be on, of course, which may not be desirable.
Fetching email is somewhat Hard, because there are multiple protocols, and implementation of them isn’t always to spec. That’s probably a contributor to there being no plugin for fetching email on the MiOS store.
Maybe with a gmail account. We can run a script on Google Drive when a mail is received, the script just have to launch an http request to the vera through the fwd servers.
–
via Samsung Galaxy S avec Tapatalk
How about IFTTT (ifttt.com)? It should be able to receive an email and then send out an http request. Might take a bit of work in ifttt but shouldn’t be that difficult (not that I’ve ever done it) ![]()
Could you not set up a rule on your email client when you receive this (something specific in subject) do this (open your internet browser and go here, here being the http call to vera) A couple of issues is you need a computer on to run your email client and what frequency do you want the email client to check for new emails?
It would obviously be an email address I wouldn't give out.
;D You won’t have to … your email provider will likely sell it … ;D
Thanks to all of you. This is the kind of info I was looking for. I will begin some experiments and report back with the results.
magicvegas, did you test http request & ifttt?