I've seen a few methods for scheduling however I haven't stumbled on a potential method for scheduling active/inactive zones. Bear with me lol I was just wondering if it would be possible to cron or create schedule that would activate or deactivate certain zones associated with a monitor. As an example I have the front of my house carved up in zones (Yard, Street, Tree, etc) I have 2 deactivated zones for trees that move a lot and 3 active zones I want to independently maintain for different reasons, mostly tuning the zones for proper movement etc.
One of my zones in the front is right in the light path for some decoration lights and it is on a timer. What I'd like to do is have this zone deactivate a few minutes before the lights turn on so I don't get false positives while the lights are on and moving, and then re-activate the zone when the lights shut off.
Is there any mechanism in place that can do this or are there any plans to build a scheduling mechanism into ZM? I know I can write one/a wrapper in either PHP or Perl and just issue MySQL commands to alter the state and have it kicked off by a cron job:
Code: Select all
UPDATE Zones SET Type='Inactive' WHERE Name LIKE '%Yard%';
...or whatever. I just figured if there's something already written or incorporated I'll use what's baked in rather than maintaining a side chink of code lol
Thoughts?