I have a script that rotates throught the house polling x10 switches to update their status, because they are often incorrect/out of date. However, this fills up my log with reams of status requests and responses. Is there a way to surpress this?
Thanks,
Jerry
______Here's an example of the log entries...
11/1/2002 4:29:56 PM~!~Send X10 from ext interface~!~G6 Status Request dim: 0 extra: 0
11/1/2002 4:29:58 PM~!~X10 Received~!~G6 (third floor guest bath 1) G Status Off
11/1/2002 4:30:06 PM~!~Send X10 from ext interface~!~G5 Status Request dim: 0 extra: 0
11/1/2002 4:30:08 PM~!~X10 Received~!~G5 (third floor guest room) G Status Off
_______Here's a snip of the code...
set device = hs.GetDevice(i) 'get pointer to device structure
devicecode = device.hc+device.dc 'get the device code
' If device is a 'switchlinc', then request it to send it status.
if device.dev_type_string = "SwitchLinc" then
dt = hs.devicetime(devicecode) 'store the devicetime - status request resets it.
hs.execx10 devicecode,"Status Request",0,0
hs.waitsecs 10 'reduce traffic on powerline
' Sometimes, this returns value "unknown". If so, give it two more tries.
' If status is unknown (17), then request it to send it status again.
if hs.devicestatus(devicecode) = 17 then
hs.execx10 devicecode,"Status Request",0,0
hs.waitsecs 10
end if
' One last try. If status is unknown (17), then request it to send it status again.
if hs.devicestatus(devicecode) = 17 then
hs.execx10 devicecode,"Status Request",0,0
hs.waitsecs 10
end if
if hs.devicestatus(devicecode) = 17 then
hs.writelog "**NOTICE**", "Device "+devicecode+" not responding to status request."
end if
hs.setdevicetime devicecode, dt 'reset the device time
end if
Thanks,
Jerry
______Here's an example of the log entries...
11/1/2002 4:29:56 PM~!~Send X10 from ext interface~!~G6 Status Request dim: 0 extra: 0
11/1/2002 4:29:58 PM~!~X10 Received~!~G6 (third floor guest bath 1) G Status Off
11/1/2002 4:30:06 PM~!~Send X10 from ext interface~!~G5 Status Request dim: 0 extra: 0
11/1/2002 4:30:08 PM~!~X10 Received~!~G5 (third floor guest room) G Status Off
_______Here's a snip of the code...
set device = hs.GetDevice(i) 'get pointer to device structure
devicecode = device.hc+device.dc 'get the device code
' If device is a 'switchlinc', then request it to send it status.
if device.dev_type_string = "SwitchLinc" then
dt = hs.devicetime(devicecode) 'store the devicetime - status request resets it.
hs.execx10 devicecode,"Status Request",0,0
hs.waitsecs 10 'reduce traffic on powerline
' Sometimes, this returns value "unknown". If so, give it two more tries.
' If status is unknown (17), then request it to send it status again.
if hs.devicestatus(devicecode) = 17 then
hs.execx10 devicecode,"Status Request",0,0
hs.waitsecs 10
end if
' One last try. If status is unknown (17), then request it to send it status again.
if hs.devicestatus(devicecode) = 17 then
hs.execx10 devicecode,"Status Request",0,0
hs.waitsecs 10
end if
if hs.devicestatus(devicecode) = 17 then
hs.writelog "**NOTICE**", "Device "+devicecode+" not responding to status request."
end if
hs.setdevicetime devicecode, dt 'reset the device time
end if
Comment