Page 1 of 1

Can't use LoggingGet function on lock - please post example

Posted: 29 Oct 2013 15:44
by jkebinger
I'm trying to test the LoggingGet functionality on a lock with the command

"runJS('zway.devices[2].LoggingGet(10)')" at the javascript console of the UI. That generates an internal server error. The log is below

[2013-10-29 08:40:16.786] result: Error: Uncaught TypeError: Property 'LoggingGet' of object # is not a function

How do i test this function? I would like to see what is returned. Can someone please post a small example of how I would call it from the console?

should be DoorLockLogging.Get

Posted: 29 Oct 2013 15:44
by PoltoS
should be zway.devices[2].DoorLockLogging.Get(10)

I can make the call now, but no data comes back

Posted: 29 Oct 2013 15:44
by jkebinger
So calling runCmd("devices[4].DoorLockLogging.Get(10)") calls the following URL

http://raspberrypi.local:8083/ZWaveAPI/ ... ng.Get(10)

but the response there is null. I see activity in the server log, but how do i get the data back as an API client?

.Get() commands always return

Posted: 29 Oct 2013 15:44
by pz1
.Get() commands always return null as a sign that the call was successful. Next to this call I would expect you need to read from the Z-Way data tree what is returned for this device.