Here is a Insteon_ExtDevSupport script for controlling the In-LineLinc w/ sense 2475S2 module when connected to a motion security light. One of the features of the module is that the sense can be turned on and off with a FastOn or FastOff command. There was no way to send these commands (since I don't have an ISY), so I wrote this script.
Either rename your original Insteon_ExtDevSupport.vb to Insteon_ExtDevSupport_EZ.vb and use my Insteon_ExtDevSupport.vb file to call all of your scripts, or add a line to call this script.
hs.RunEx("Insteon_ExtDevSupport_2475S2.vb", "RegisterDevices",parm)
First add your device to HomeSeer and use the Program Device for HomeSeer button. Then delete the device and edit the script with your device addresses, locations, and names. Restart HomeSeer to add the devices.
The script will add 3 devices for each motion light:
Device 1 shows the status of the light and along with the on and off button adds buttons for Always On and Always Off. This allows you to lock the light on for parties, etc, or disable it when the wind is high.
Device 2 is for Motion Sensed. It uses the group command sent by the device to tell that it was turned on from the motion detector and not from HS or another device. This can be used for a motion trigger.
Device 3 is for Motion Enabled. It shows whether the sense lead is active and the motion detector is enabled.
A poll event can be set up by editing the option in the script. There appears to be a bug in the firmware for the 2475S2. When a light status request is sent, it does not answer correctly, so that feature is disabled in the poll for now. The poll will only query the sense status and update the Motion Enabled device accordingly. This is most useful when HS is first started and is called by the script.
Either rename your original Insteon_ExtDevSupport.vb to Insteon_ExtDevSupport_EZ.vb and use my Insteon_ExtDevSupport.vb file to call all of your scripts, or add a line to call this script.
hs.RunEx("Insteon_ExtDevSupport_2475S2.vb", "RegisterDevices",parm)
First add your device to HomeSeer and use the Program Device for HomeSeer button. Then delete the device and edit the script with your device addresses, locations, and names. Restart HomeSeer to add the devices.
The script will add 3 devices for each motion light:
Device 1 shows the status of the light and along with the on and off button adds buttons for Always On and Always Off. This allows you to lock the light on for parties, etc, or disable it when the wind is high.
Device 2 is for Motion Sensed. It uses the group command sent by the device to tell that it was turned on from the motion detector and not from HS or another device. This can be used for a motion trigger.
Device 3 is for Motion Enabled. It shows whether the sense lead is active and the motion detector is enabled.
A poll event can be set up by editing the option in the script. There appears to be a bug in the firmware for the 2475S2. When a light status request is sent, it does not answer correctly, so that feature is disabled in the poll for now. The poll will only query the sense status and update the Motion Enabled device accordingly. This is most useful when HS is first started and is called by the script.
Comment