fibaro - the button

Discussions about existing Z-Wave device and their usage with Z-Way/Z-Cloud/Z-Box
Thealon
Posts: 17
Joined: 26 May 2015 15:20

fibaro - the button

Post by Thealon » 02 Nov 2016 18:49

Is it supported ?

User avatar
Z-Wave Support
Posts: 153
Joined: 21 Oct 2016 15:49

Re: fibaro - the button

Post by Z-Wave Support » 03 Nov 2016 16:22

Hello

the Fibaro Button will be supported in an future update.

Best regards
Z-Wave Support Team

Minux
Posts: 19
Joined: 26 Oct 2014 13:06

Re: fibaro - the button

Post by Minux » 18 Nov 2016 02:12

i have a fibaro button and even if it not supported. Simple click working fine.

oldgeek
Posts: 2
Joined: 18 Mar 2016 22:57

Re: fibaro - the button

Post by oldgeek » 30 Nov 2016 22:13

My Button is passing interview stage, but I do not have a ZDDX device info for it.
I can associate a Fibaro Relay with Group 2, but when I single-click button, I get this:

Code: Select all

[2016-11-30 22:12:57.147] [D] [zway] RECEIVED: ( 01 0F 00 04 00 09 09 60 0D 00 00 5B 03 05 00 01 C5 )
[2016-11-30 22:12:57.148] [D] [zway] SENT ACK
[2016-11-30 22:12:57.150] [D] [zway] SETDATA devices.9.data.lastReceived = 0 (0x00000000)
[2016-11-30 22:12:57.152] [W] [zway] Got unsecure packet from device 9, but Command Class 0x5b CentralScene is marked as secure and not present in unsecure NIF. Ignoring packet.
and relay isn't toggled(

fingerz
Posts: 17
Joined: 24 Jan 2016 13:48

Re: fibaro - the button

Post by fingerz » 24 Dec 2016 19:18

I got it working by changing parameter 3 to value "4" (1-byte) which disables security for Groups 2 & 3.

Isaksson
Posts: 133
Joined: 10 Apr 2013 09:43

Re: fibaro - the button

Post by Isaksson » 02 Feb 2017 22:01

Hello.
I have also bought a Fibaro - Button and I have included it and z-way recognize when i push the button.
This is what i get when I push the button.
1 time 10
2 times 13
3 times 14
4 times 15
5 times 16
Hold 12
Release 11

That is great, no problem to trigger different things based on how many times the button is pressed, but I have one issue and that is if I have clicked the button 1 time and then after a while 1 time again then it does not register that click, is it z-way that is ignoring this because it already has that as last status or is it the button that does not send it because its it last know state sent?

Log whn I have clicked the device 1 time and then 1 time again, the device is number 34

Code: Select all

