Announcement

Collapse
No announcement yet.

Door sensor send email when open 5 minutes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • viroid
    replied
    OP,

    I posted an Example of how I handled this recently, I also included my event set to show how the simple "Door left open" series can be built upon.
    ...v

    Leave a comment:


  • alexbk66
    replied
    Originally posted by The Profit View Post
    I had no idea this plugin was available....going to take a look and see if it will work for me!
    https://www.youtube.com/watch?v=mmyrx8kXnWY

    Leave a comment:


  • The Profit
    replied
    Originally posted by alexbk66 View Post
    Here's an example of my "Active Zone" configuration - it's activated by multiple motion sensors, and deactivated by configurable timeout (depending on occupancy status).

    MattL0 - in your setup - if you want to have different timeouts for your lights depending on occupancy status - how many HS events do you need to create?

    Click image for larger version

Name:	Combined.png
Views:	44
Size:	65.5 KB
ID:	1302733
    I had no idea this plugin was available....going to take a look and see if it will work for me!


    Sent from my iPad using Tapatalk

    Leave a comment:


  • mrd10607@yahoo.com
    replied
    thanks everyone for the input. I am going to see what I can get up and running.

    Leave a comment:


  • MattL0
    replied
    I would say , it takes the number of events that it needs.

    That’s not a concern for me.
    I didn’t test your plugin deeply. But will , one day.

    Leave a comment:


  • alexbk66
    replied
    Here's an example of my "Active Zone" configuration - it's activated by multiple motion sensors, and deactivated by configurable timeout (depending on occupancy status).

    MattL0 - in your setup - if you want to have different timeouts for your lights depending on occupancy status - how many HS events do you need to create?

    Click image for larger version

Name:	Combined.png
Views:	44
Size:	65.5 KB
ID:	1302733

    Leave a comment:


  • MattL0
    replied
    Will have a thought on that thanks Alex!

    Leave a comment:


  • alexbk66
    replied
    Originally posted by MattL0 View Post
    I don't feel the need to buy a plugin for this when the event engine can do it.
    I don't like HS event system, that's why I created AKSmartDevice plugin. What I don't like using HS events - if you replace one device - you need to go through your events and find where your device is used and replace it. And if something isn't working - you need to troubleshoot all these events...

    In SmartDevice plugin all device settings (i.e. triggers, actions, countdown timers) are on the device config page for the device itself. And there's a log as well for this particular device only.

    In programming history HS events are similar to old days "Structured programming paradigm" - when external code controls your object state with lots ifs/else/then. And your object doesn't know what's happening to it and why.

    AKSmartDevice approach is similar to contemporary "Object Oriented paradigm" - when object behavior is encapsulated inside the object itself, so the object knows how to behave in different situations, and it can track its state changes.

    Originally posted by MattL0 View Post
    it is really easy to manager all the logic in one place VS, 70% of the logic on the event engine , 20 % on a plugin , 10 % on another plugin.
    I'm trying to move as much as possible functionality inside the plugin, to minimize use of HS events.

    Leave a comment:


  • MattL0
    replied
    Thanks . But i can do this with events.


    And I use some more complicated ( conditional) events for other things.

    ex: if MPc-be is set to play.
    Then, it will trigger other event action if conditions are true ( three time) : So, another event will close the lights in kitchen if nobody is in there since x time. another event for the bathroom, another for the hallway etc.



    I don't feel the need to buy a plugin for this when the event engine can do it. And more important, it is really easy to manager all the logic in one place VS, 70% of the logic on the event engine , 20 % on a plugin , 10 % on another plugin.
    Attached Files

    Leave a comment:


  • alexbk66
    replied
    MattL0 Using AKSmartDevice plugin you can simply set the lights countdown timer to 5 minutes, add motion sensors as triggers - then every motion detected will restart the countdown timer. And if there's no motion - after 5 minutes lights will switch off.

    https://youtu.be/mmyrx8kXnWY?t=149

    Leave a comment:


  • MattL0
    replied
    that's the logic i use. it has it's pro/cons

    Attached Files

    Leave a comment:


  • alexbk66
    replied
    Originally posted by cc4005 View Post
    On further thought the running timer may add as much processing load as evaluating the trigger for all I know.
    Evaluating a trigger even every second (as part of existing event system) is nothing, it takes a couple of cpu commands, just a few nanoseconds. On the other hand, creating another timer uses an extra thread which creates extra overhead.

    Leave a comment:


  • cc4005
    replied
    Originally posted by alexbk66 View Post
    No, I set "Can't re-run for 10 seconds" - so HS will set the timer internally for 10 seconds.
    Hmmm. Would seem the trigger is still evaluated every second but the event doesn't fire due to the 10 second limit--which is effectively just another condition. But based on Mike's comment above, it's likely an academic discussion.

    edit: On further thought the running timer may add as much processing load as evaluating the trigger for all I know.

    Leave a comment:


  • Uncle Michael
    replied
    Originally posted by cc4005 View Post
    I try to avoid events that put continuous processing load on the server. Your method is definitely simpler but would evaluate continuously (every second?) until the door is closed.
    I have seen no evidence that an event that does not run generates measurable overhead. The event engine appears to be very efficient in the way it handles conditions.

    Leave a comment:


  • alexbk66
    replied
    Originally posted by cc4005 View Post
    I try to avoid events that put continuous processing load on the server. Your method is definitely simpler but would evaluate continuously (every second?) until the door is closed.
    No, I set "Can't re-run for 10 seconds" - so HS will set the timer internally for 10 seconds.

    Leave a comment:

Working...
X