RKT wrote:I noticed in the release notes that the DS10A door and window sensors are supported in the new release. I use that system in combination with standard X-10 modules and it would be great to integrate them in to Indigo. How do I make this happen?
First, you will need an RF receiver that can pickup the security commands from the DS10. The only one I know about is the
W800RF32.
Once you have the W800RF32 (and a USB to serial adapter), you'll need to use an attachment script to handle receiving the command from the DS10 (there is no UI in the app to handle security devices yet).
There is a sample script inside of your Documents/Indigo User Data/Scripts/Attachments (disabled)/ folder. Make a copy of that script in the non-disabled attachments folder. You'll want to add a line that looks something like this to trigger an Indigo Action Group (or execute whatever AppleScript you want):
if devID is 249 then
if eventType is sec_SensorNormal_min then
execute group "actionGroupNameToExecute"
else if eventType is sec_SensorAlert_min then
execute group "actionGroupNameToExecute2"
else if eventType is sec_SensorNormal_max then
execute group "actionGroupNameToExecute2"
else if eventType is sec_SensorAlert_max then
execute group "actionGroupNameToExecute2"
end if
end if
You will want to change the devID to match that specific security module. You should be able to get the current device ID by triggering the device and looking in the Indigo Event Log.
Note that you can remove a lot of what is inside the sample script -- all of the "if eventType ..." lines, and the "log ..." line towards the bottom can be safely removed -- they are just there as an example.
Be sure and relaunch Indigo or choose "Reload Attachments..." from the Script menu once you make the changes to the attachment script.
Hope this helps!
Regards,
Matt