mycontroller-org / mycontroller-v1-legacy

The Open Source Controller
http://www.MyController.org
Apache License 2.0
147 stars 90 forks source link

[Feature Request] Add Validity Period or Schedules for Rules #304

Open integralmedia opened 7 years ago

integralmedia commented 7 years ago

Request to add a Validity Period or a Scheduling Mechanism for Rules to be enabled or disabled based on that schedule.

May be useful to integrate with Issue #199

Currently, there is no simple way of enabling or disabling a Rule based on Dates/Times/Schedules. Certain functions could be triggered using Timers based on Cron expressions etc., however, you may not necessarily want an operation to trigger, you just want to check a Condition during a certain period.

Examples:

  1. Enable a Rule after Sunset and before Sunrise: Trigger a light to come on only when it is dark outside
  2. Enable a Rule between Hours of 5PM and 7AM Monday through Friday: Ability to arm a door during non-working hours.
  3. Disable/Enable a Rule on specific calendar dates: Send a notification or reminder of Daylight Savings
  4. Set an Expiration Date or Time for a Rule: If you go on vacation set an alarm if doors are tripped but let the rule expire on your anticipated return.
  5. Many More...

This functionality should be in addition to the current Condition evaluation being performed by the Rule.

dbaravalle commented 7 years ago

It will be a nice feature!