[2017-02-02 18:58:28.686] [D] [zway] RECEIVED: ( 01 08 00 04 00 22 02 98 40 0B )
[2017-02-02 18:58:28.686] [D] [zway] SENT ACK
[2017-02-02 18:58:28.687] [D] [zway] SETDATA devices.34.data.lastReceived = 0 (0x00000000)
[2017-02-02 18:58:28.687] [I] [zway] Node 34:0 CC Security: sending Nonce Report
[2017-02-02 18:58:28.687] [I] [zway] Adding job: Nonce Report
[2017-02-02 18:58:28.687] [D] [zway] SENDING (cb 0xda): ( 01 11 00 13 22 0A 98 80 97 5B B3 59 4A 12 94 6F 05 DA 97 )
[2017-02-02 18:58:28.693] [D] [zway] RECEIVED ACK
[2017-02-02 18:58:28.702] [D] [zway] RECEIVED: ( 01 04 01 13 01 E8 )
[2017-02-02 18:58:28.702] [D] [zway] SENT ACK
[2017-02-02 18:58:28.703] [D] [zway] Delivered to Z-Wave stack
[2017-02-02 18:58:28.915] [D] [zway] RECEIVED: ( 01 07 00 13 DA 00 00 17 26 )
[2017-02-02 18:58:28.916] [D] [zway] SENT ACK
[2017-02-02 18:58:28.916] [I] [zway] Job 0x13 (Nonce Report): Delivered
[2017-02-02 18:58:28.916] [D] [zway] SendData Response with callback 0xda received: received by recipient
[2017-02-02 18:58:28.916] [D] [zway] SETDATA devices.34.data.lastSend = 45798305 (0x02bad3a1)
[2017-02-02 18:58:28.916] [D] [zway] Job 0x13 (Nonce Report): success
[2017-02-02 18:58:28.916] [I] [zway] Removing job: Nonce Report
[2017-02-02 18:58:29.079] [D] [zway] RECEIVED: ( 01 1F 00 04 00 22 19 98 81 F5 1F C5 00 73 12 14 D9 11 F0 BA B7 00 63 97 23 92 FC AA 59 46 1B 9B 25 )
[2017-02-02 18:58:29.080] [D] [zway] SENT ACK
[2017-02-02 18:58:29.080] [D] [zway] SETDATA devices.34.data.lastReceived = 0 (0x00000000)
[2017-02-02 18:58:29.080] [I] [zway] Node 34:0 CC Security: Received a secure message
[2017-02-02 18:58:29.080] [D] [zway] SETDATA devices.34.instances.0.commandClasses.152.data.firstPart = **********
[2017-02-02 18:58:29.080] [I] [zway] Node 34:0 CC Security: passing decrypted packet to application level: [ 5b 03 4f 80 01 ]
[2017-02-02 18:58:29.080] [D] [zway] SETDATA devices.34.instances.0.commandClasses.91.data.sequence = **********
[2017-02-02 18:58:29.080] [D] [zway] SETDATA devices.1.instances.0.commandClasses.91.data.srcNodeId = 34 (0x00000022)
[2017-02-02 18:58:29.081] [D] [zway] SETDATA devices.1.instances.0.commandClasses.91.data.srcInstanceId = 0 (0x00000000)
[2017-02-02 18:58:29.081] [D] [zway] SETDATA devices.1.instances.0.commandClasses.91.data.keyAttribute = 0 (0x00000000)
[2017-02-02 18:58:29.081] [D] [zway] SETDATA devices.1.instances.0.commandClasses.91.data.currentScene = 1 (0x00000001)
[2017-02-02 18:58:29.081] [D] [zway] SETDATA devices.34.instances.0.commandClasses.91.data.keyAttribute = 0 (0x00000000)
[2017-02-02 18:58:29.081] [D] [zway] SETDATA devices.34.instances.0.commandClasses.91.data.currentScene = 1 (0x00000001)
[2017-02-02 18:58:29.188] [I] [core] Notification: device-info (device-status): {"dev":"Fibaro - Button","l":"10"}
[2017-02-02 18:58:29.244] [I] [core] [BaseModule-11] Set lastLevel to 10 for ZWayVDev_zway_34-0-91-DS (was 13)
[2017-02-02 18:58:31.315] [D] [zway] RECEIVED: ( 01 10 00 04 00 1D 0A 32 02 21 34 00 00 00 0E 00 00 D7 )
[2017-02-02 18:58:31.316] [D] [zway] SENT ACK
[2017-02-02 18:58:31.316] [D] [zway] SETDATA devices.29.data.lastReceived = 0 (0x00000000)
[2017-02-02 18:58:31.316] [D] [zway] SETDATA devices.29.instances.0.commandClasses.50.data.2.val = 1.400000
[2017-02-02 18:58:31.316] [D] [zway] SETDATA devices.29.instances.0.commandClasses.50.data.2.delta = 0 (0x00000000)
[2017-02-02 18:58:31.317] [D] [zway] SETDATA devices.29.instances.0.commandClasses.50.data.2.ratetype = 1 (0x00000001)
[2017-02-02 18:58:31.317] [D] [zway] SETDATA devices.29.instances.0.commandClasses.50.data.2 = Empty
[2017-02-02 18:58:31.382] [I] [core] [BaseModule-11] Set lastLevel to 1.4 for ZWayVDev_zway_29-0-50-2 (was 1.1)
[2017-02-02 18:58:40.163] [D] [zway] RECEIVED: ( 01 14 00 04 00 02 0E 32 02 21 54 00 00 02 3E 01 2C 00 00 02 3D 88 )
[2017-02-02 18:58:40.164] [D] [zway] SENT ACK
[2017-02-02 18:58:40.164] [D] [zway] SETDATA devices.2.data.lastReceived = 0 (0x00000000)
[2017-02-02 18:58:40.164] [D] [zway] SETDATA devices.2.instances.0.commandClasses.50.data.2.val = 5.740000
[2017-02-02 18:58:40.164] [D] [zway] SETDATA devices.2.instances.0.commandClasses.50.data.2.delta = 299 (0x0000012b)
[2017-02-02 18:58:40.165] [D] [zway] SETDATA devices.2.instances.0.commandClasses.50.data.2.ratetype = 1 (0x00000001)
[2017-02-02 18:58:40.165] [D] [zway] SETDATA devices.2.instances.0.commandClasses.50.data.2.previous = 5.730000
[2017-02-02 18:58:40.165] [D] [zway] SETDATA devices.2.instances.0.commandClasses.50.data.2 = Empty
[2017-02-02 18:58:40.295] [I] [core] [BaseModule-11] Set lastLevel to 5.7399996 for ZWayVDev_zway_2-0-50-2 (was 5.73)
[2017-02-02 18:58:40.334] [D] [zway] RECEIVED: ( 01 10 00 04 00 1D 0A 32 02 21 34 00 00 00 01 00 00 D8 )
[2017-02-02 18:58:40.334] [D] [zway] SENT ACK
[2017-02-02 18:58:40.335] [D] [zway] SETDATA devices.29.data.lastReceived = 0 (0x00000000)
[2017-02-02 18:58:40.335] [D] [zway] SETDATA devices.29.instances.0.commandClasses.50.data.2.val = 0.100000
[2017-02-02 18:58:40.335] [D] [zway] SETDATA devices.29.instances.0.commandClasses.50.data.2.delta = 0 (0x00000000)
[2017-02-02 18:58:40.335] [D] [zway] SETDATA devices.29.instances.0.commandClasses.50.data.2.ratetype = 1 (0x00000001)
[2017-02-02 18:58:40.335] [D] [zway] SETDATA devices.29.instances.0.commandClasses.50.data.2 = Empty
[2017-02-02 18:58:40.387] [I] [core] [BaseModule-11] Set lastLevel to 0.1 for ZWayVDev_zway_29-0-50-2 (was 1.4)
[2017-02-02 18:58:43.106] [D] [zway] RECEIVED: ( 01 08 00 04 00 22 02 98 40 0B )
[2017-02-02 18:58:43.107] [D] [zway] SENT ACK
[2017-02-02 18:58:43.107] [D] [zway] SETDATA devices.34.data.lastReceived = 0 (0x00000000)
[2017-02-02 18:58:43.107] [I] [zway] Node 34:0 CC Security: sending Nonce Report
[2017-02-02 18:58:43.107] [I] [zway] Adding job: Nonce Report
[2017-02-02 18:58:43.107] [D] [zway] SENDING (cb 0xdb): ( 01 11 00 13 22 0A 98 80 A3 5F E2 FC EB 1B EF 3B 05 DB D5 )
[2017-02-02 18:58:43.112] [D] [zway] RECEIVED ACK
[2017-02-02 18:58:43.115] [D] [zway] RECEIVED: ( 01 04 01 13 01 E8 )
[2017-02-02 18:58:43.115] [D] [zway] SENT ACK
[2017-02-02 18:58:43.115] [D] [zway] Delivered to Z-Wave stack
[2017-02-02 18:58:43.375] [D] [zway] RECEIVED: ( 01 07 00 13 DB 00 00 1B 2B )
[2017-02-02 18:58:43.376] [D] [zway] SENT ACK
[2017-02-02 18:58:43.376] [I] [zway] Job 0x13 (Nonce Report): Delivered
[2017-02-02 18:58:43.376] [D] [zway] SendData Response with callback 0xdb received: received by recipient
[2017-02-02 18:58:43.376] [D] [zway] SETDATA devices.34.data.lastSend = 45799706 (0x02bad91a)
[2017-02-02 18:58:43.376] [D] [zway] Job 0x13 (Nonce Report): success
[2017-02-02 18:58:43.376] [I] [zway] Removing job: Nonce Report
[2017-02-02 18:58:43.543] [D] [zway] RECEIVED: ( 01 1F 00 04 00 22 19 98 81 D5 3E F3 FE 15 CD E3 C6 49 51 17 10 20 98 A3 F7 14 48 03 83 90 8E 36 DA )
[2017-02-02 18:58:43.543] [D] [zway] SENT ACK
[2017-02-02 18:58:43.544] [D] [zway] SETDATA devices.34.data.lastReceived = 0 (0x00000000)
[2017-02-02 18:58:43.544] [I] [zway] Node 34:0 CC Security: Received a secure message
[2017-02-02 18:58:43.544] [D] [zway] SETDATA devices.34.instances.0.commandClasses.152.data.firstPart = **********
[2017-02-02 18:58:43.544] [I] [zway] Node 34:0 CC Security: passing decrypted packet to application level: [ 5b 03 50 80 01 ]
[2017-02-02 18:58:43.544] [D] [zway] SETDATA devices.34.instances.0.commandClasses.91.data.sequence = **********
[2017-02-02 18:58:43.544] [D] [zway] SETDATA devices.1.instances.0.commandClasses.91.data.srcNodeId = 34 (0x00000022)
[2017-02-02 18:58:43.544] [D] [zway] SETDATA devices.1.instances.0.commandClasses.91.data.srcInstanceId = 0 (0x00000000)
[2017-02-02 18:58:43.544] [D] [zway] SETDATA devices.1.instances.0.commandClasses.91.data.keyAttribute = 0 (0x00000000)
[2017-02-02 18:58:43.544] [D] [zway] SETDATA devices.1.instances.0.commandClasses.91.data.currentScene = 1 (0x00000001)
[2017-02-02 18:58:43.545] [D] [zway] SETDATA devices.34.instances.0.commandClasses.91.data.keyAttribute = 0 (0x00000000)
[2017-02-02 18:58:43.545] [D] [zway] SETDATA devices.34.instances.0.commandClasses.91.data.currentScene = 1 (0x00000001)
[2017-02-02 18:58:44.342] [D] [zway] RECEIVED: ( 01 10 00 04 00 1D 0A 32 02 21 34 00 00 00 10 00 00 C9 )
[2017-02-02 18:58:44.342] [D] [zway] SENT ACK
[2017-02-02 18:58:44.345] [D] [zway] SETDATA devices.29.data.lastReceived = 0 (0x00000000)
[2017-02-02 18:58:44.346] [D] [zway] SETDATA devices.29.instances.0.commandClasses.50.data.2.val = 1.600000
[2017-02-02 18:58:44.346] [D] [zway] SETDATA devices.29.instances.0.commandClasses.50.data.2.delta = 0 (0x00000000)
[2017-02-02 18:58:44.346] [D] [zway] SETDATA devices.29.instances.0.commandClasses.50.data.2.ratetype = 1 (0x00000001)
[2017-02-02 18:58:44.346] [D] [zway] SETDATA devices.29.instances.0.commandClasses.50.data.2 = Empty
[2017-02-02 18:58:44.405] [I] [core] [BaseModule-11] Set lastLevel to 1.6 for ZWayVDev_zway_29-0-50-2 (was 0.1)
[2017-02-02 18:58:49.304] [D] [zway] Job 0x13: deleted from queue

