by stevenhanna6 on Tue Jan 12, 2010 8:00 pm
Just so you know when you have a new device, when you read records it will return nothing because it's a brand new device with no records.
An insteaon link is either a controller or a responder. Has to be either or,so that's the first thing to know. As their names sound one controls something and the other responds to something.
A link is made up a a few data items,
group:
device:
level:
ramp:
extra:
here are the possible values for these items
group: 0 to 255 (255 is a special group)
device: 00.00.00 to FF.FF.FF
level: 0 to 255 (0 being off, and 255 being on 100%)
ramp: 0 to 31 (0 being the slowest and 31 being instant)
extra: 0 to 255 (used for some devices, like keypadlinc)
In the lighting service you have the "read records" button which will read the links off the selected device. This is the first thing you must do before doing anything else if you are editing links. The "re-read" button will re-read the currectly selected link record. The reason why this button exists, is that sometimes you can get erroneous data from the electrical system cause by noise...ect. So it's a good idea to re-read a record if it doesn't look right. "Delete Record" deletes a link record from the device, it's a good idea to "read records" from scratch again when you delete a record.
"Setup link" will create a controller record on the current device and a responder record on the plm/plc. The reason you want to "setup link" is because if you dont, you wont see the device ever change when you control it physically. So when you go up to a light switch and turn it on the insteon system has no idea it exists, it's all by itself, this is why you need links, it's like letting a device become aware of other devices. You always need a controller and a responder. The controller says something like "hey I'm controlling device AA.BB.CC" but that device doesn't know about the controller so "AA.BB.CC" needs a responder link, then it will know about the controller. The responder link is also where you tell it what is going to happen when a controller tries to control it, the controller link just sends out a message saying "hey I'm controlling device AA.BB.CC" but when the responder link on "AA.BB.CC" gets that message it will check to see what it's suppose to do, point is the responder link controls what happens.
"Link 8" is for keypadlincs, since they are 8 buttons it will auto setup 8 controller records and 8 responder records to the PLM. What this does is allow the lighting service to respond to individual button presses on an 8 button keypad.
I'll give a common example with links.
Say you want to create a group that controls 3 lights, first do "setup link" on these 3 lights so that you have a controller record on each one, and this put 3 responder records on the plm database. This isn't needed for the groups, it's just something you would do to make sure the 3 lights always give their status if someone goes up to the light to turn it on or off. Ok, so on with making the group. You'll want to first add a new device, yes a new device, give it the name "scene 10" and the address "00.00.0A", what we are doing is creating a way to trigger the group 10 which is really 0A because we are dealing in hex with insteon addresses. So we need a responder record on each of the 3 lights, because the PLM will be the controller. So you will first "read records" to get the current records for that device, then you will
1.click "responder"
2. enter "10" for group (note I didn't use the hex value, didn't need to here only for device address)
3. device will be your PLM address, mine is "08.AA.07"
4. level we will put in "255", that means we want it to go full 100%
5. for ramp we will set "31", that means it goes on fast as possible, no ramping up
6. extra we will set to "1", it doesn't matter
7. record will be your total, so if you have a total of 1 records, it will be "1" (it's a zero based index system)
8. click write
now you do that for all 3 lights, and go back to the device you created with the address "00.00.0A" and hit fast on and fast off, that will control your new group.
Easy to do? no, pain in the ass, yes, can I write it a better way to make it 30 times easier, hell yah, do I have time to rewrite it right now, nope.