Thom,
Thanks for pointing that out. I'd been looking at pretty much every other GSD template I could find, but missed that one. DOH! I'd been sending to -1000 as that's what most of the code templates do, including some others that do work for me. Now that you've pointed out that code sample, specifically this bit:
def setdeviceconfig(insteonid, configurestring)
@deviceid = $children[insteonid]
@cmdfrom = device_.devid_
@cmdto = 4 #general info plugin
@priority = 1
@type=1 #command
@cmdid = 246
Now that I get the messaging aspect a bit better, I'll be reworking that code snippit to look like this (when I get home).
def get_model()
log("get_model called")
@data = ""
@data = get_data("/tstat/model").to_s
@data = @data.split(":")
#@model = (@data[1]).to_s.gsub("}","").gsub! /"/, ''
@model = (@data[1]).to_s.gsub("}","")
log(@model)
cmd = Command.new(device_.devid_, 4, 1, 1, 246)
cmd.params_[2] = (device_.devid_).to_s
cmd.params_[52] = '233'
cmd.params_[5] = @model.to_s
SendCommand(cmd)
rescue => e
log("Error in get_model: " + e.message)
log(e.backtrace)
@model
end
Once I get it all working, I'll write up some more re-usable functions like ddamron did in his drivers. I've been studying his EZServe and PLM drivers, and using them as the basis for my ISY driver; I'm taking a break from the ISY driver to work on something simpler (like the thermostat) to figure out some of these more complicated LMCE details like modifying other LMCE controlled data, and the whole sqlcvs thing.
Thanks for getting me back on the right track! Much appreciated!
/Mike