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
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.
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
-
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
You could try a configuration similar to this:
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
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
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
Re: Using a motion sensor when not at home
Thanks. So simple!!! I wasn't aware of the actions Enable/Disable.