Base_Item.pm |
Use one of the derived objects: Door_Item, Motion_Item, Presence_Item, Photocell_Item, and Light_Restriction_Item.
You can use the function delay_off() (also can be called as delay()) to set how long it takes for the derived object's effects to expire (for Door_Item, Motion_Item, and Presence_Item). For Light_Item it sets how long until the light will turn off, unless the object that activated the light has its own value.
For example, if you have a Light_Object set with a delay_off(120), the light will turn off 2 minutes after the last event. But, if it contains a motion detector with a delay_off(60), then the light will be turned off 60 seconds after the last motion was detected.
The base object that Door_Item, Motion_Item, Presence_Item, Photocell_Item, and Light_Restriction_Item are derived from. These are all used to provide predictive lighting when used along with Occupancy_Monitor.pm
Generic_Item
NONE
Jason Sharpee jason@sharpee.com
Special Thanks to: Bruce Winter - MH
NONE
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Hey! The above document had some coding errors, which are explained below:
=cut found outside a pod block. Skipping to next block.
=cut found outside a pod block. Skipping to next block.
Base_Item.pm |