Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Using a motion sensor when not at home

If you have a question or need help, this is the place to be.
Post Reply
alonmalka
Posts: 29
Joined: Wed Dec 04, 2013 10:07 am

Using a motion sensor when not at home

Post by alonmalka »

Hi everybody,

I am a new user in Eventghost but I am a fast learner.
I connected some wireless light switches to EG and can activate them acoording to scenes I created. Now I would like to set a motion sensor to send me an Email when movement is detected but only when I am not at home. The "not at home" mode will be activated through a wireless switch that sends an event to EG.
My question is how can I check to see if the event "not at home" was triggered and after that monitor the motion sensor and as soon as movement is detected Email is sent.

I saw an example on the forum:
http://www.eventghost.org/forum/viewtop ... f=2&t=4064

of 2 Rfid that when used, creates an "Away" scene if both people are away and "home scene" if one of them is home. In that project a counter was used but I think my situation is a little different because I would like to use the away only when one event was triggered and then monitor motion sensor.
I should add that I don't know much about python scripting and the ones I am using I copied from this forum.

Any help would be appreciated.

Thanks,
Alon
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Using a motion sensor when not at home

Post by krambriw »

You could try a configuration similar to this:
Image2.jpg
Image2.jpg (16.3 KiB) Viewed 1207 times
What will happen is that when you are leaving home, you operate the switch and it sends a signal that triggers the 'away' macro. After the delay of 45 seconds (that gives you enough time to close and lock the door), the macro for email activation will be enabled.

If movement is detected by your movement sensor, an email will be sent (in this simple sample, an email will be sent for every detection as long as you are away, so don't allow your dog running around while you are away)

When you arrive home, you operate the switch in opposite direction, the 'at home' macro will be triggered and the email macro disabled.

BR Walter
alonmalka
Posts: 29
Joined: Wed Dec 04, 2013 10:07 am

Re: Using a motion sensor when not at home

Post by alonmalka »

Thanks. So simple!!! I wasn't aware of the actions Enable/Disable.
Post Reply