Premise KeypadLinc Support

Motorola Premise
John,

Opps!..... I hadn't had time to test that. I added the second timer almost as I was walking out the door a couple of weeks ago.

Code:
'Turns on the porch light for 1 minute
addTimer 60,"Scenes.Porch_Light_60s.Play=TRUE",1,this.Name

And didn't test it. I didn't realize that the name wouldn't adopt a unique CID. My wife hasn't used that portion of the code since I left so no one noticed it wasn't working. Thanks for catching a bug!

I went back and created a new group from scratch InsteonGroup_3 and as you instructed I added each SwitchLinc, and KPL switches into the group. It is working correctly now. Indicators on the KPL work, and the lights come on all together, not in sequence.

Now how do I clean up the PLC DB? I would like to remove Group_2?

Amazing module John, it's keeps on ticking like the big bad energizer bunny. Thanks.

Kaz
 
Thanks Kaz. This driver has been a bit of a "labor of love". There was (and continues to be) alot of trial and error. Smarthome's documentation could have been better.

It was actually 123 that found the bug in the script. I wish I had seen it first :D

One of these days, I will add better database management to the driver. Right now, it's a bit of a manual process, and it will require deleting all references to group 2, which means all devices that are in group 2. Here are the step-by-step instructions:

1. Shutdown the driver service
2. Open task manager and make sure that any process called SDM3.exe is stopped.
3. Go to the Start Menu and click All Programs:Smarthome:Device Manager:Smarthome Device Manager
4. You will see a "T" appear in the icon tray. Doubclik on it. You will see a window pop-up, this is the app that contols the PLC.
5. Make sure the window has focus and type DM. A text entry widget will appear on the bottom of the window.
6. Type removeid=xx.xx.xx where xx.xx.xx is the insteon device ID.
7. Repeat for each device in the group.
8. type exitdm and wait. After what seems like forever, the SDM will quit.

At this point the group is gone as well as each of the devices. You can now re-add to the correct group after you start the Insteon Minibroker Driver service.

There is some low-level database manipulation that you can do to clear just the group 2 references, but you need write some code that uses internal SDM methods. Unfortunately, one slip and your entire database could be hosed. Like I said, one of these days I'll get around to getting database manipulation into the driver.

-John
 
... didn't test it. I didn't realize that the name wouldn't adopt a unique CID. ... no one noticed it wasn't working. Thanks for catching a bug!

BTW, you can generate two unique timer names by calling one:
this.name
and the other:
this.name & this.objectID
 
Back
Top