123
Senior Member
File Submitter: 123
File Submitted: 30 Sep 2009
File Updated: 30 Sep 2009
File Category: Premise
Author: 123
Contact: PM me
Version: 1
Summary
DarkIndicator is a Home object that indicates if it is dark. It is useful only if two or more light sensors are employed.
DarkIndicator analyzes the state of multiple sensors and determines if it is dark. Sensors can be assigned to one of two Zones: Interior or Exterior. DarkIndicator can use one of four algorithms to determine if it is dark:
Unanimity
All sensors must report it is dark.
MajorityAllZones
50% or more of all sensors must report it is dark.
MajorityEachZone
50% or more of all sensors in each zone must report it is dark.
Uninominal
At least one sensor from each Zone must report it is dark.
Pre-installation
For DarkIndicator to provide value, you must have at least two light sensors. The ADICON driver supports BOBCAT light sensors and the X10 MS16A Motion Detector includes a dawn/dusk indicator.
Installation
Unzip the attached file and, using Builder, import the XDO file.
Usage
- In Builder's Shortcut bar, click Home.
- In the Explorer window, right-click Home and select DarkIndicator.
- Right-click the DarkIndicator object and select New > DarkSensor.
- Add at least two DarkSensors.
- Bind each DarkSensor to an appropriate Device object (light sensor).
A note about binding.
Each DarkSensor has a bindable property called "State", but it will not bind automatically! You must manually bind "State" to the Device object's appropriate property. For example, the appropriate property for a BOBCAT Light Sensor is called "State" but it is "PowerState" for an X10 Appliance. Whatever property you choose, it must be Boolean.
Here's how to manually bind a property:
- Use the traditional technique and drag a Device object from the Pallete and drop it onto a DarkSensor in the Explorer window.
- In the DarkSensor's properties, locate its Values property (under Device Connection) and click its Browse button (...).
- In the resulting dialog box, draw a line between the DarkSensor's "State" and the bound object's appropriate property (i.e. State, PowerState, etc).
- Click OK, or Apply, and the binding will be finalized.
Adjusting the darkness threshold.
This step depends upon the light sensor being employed. The Device driver for a BOBCAT Light Sensor includes a property called DarkThreshold. I don't believe the MS16A permits threshold adjustments.
Using DarkIndicator
- Right-click the DarkIndicator and select New > Script > PropertyChange.
- Choose the "IsDark" property.
- Proceed to write a script that does something useful whenever it becomes dark.
Click here to download this file