jeey
Posts: 11
Joined: 06 Mar 2016 06:44

Re: fibaro - the button

Post by jeey » 03 Feb 2017 01:07

Has this been fixed in the latest 2.3.0?

Havent ordered the button yet, so curious.

Isaksson
Posts: 133
Joined: 10 Apr 2013 09:43

Re: fibaro - the button

Post by Isaksson » 03 Feb 2017 11:19

jeey wrote:Has this been fixed in the latest 2.3.0?

Havent ordered the button yet, so curious.
My post is based on latest version 2.3.0

Isaksson
Posts: 133
Joined: 10 Apr 2013 09:43

Re: fibaro - the button

Post by Isaksson » 08 Feb 2017 21:00

anyone?

yoast
Posts: 1
Joined: 26 Feb 2017 11:47

Re: fibaro - the button

Post by yoast » 26 Feb 2017 12:01

For what it's worth, I wanted to let you know how I managed to get the Fibaro Button "working" with ZWay. I'm replying to this really old thread because it comes up high in Google - I figure someone else has these issues as well... Also, I say "working", because no, it's not supported natively yet... :(

Isaksson's post put my on the right track, because in addition to the codes ZWay picks up, the Button also transmits a keyAttribute value when it's pressed, which indicates how many times it was pressed (or whether is was held/released). So I added the following code to the bottom of /opt/z-way-server/automation/main.js to bind to this and respond to button presses.

