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

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
jkebinger
Posts: 15
Joined: 17 Mar 2013 02:58

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

Post 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?
User avatar
PoltoS
Posts: 7579
Joined: 26 Jan 2011 19:36

should be DoorLockLogging.Get

Post by PoltoS »

should be zway.devices[2].DoorLockLogging.Get(10)
jkebinger
Posts: 15
Joined: 17 Mar 2013 02:58

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

Post 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?

pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

.Get() commands always return

Post 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.
Since 29-12-2016 I am no longer a moderator for this forum
Post Reply