4 Button Key Fob

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
rabing
Posts: 31
Joined: 08 Mar 2013 03:00

4 Button Key Fob

Post by rabing »

Hi,

is there a way to assiciate an event (callback with bind) with the buttons on the
keyfob remote control? The keyfob is device 16. This is the output from "/var/log/z-way-server.log"
when I push one of the buttons:

[2013-04-22 12:19:02.944] SETDATA devices.16.data.lastReceived = 0 (0x00000000)
[2013-04-22 12:19:02.944] SETDATA devices.1.instances.0.commandClasses.32.data.level = 0 (0x00000000)
[2013-04-22 12:19:03.348] RECEIVED: ( 01 0D 00 04 00 10 07 60 0D 00 02 20 01 00 AF )
[2013-04-22 12:19:03.349] SENT ACK
[2013-04-22 12:19:03.349] SETDATA devices.16.data.lastReceived = 0 (0x00000000)
[2013-04-22 12:19:03.350] SETDATA devices.1.instances.2.commandClasses.32.data.level = 0 (0x00000000)
[2013-04-22 12:19:03.428] RECEIVED: ( 01 09 00 04 00 10 03 20 01 FF 3F )
[2013-04-22 12:19:03.428] SENT ACK
[2013-04-22 12:19:03.429] SETDATA devices.16.data.lastReceived = 0 (0x00000000)
[2013-04-22 12:19:03.429] SETDATA devices.1.instances.0.commandClasses.32.data.level = 255 (0x000000ff)
[2013-04-22 12:19:03.473] RECEIVED: ( 01 0D 00 04 00 10 07 60 0D 00 01 20 01 FF 53 )
[2013-04-22 12:19:03.476] SENT ACK
[2013-04-22 12:19:03.476] SETDATA devices.16.data.lastReceived = 0 (0x00000000)
[2013-04-22 12:19:03.476] SETDATA devices.1.instances.1.commandClasses.32.data.level = 255 (0x000000ff)
User avatar
PoltoS
Posts: 7579
Joined: 26 Jan 2011 19:36

Sure! The best way is to

Post by PoltoS »

Sure! The best way is to associate buttons with multichannel association to RaZberry (done automatically here to channels 1,2,3 and 4 in addition to main channel 0).Then dozway.devices[1].instances[N].Basic.data.level.bind(function() {})
rabing
Posts: 31
Joined: 08 Mar 2013 03:00

Works great!

Post by rabing »

Thank's, works great.
Post Reply