This fixes the repeat-presses problem Isaksson mentions, because the keyAttribute is always sent when the button is pressed.

You can make it the button events easier to find in your log (use tail -f /var/log/z-way-server.log to view it as you test) by keeping the debugPrint line.

Code: Select all

// Code to include Fibaro The Button without proper support :-)
zway.devices[19].instances[0].commandClasses[91].data.keyAttribute.bind(function() {
  // action: status
	// --------------
	// 1x: 0
	// 2x: 3
	// 3x: 4
	// 4x: 5
	// 5x: 6
	// hold: 1
	// release: 2
	
  var translationTable = [1,"hold","release",2,3,4,5]
 
  debugPrint("Yoast: Fibaro The Button - Caught " + this.value);
	
  // Do stuff here. For instance, my setup does this:
  var options = {};
  options.url = "http://ACTIONURL/button.php?presses=" + translationTable[this.value];
  options.method = "GET";
  options.async = true;
  options.complete = function() { debugPrint("Yoast: Async request completed: " + this.value) };
  var res = http.request(options);
}
Notes:
  • My Button's device id is 19 - change this to whatever id your Button is at.
  • I think "Trap events from Remotes and Sensors" needs to be on for this, but I haven't tested that. Anyway, it's on by default...
Hope this helps! But I look forward to the day when this is just included in ZWay by default.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests