PDA

View Full Version : 509(2) device manager broken ?



mhwlng
January 6th, 2007, 05:33 AM
I deleted all cfg files after updating from 507/508, to make sure....


every time I change something in my X10 device manager, I see



... Files\Promixis\Girder5\/plugins/treescript/init.lua:66: attempt to index local `control' (a nil value)
stack traceback:
...les\Promixis\Girder5\luascript\Classes/Publisher.lua:28: in function <...les\Promixis\Girder5\luascript\Classes/Publisher.lua:25>
... Files\Promixis\Girder5\/plugins/treescript/init.lua:66: in function `BuildStringsI'
...is\Girder5\/plugins/treescript/Device Manager UI.lua:1022: in function <...is\Girder5\/plugins/treescript/Device Manager UI.lua:1002>
...is\Girder5\/plugins/treescript/Device Manager UI.lua:1034: in function <...is\Girder5\/plugins/treescript/Device Manager UI.lua:1028>
...les\Promixis\Girder5\luascript\Classes/Publisher.lua:37: in function <...les\Promixis\Girder5\luascript\Classes/Publisher.lua:36>
[C]: in function `xpcall'
...les\Promixis\Girder5\luascript\Classes/Publisher.lua:40: in function <...les\Promixis\Girder5\luascript\Classes/Publisher.lua:32>
...les\Promixis\Girder5\luascript\Classes/Publisher.lua:151: in function `SendEvent'
...les\Promixis\Girder5\luascript\Classes/Publisher.lua:138: in function `Event'
...m Files\Promixis\Girder5\luascript\DeviceManager.lua :644: in function `Event'
...m Files\Promixis\Girder5\luascript\DeviceManager.lua :329: in function `ProcessDelayedAddList'
...m Files\Promixis\Girder5\luascript\DeviceManager.lua :312: in function `Handler'
...er5\luascript\Classes/DelayedExecutionDispatcher.lua:40: in function <...er5\luascript\Classes/DelayedExecutionDispatcher.lua:38>


I added a lamp and a motion detector:

device
living room lamp 7
uncheck 'save device condition'
power fail recover 'no change' or 'off' (tested both)

start girder
settings\device manager :
living room\lamp 7 : controls : switch off
office\motion 10 : controls : condition ready

I would have expected both to say 'unknown', because 'save device condition' is unchecked ???

I switch on the lamp via :

require 'DeviceManager.Devices'
require 'DeviceManager.Controls'
local ActionSource = 'Action'
Device = DeviceManager:GetDeviceUsingPath ('SERVER\\X10\\A7')
Control = Device:GetControl("Switch")
Control:SetValue ('On',ActionSource)
DeviceManager:NotifyAll(function(...) DeviceManager.ConnectionManager:HandleEvent(unpack (arg)) end)

the lamp goes on and I see in the log :
Time Date Source Details Payloads
12:27:38:111 1/6/2007 X10 living room lamp 7:ON

so no message from the device manager in the log and the device manager dialog box still says :

living room\lamp 7 controls switch off (same value as is sent to NR)

this worked fine on 507 ???

Marcel

Rob H
January 6th, 2007, 06:16 AM
I'll have to leave this one to Mike I'm afraid.

danward79
January 6th, 2007, 06:37 AM
I was seeing the same. It was a pain having to reconfig everything.

mhwlng
January 6th, 2007, 07:18 AM
Dan, what did you do to reconfig ?

I re-entered the device manager data and it still didn't work ?

Marcel

danward79
January 6th, 2007, 07:29 AM
I was reconfiguring X10 devices

mhwlng
January 6th, 2007, 07:34 AM
ok, so you didn't use the DM stuff (like I described above)

Marcel

danward79
January 6th, 2007, 07:37 AM
Ah sorry, I took the X10 Device Manager as the Device Manager. My Bad