mhwlng
December 31st, 2006, 11:11 AM
Girder remembers the last state of x10 devices when stopping/starting.
this causes problems for motion detectors, because
*the motion detector is triggered (not ready)
*girder is stopped
* after 1 minute, the motion detector is no longer triggered and sends the 'ready' condition
* girder is started (thinking it is still 'not ready')
* I move around, the motion detector sends 'not ready'
* the girder device manager does nothing, because it thinks that the state hasn't changed...
I tried to 'reset' the x10 motion detectors (like the lamps) at girder startup
but this doesn't work :
require 'DeviceManager.Devices'
require 'DeviceManager.Controls'
local ActionSource = 'Action'
for _,Device in ipairs(DeviceManager:GetDevices ('','','Security\\Sensor','') ) do
for _, Control in ipairs(Device:GetControls()) do
if Control:GetName () == 'Condition' then
Control:SetValue ('Ready',ActionSource)
print (Control:GetValue());
end
end
end
DeviceManager:NotifyAll(function(...) DeviceManager.ConnectionManager:HandleEvent(unpack (arg)) end)
so I assume that the Condition is a read-only property ?
any ideas ?
Marcel
this causes problems for motion detectors, because
*the motion detector is triggered (not ready)
*girder is stopped
* after 1 minute, the motion detector is no longer triggered and sends the 'ready' condition
* girder is started (thinking it is still 'not ready')
* I move around, the motion detector sends 'not ready'
* the girder device manager does nothing, because it thinks that the state hasn't changed...
I tried to 'reset' the x10 motion detectors (like the lamps) at girder startup
but this doesn't work :
require 'DeviceManager.Devices'
require 'DeviceManager.Controls'
local ActionSource = 'Action'
for _,Device in ipairs(DeviceManager:GetDevices ('','','Security\\Sensor','') ) do
for _, Control in ipairs(Device:GetControls()) do
if Control:GetName () == 'Condition' then
Control:SetValue ('Ready',ActionSource)
print (Control:GetValue());
end
end
end
DeviceManager:NotifyAll(function(...) DeviceManager.ConnectionManager:HandleEvent(unpack (arg)) end)
so I assume that the Condition is a read-only property ?
any ideas ?
Marcel