Zwave.me KFOB 2

Discussions about existing Z-Wave device and their usage with Z-Way/Z-Cloud/Z-Box
pierre2302
Posts: 132
Joined: 15 Oct 2013 19:04

Re: Zwave.me KFOB

Post by pierre2302 »

Pz1 think that it is possible to make commands of state on openremote from the log above because different of dolpheen ??

Thank you
" Raspi 2 (RaZberry) / Raspi B (Razberry) " With OpenRemote Free 2.2.0_TTS-Email-Serial and Z-Way
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Zwave.me KFOB

Post by pz1 »

Sorry, I don't have this device, and I do not have experience with associations.

As KFOB is from ZwaveMe, those people should be able to tell you how to interface using http calls to zwave devices. At a later stage I can turn those into the more friendly OpenRemote calls.

For the moment I am to busy, and to irritated by the continually reoccuring crashes of my production system. That is my priority for now.
pierre2302
Posts: 132
Joined: 15 Oct 2013 19:04

Re: Zwave.me KFOB

Post by pierre2302 »

Yes pz1 you are right I also thought that I shall have had information of zwave.me knowing that it is they who the product!

I who thought that by setting zwave.me I was sure to have no problem it's the very opposite, but I would have had to suspect it because I had already bought a button ZME 05443 similar no return of unusable state with openremote.


These modules are limited to the association it's a pity, what is certain is that I no longer would buy this mark !


PZ1 thank you for your support and good luck with your system !!
" Raspi 2 (RaZberry) / Raspi B (Razberry) " With OpenRemote Free 2.2.0_TTS-Email-Serial and Z-Way
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Zwave.me KFOB

Post by pz1 »

@pierre2302
pz1 wrote:This is a shot in the dark. I did lookup the syntax for SceneActivation in the Developers Documentation page 92 item 8.20. I guess it can all be in one call.

So on your Pi, include in folder automation/modules/OpenRemoteHelpers/index.js the following code just before case "metrics":


Code: Select all

case "ActivateScene":
    zway.devices[1].instances[1].SceneActivation.Set(N,I);
    return 0; // just to return something
N stands for the Scene ID
I stands for the Duration

Call with http://IP:8083/OpenRemote/ActivateScene/12/255 for Dolpheen example.

Hope this works
Did you get this to work in the meantime. (It does not become clear to me from your following posts)
pierre2302
Posts: 132
Joined: 15 Oct 2013 19:04

Re: Zwave.me KFOB

Post by pierre2302 »

Code: Select all

case "ActivateScene":
    zway.devices[1].instances[1].SceneActivation.Set(N,I);
    return 0; // just to return something
I tried this command in OpenRemoteHelpers but it does not work !!!

In the log below we can see keyAttribute which appears instead of dimmingDuration.

Code: Select all

[2015-04-07 21:17:34.975] [D] [zway] SETDATA devices.8.data.lastReceived = 0 (0x00000000)
[2015-04-07 21:17:34.976] [I] [zway] Node 8:0 CC Security: sending Nonce Report
[2015-04-07 21:17:34.976] [I] [zway] Adding job: Nonce Report
[2015-04-07 21:17:34.976] [D] [zway] SENDING (cb 0x8e): ( 01 11 00 13 08 0A 98 80 18 1A F5 58 2A B6 E0 22 05 8E 9D )
[2015-04-07 21:17:34.985] [D] [zway] RECEIVED ACK
[2015-04-07 21:17:34.985] [D] [zway] RECEIVED: ( 01 04 01 13 01 E8 )
[2015-04-07 21:17:34.985] [D] [zway] SENT ACK
[2015-04-07 21:17:34.985] [D] [zway] Delivered to Z-Wave stack
[2015-04-07 21:17:35.003] [D] [zway] RECEIVED: ( 01 05 00 13 8E 00 67 )
[2015-04-07 21:17:35.004] [D] [zway] SENT ACK
[2015-04-07 21:17:35.004] [I] [zway] Job 0x13 (Nonce Report): Delivered
[2015-04-07 21:17:35.004] [D] [zway] SETDATA devices.8.data.lastPacketInfo.delivered = True
[2015-04-07 21:17:35.004] [D] [zway] SETDATA devices.8.data.lastPacketInfo.packetLength = 13 (0x0000000d)
[2015-04-07 21:17:35.004] [D] [zway] SETDATA devices.8.data.lastPacketInfo.deliveryTime = 19 (0x00000013)
[2015-04-07 21:17:35.004] [D] [zway] SETDATA devices.8.data.lastPacketInfo = **********
[2015-04-07 21:17:35.005] [D] [zway] SendData Response with callback 0x8e received: received by recipient
[2015-04-07 21:17:35.005] [D] [zway] SETDATA devices.8.data.lastSend = 137142 (0x000217b6)
[2015-04-07 21:17:35.005] [D] [zway] Job 0x13 (Nonce Report): success
[2015-04-07 21:17:35.005] [I] [zway] Removing job: Nonce Report
[2015-04-07 21:17:35.066] [D] [zway] RECEIVED: ( 01 1F 00 04 00 08 19 98 81 CF AD DE 1D F6 A4 EC E3 E4 A6 19 2C CE 2C 18 5C FB 3F 8F 53 1F BF 4B 32 )
[2015-04-07 21:17:35.066] [D] [zway] SENT ACK
[2015-04-07 21:17:35.067] [D] [zway] SETDATA devices.8.data.lastReceived = 0 (0x00000000)
[2015-04-07 21:17:35.067] [I] [zway] Node 8:0 CC Security: Received a secure message
[2015-04-07 21:17:35.067] [D] [zway] SETDATA devices.8.instances.0.commandClasses.152.data.firstPart = **********
[2015-04-07 21:17:35.067] [I] [zway] Node 8:0 CC Security: passing decrypted packet to application level: [ 5b 03 40 00 04 ]
[2015-04-07 21:17:35.067] [D] [zway] SETDATA devices.8.instances.0.commandClasses.91.data.sequence = **********
[2015-04-07 21:17:35.067] [D] [zway] SETDATA devices.1.instances.0.commandClasses.91.data.srcNodeId = 8 (0x00000008)
[2015-04-07 21:17:35.067] [D] [zway] SETDATA devices.1.instances.0.commandClasses.91.data.srcInstanceId = 0 (0x00000000)
[2015-04-07 21:17:35.067] [D] [zway] SETDATA devices.1.instances.0.commandClasses.91.data.keyAttribute = 0 (0x00000000)
[2015-04-07 21:17:35.067] [D] [zway] SETDATA devices.1.instances.0.commandClasses.91.data.currentScene = 4 (0x00000004)
[2015-04-07 21:17:35.067] [D] [zway] SETDATA devices.8.instances.0.commandClasses.91.data.keyAttribute = 0 (0x00000000)
[2015-04-07 21:17:35.067] [D] [zway] SETDATA devices.8.instances.0.commandClasses.91.data.currentScene = 4 (0x00000004)
According to the developer documentation ’keyAttribute’: 0x00 = Key pressed, 0x01 = Key released, 0x02 = Key held down

currentScene takes the value of the button on which I press
" Raspi 2 (RaZberry) / Raspi B (Razberry) " With OpenRemote Free 2.2.0_TTS-Email-Serial and Z-Way
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Zwave.me KFOB

Post by pz1 »

Thanks for reporting. Without the device I can't do much as I said before. I have placed it on the problem devices list
pierre2302
Posts: 132
Joined: 15 Oct 2013 19:04

Re: Zwave.me KFOB

Post by pierre2302 »

That's it I finally manage to have the same thing as "@Dolpheen" in my logs see below. I did not realize that in addition to select parameter 11 "send scene", I also had to associate groups in Razberry.

Code: Select all

RECEIVED: ( 01 1E 00 04 00 03 18 98 81 53 C0 B9 3E 48 CC 82 ED 7A 63 40 FA C3 26 70 D1 75 06 FB 5D 84 B3 1D )
[2015-05-20 20:35:50.739] [D] [zway] SENT ACK
[2015-05-20 20:35:50.739] [D] [zway] SETDATA devices.3.data.lastReceived = 0 (0x00000000)
[2015-05-20 20:35:50.740] [I] [zway] Node 3:0 CC Security: Received a secure message
[2015-05-20 20:35:50.740] [D] [zway] SETDATA devices.3.instances.0.commandClasses.152.data.firstPart = **********
[2015-05-20 20:35:50.740] [I] [zway] Node 3:0 CC Security: passing decrypted packet to application level: [ 2b 01 0c ff ]
[2015-05-20 20:35:50.740] [D] [zway] SETDATA devices.1.instances.0.commandClasses.43.data.srcNodeId = 3 (0x00000003)
[2015-05-20 20:35:50.740] [D] [zway] SETDATA devices.1.instances.0.commandClasses.43.data.srcInstanceId = 0 (0x00000000)
[2015-05-20 20:35:50.740] [D] [zway] SETDATA devices.1.instances.0.commandClasses.43.data.currentScene = 12 (0x0000000c)
[2015-05-20 20:35:50.740] [D] [zway] SETDATA devices.1.instances.0.commandClasses.43.data.dimmingDuration = 255 (0x000000ff)
[2015-05-20 20:35:50.740] [D] [zway] SETDATA devices.3.instances.0.commandClasses.43.data.currentScene = 12 (0x0000000c)
[2015-05-20 20:35:50.740] [D] [zway] SETDATA devices.3.instances.0.commandClasses.43.data.dimmingDuration = 255 (0x000000ff)


I added in openremotehelpers. I replaced instances[1] by instances[0] as logs

Code: Select all

case "ActivateScene":
    zway.devices[1].instances[0].SceneActivation.Set(N,I);
    return 0; // just to return something

And then I ran the url http://IP:8083/OpenRemote/ActivateScene/12/255 but I get the error "Uncaught Error: Method not implemented"

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

The solution was to replace

Code: Select all

case "ActivateScene":
    zway.devices[1].instances[0].SceneActivation.Set(N,I);
    return 0; // just to return something
by

Code: Select all

case "ActivateScene":
    zway.devices[3].instances[0].SceneActivation.Set(N,I);
    return 0; // just to return something
( 3 corresponds to my remote control)

but I have all the time the value 0 which appears
Last edited by pierre2302 on 10 Jun 2015 04:18, edited 2 times in total.
" Raspi 2 (RaZberry) / Raspi B (Razberry) " With OpenRemote Free 2.2.0_TTS-Email-Serial and Z-Way
pierre2302
Posts: 132
Joined: 15 Oct 2013 19:04

Re: Zwave.me KFOB

Post by pierre2302 »

I asked the question by e-mail to Zwave.me, if there was a possibility of getting back the status of boutton here is the answer :

" thats probably a question to ask the open remote guys. We have zero knowledge about this frontend."

With Zwave.me it is fast seen ( They break themselves not the head ).
" Raspi 2 (RaZberry) / Raspi B (Razberry) " With OpenRemote Free 2.2.0_TTS-Email-Serial and Z-Way
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Zwave.me KFOB

Post by pz1 »

IIRC I saw yesterday something on Github about associations being updated in the Expert UI interface code. May be the next RC has something that will help.
For me the problem is not on the OR side, but to understand how these associations work within Z-Way.
pierre2302
Posts: 132
Joined: 15 Oct 2013 19:04

Re: Zwave.me KFOB

Post by pierre2302 »

I hope so !!!

Thank you for the information
" Raspi 2 (RaZberry) / Raspi B (Razberry) " With OpenRemote Free 2.2.0_TTS-Email-Serial and Z-Way
Post Reply