Getting status updates from TKB Home TZ68G

Discussions about RaZberry - Z-Wave board for Raspberry computer
grelle
Posts: 7
Joined: 19 Aug 2014 15:09

Re: Getting status updates from TKB Home TZ68G

Post by grelle »

Ok, thanks a lot, I will try to make a module for that script then. Works perfectly. As I have 5 of these, could I kindly ask you to modify, or be told how to modify the script to also work for the rest of my TKBHOME switches ?

Thanks again!

BTW, Do you know of any good ip44 switches which does provide these settings. I have only found the Duwi switch so far...
pofs
Posts: 688
Joined: 25 Mar 2011 19:03

Re: Getting status updates from TKB Home TZ68G

Post by pofs »

Wrap it into a function:

Code: Select all

function Fix_TKB_TZ68(deviceId) {
    var dev = zway.devices[deviceId];
    dev.data.nodeInfoFrame.bind(function(type) {
        if (type == 0x41 /* Updated | PhantomUpdate */) {
            dev.SwitchBinary.Get();
        }
    });
}
And call it for each your device:

Code: Select all

Fix_TKB_TZ68(10);
Fix_TKB_TZ68(12);
... etc
Ideally a module should enumerate all devices, filter them on vendorId/productId/whatever criteria and call that function for each of them. Also it should listen for new devices, and if a matching one appears, it should also call the function for it.
grelle
Posts: 7
Joined: 19 Aug 2014 15:09

Re: Getting status updates from TKB Home TZ68G

Post by grelle »

Ok, I think I'll have to take som java script classes then :) Thanks again!
Mirar
Posts: 113
Joined: 19 Oct 2014 16:54
Location: Stockholm

Re: Getting status updates from TKB Home TZ68G

Post by Mirar »

I found this thread because I have the same problem with my TKB TZ66D switch. It has several group associations and none of the switching it does (for it's own relay or over the network) is updated by zway-server.

edit: It's also doing what at a brief glance would be the same thing:

Code: Select all

[2014-10-22 10:23:57.482] RECEIVED: ( 01 10 00 49 84 05 0A 04 10 01 25 85 27 70 73 86 72 48 )
[2014-10-22 10:23:57.482] SENT ACK
[2014-10-22 10:23:57.482] Node info received: 5
[2014-10-22 10:23:57.482] SETDATA devices.5.data.basicType = 4 (0x00000004)
[2014-10-22 10:23:57.483] SETDATA devices.5.data.genericType = 16 (0x00000010)
[2014-10-22 10:23:57.483] SETDATA devices.5.data.specificType = 1 (0x00000001)
[2014-10-22 10:23:57.486] SETDATA devices.5.data.deviceTypeString = "Binary Power Switch"
[2014-10-22 10:23:57.486] SETDATA devices.5.data.nodeInfoFrame = byte[7]
  ( 25 85 27 70 73 86 72 )
[2014-10-22 10:23:57.486] SETDATA devices.5.data.lastReceived = 0 (0x00000000)
[2014-10-22 10:23:57.554] RECEIVED: ( 01 09 00 04 00 05 03 20 01 00 D5 )
[2014-10-22 10:23:57.554] SENT ACK
[2014-10-22 10:23:57.554] SETDATA devices.5.data.lastReceived = 0 (0x00000000)
[2014-10-22 10:23:57.555] SETDATA devices.1.instances.0.commandClasses.32.data.srcNodeId = 5 (0x00000005)
[2014-10-22 10:23:57.555] SETDATA devices.1.instances.0.commandClasses.32.data.srcInstanceId = 0 (0x00000000)
[2014-10-22 10:23:57.555] SETDATA devices.1.instances.0.commandClasses.32.data.level = 0 (0x00000000)
[2014-10-22 10:23:57.872] Executing script: zway.InspectQueue()
pofs wrote:On the other hand, we decided not to make hacks in Z-Way, encouraging users to use certified and up-to-date devices. But workarounds can still be made on JS level.
I'd like to use certified and up-to-date devices but these seems rare and far apart and hard to tell from any other device. So far only the power switches (AN157) have worked 100% and I suspect that's because they don't do anything other than switch. Power meters (AN158), Aeon MultiSensors (and the Aeon USB-stick), TKB Switches, Popp/Duwi IP44 switches have flaked, crashed, fluked and/or simply vanished from the network. The Philio Tech sensor and relay never worked properly.
other hand, we decided not to make hacks in Z-Way, encouraging users to use certified and up-to-date devices. Bu
I'd like to see a lot more options for workarounds personally. I'm perfectly fine if they are toggle-on only. But almost every z-wave item I've bought have very funny¹ quirks.

I'm on the verge of switching (or at least trying out) some other network technology. Even Nexa/Tellstick seems more reliable at this point.

(¹ as in this cheese smells funny)
Post Reply