Page 1 of 1

How to listen for events from devices (locks)

Posted: 19 Mar 2013 19:00
by jkebinger
I read the docs, but can't quite grasp how I'd go about listening for and processing events from my zwave lock. I see it has an association with the controller, so the controller should get the events... but now what? Are there any code examples or docs for that floating around?
I'd like to be able to log when the door is locked and unlocked.
thanks

DoorLockLogging Command Class

Posted: 19 Mar 2013 19:00
by PoltoS
DoorLockLogging Command Class is not implemented yet, but the simple DoorLock.data.mode should also show the update of the lock mode. Please check the manual to see how to use JS API.Do you see the update of lock status in the UI in Locks tab?

Re: How to listen for events from devices (locks)

Posted: 13 Jun 2014 13:35
by dario87
hi,
I'm new to the blog.
I recently installed z-way.
I add a device, using the expert interface, but I can not listen to the changes.
When the device changes state, z-way does not update the status.
How can I fix the problem?

thanks

Re: How to listen for events from devices (locks)

Posted: 14 Jun 2014 04:00
by PoltoS
Check log to see what comes from the device. With old locks it depends on manufacturer.

Re: How to listen for events from devices (locks)

Posted: 14 Jun 2014 11:28
by dario87
hi,
thanks for the reply.
I checked the log file and I saw that the state changes are logged.
There is a function that can check the status changes?
Or do I have read the log file?

thanks

Re: How to listen for events from devices (locks)

Posted: 14 Jun 2014 15:00
by PoltoS
You need to bind to those dataholders, that changes during log status change. Please check our manual

Re: How to listen for events from devices (locks)

Posted: 14 Jun 2014 15:09
by pz1
Good to hear. I hadn't noticed there was a new manual based on version 1.7

Re: How to listen for events from devices (locks)

Posted: 15 Jun 2014 13:27
by PoltoS
Me neither ;) We are still polishing it, so it might become better and better. But it already describes number of new features.