Insteon PLM Ruby Code 776
From LinuxMCE
Version | Status | Date Updated | Updated By |
---|---|---|---|
710 | Unknown | N/A | N/A |
810 | Unknown | N/A | N/A |
1004 | Unknown | N/A | N/A |
1204 | Unknown | N/A | N/A |
1404 | Unknown | N/A | N/A |
Usage Information |
#### Written by Dan Damron ### #776 Reset #First, Lets see if we actually 'get this command' log($yellow+ '*#*#*#*#*#*#*#*# GOT #776 Reset! *#*#*#*#*#*#*#*#*'+ $grey) myDevFrom = device_.devid_ myDevTo = -1001 myDevPriority = 1 myDevType = 2 #event myDevID = 65 # Device Detected #create command cmd = Command.new(myDevFrom, myDevTo, myDevPriority, myDevType, myDevID) #Add params... cmd.params_[28] = '' #IP Address cmd.params_[5] = '' #MAC Address cmd.params_[56] = "73" # environment - Lighting Device cmd.params_[49] = "38" # Light (dimmable) PK_DeviceTemplate #PK_FloorplanObjectType of 10 is Table Lamp, 9 is ceiling light #PK_FloorplanObjectType is devicedata #11 #0a.97.0b is test lamp #0b.71.ab is Office Light cmd.params_[55] = "11|10|12|0A.97.0B" # test lamp module PK_DeviceData cmd.params_[13] = "SwitchLinc V2" # text to display cmd.params_[51] = "0A.97.0B" # VendorModelID cmd.params_[52] = "11" # PK_CommMethod cmd.params_[53] = "2" #PK_PnpProtocol cmd.params_[54] = "0A.97.0B[54]" #PNP_Serial_Number cmd.params_[59] = "Insteon PLM" SendCommand(cmd) ##device # 2 #cmd = Command.new(myDevFrom, myDevTo, myDevPriority, myDevType, myDevID) ##Add params... #cmd.params_[56] = "73" # environment - Lighting Device #cmd.params_[49] = "38" # Light (dimmable) #cmd.params_[55] = "12\t11.22.33\n59\tConfiguration\n" # test lamp module #cmd.params_[13] = "TEST LampLinc V2" # text to display #cmd.params_[52] = "11" #cmd.params_[53] = "2" #cmd.params_[54] = "11.22.33" #cmd.params_[59] = "Insteon PLM" #SendCommand(cmd) #Now, Fire the Done Detecting event... cmd = Command.new(myDevFrom, myDevTo, myDevPriority, myDevType, 74) #Done detecting... cmd.params_[59] = "Insteon PLM" SendCommand(cmd)