Z-Wave Door and Window SensorThe door and window sensor senses if a door or window is open or closed. The sensor consists of two small packages. One is a battery powered Z-Wave radio and contains a magnetic switch. The other is a magnet. By mounting the radio on one surface and the magnet on another, the radio can tell if the two surfaces (a door and a doorway or two parts of a window) are next to each other (closed) or apart (open). Being battery powered devices, door and window sensors spend most of their time "sleeping". They sleep to conserve their batteries. When a device is sleeping, it will respond to open/close events, but it won't listen to any events on the network. Battery powered devices will occasionally "wake up", so they can give the network an update of their internal state (battery state, as an example) and to receive any messages from the network. The time between wake ups is programmable. Longer intervals prolong battery life, but make the device less responsive to the network. Some Door and Window Sensors have a set of electrical terminals available. The terminals allow hooking up external on/off type wired sensors. If you have a door or window sensor with wiring terminals, you can wire it to your Open/Close Sensor. The Sensor will monitor both its door/window as well as your wired sensor(s). See your product's documentation for more information on wiring to your sensor. Installing a Door and Window SensorThe Door and Window Sensor Device has three output status terminals. The "1S" terminal shows if a door/window is open ( Create the Door Window Sensor Device by running the SensorDoorWindow Script. The parameters for the SensorDoorWindow Script are: address :
wakeup_interval :
port_location :
ExampleTo add a Door and Window Sensor Device with ID "door_window", a wakeup interval of 12 hours, and a Z-Wave address of 3 to a system with one Z-Wave network, run the SensorDoorWindow Script with the following parameters:
|