Page 1 of 1

RaZberry and getting device information

Posted: 28 May 2015 15:46
by kostasv
Hello there,

I'm new to RaZberry but very interested in the API capabilities it offers!

On a first glance, doing the simple (with just one device included, a Fibaro Motion Sensor):

http://192.168.100.120:8083/ZWaveAPI/Data/0

Gives very little 'information' about the device.

From a 'textual' perspective it only has the manufacturer name, nothing else.

Compared to other controllers (e.g. indigo with Aeotec S2 or Fibaro controllers) these offer much more details per device. For example for the same device that it is type/model "Motion Sensor (FGMS001)".

This is pretty much what I get:

Code: Select all

      "vendorString": {
        "value": "Fibar Group",
        "type": "string",
        "invalidateTime": 1432808840,
        "updateTime": 1432812638
      },
      "manufacturerProductType": {
        "value": 2048,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432812638
      },
      "manufacturerProductId": {
        "value": 4097,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432812638
      },
My question is if this information is 'hidden' by Z-Way for some reason or there is an alternative way to get it (e.g. is there a database with all the product-codes that I need to look-up?).

Also what is the 'mysterious' device on Node 1 (mains powered), is this the controller itself?

Thanks!

Kostas

Re: RaZberry and getting device information

Posted: 28 May 2015 16:43
by pz1
- The ZWaveAPI call should return considerably more than what you display here. The query actually dumps the Z-Way tree in a JSON format. Try to find a JSON viewer to look into it if you have to (There are some references to viewers on the forum)
- Node 1 is indeed the controller

Re: RaZberry and getting device information

Posted: 28 May 2015 19:03
by kostasv
Thanks pz1! I have looked at the output but nothing resembling the details the other controllers provide.

For example this is the output for the Fibaro device JSON output before the instances begin to appear:

Code: Select all

    "3": {
      "data": {
      "value": null,
      "type": "empty",
      "basicType": {
        "value": 4,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432812651
      },
      "genericType": {
        "value": 32,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432812651
      },
      "specificType": {
        "value": 1,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432812651
      },
      "infoProtocolSpecific": {
        "value": 5479424,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432808841
      },
      "deviceTypeString": {
        "value": "Routing Binary Sensor",
        "type": "string",
        "invalidateTime": 1432808840,
        "updateTime": 1432812651
      },
      "isVirtual": {
        "value": false,
        "type": "bool",
        "invalidateTime": 1432808840,
        "updateTime": 1432808841
      },
      "isListening": {
        "value": false,
        "type": "bool",
        "invalidateTime": 1432808840,
        "updateTime": 1432808841
      },
      "isRouting": {
        "value": true,
        "type": "bool",
        "invalidateTime": 1432808840,
        "updateTime": 1432808841
      },
      "isAwake": {
        "value": false,
        "type": "bool",
        "invalidateTime": 1432808840,
        "updateTime": 1432813856
      },
      "optional": {
        "value": true,
        "type": "bool",
        "invalidateTime": 1432808840,
        "updateTime": 1432808841
      },
      "isFailed": {
        "value": false,
        "type": "bool",
        "invalidateTime": 1432808840,
        "updateTime": 1432808841
      },
      "beam": {
        "value": false,
        "type": "bool",
        "invalidateTime": 1432808840,
        "updateTime": 1432808841
      },
      "sensor250": {
        "value": false,
        "type": "bool",
        "invalidateTime": 1432808840,
        "updateTime": 1432808841
      },
      "sensor1000": {
        "value": false,
        "type": "bool",
        "invalidateTime": 1432808840,
        "updateTime": 1432808841
      },
      "neighbours": {
        "value": [ 1 ],
        "type": "binary",
        "invalidateTime": 1432812593,
        "updateTime": 1432812628
      },
      "manufacturerId": {
        "value": 271,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432812638
      },
      "vendorString": {
        "value": "Fibar Group",
        "type": "string",
        "invalidateTime": 1432808840,
        "updateTime": 1432812638
      },
      "manufacturerProductType": {
        "value": 2048,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432812638
      },
      "manufacturerProductId": {
        "value": 4097,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432812638
      },
      "ZWLib": {
        "value": 3,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432812638
      },
      "ZWProtocolMajor": {
        "value": 3,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432812638
      },
      "ZWProtocolMinor": {
        "value": 67,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432812638
      },
      "SDK": {
        "value": "4.55.00",
        "type": "string",
        "invalidateTime": 1432808840,
        "updateTime": 1432812638
      },
      "applicationMajor": {
        "value": 2,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432812638
      },
      "applicationMinor": {
        "value": 6,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432812638
      },
      "nodeInfoFrame": {
        "value": [ 48, 132, 133, 128, 143, 86, 114, 134, 112, 142, 49, 156, 239, 48, 49, 156 ],
        "type": "binary",
        "invalidateTime": 1432808840,
        "updateTime": 1432812651
      },
      "ZDDXMLFile": {
        "value": null,
        "type": "empty",
        "invalidateTime": 1432808840,
        "updateTime": 1432812637
      },
      "lastSend": {
        "value": 495712,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432813856
      },
      "lastNonceGet": {
        "value": 494696,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432813856
      },
      "lastReceived": {
        "value": 0,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432813866
      },
      "failureCount": {
        "value": 0,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432808841
      },
      "keepAwake": {
        "value": false,
        "type": "bool",
        "invalidateTime": 1432808840,
        "updateTime": 1432812639
      },
      "countSuccess": {
        "value": 0,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432808841
      },
      "countFailed": {
        "value": 0,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432808841
      },
      "queueLength": {
        "value": 0,
        "type": "int",
        "invalidateTime": 1432808840,
        "updateTime": 1432808841
      },
      "givenName": {
        "value": "Motion Sensor",
        "type": "string",
        "invalidateTime": 1432808840,
        "updateTime": 1432812710
      },
      "invalidateTime": 1432808840,
      "updateTime": 1432808841
      },
I can't see any text representing for example the FGMS001 model type show by other controllers...

Re: RaZberry and getting device information

Posted: 28 May 2015 21:23
by pz1
Your question remains a bit vague to me. What do you want to see and for what purpose?

Re: RaZberry and getting device information

Posted: 28 May 2015 23:07
by kostasv
Ideally I'd like to see the model of the device that is part of the Z-Wave network.

Z-Way seems to be able to give me that is is a "Routing Binary Sensor" (deviceTypeString) device made by "Fibar Group" (vendorString) but when it comes to 'what' model/type it is the only info available is (manufacturerProductType) and (manufacturerProductId) which are Integers so maybe naively I'm thinking somewhere somehow there is a look-up table although doing some reading it seems this is not publicly available info..?

Re: RaZberry and getting device information

Posted: 29 May 2015 08:35
by pz1
I see. I ran into a similar problem with the Fibaro Universal sensor. I have written several times to Fibaro to explain what the difference was between the two devices I had There was a difference in manufacturerProductId. Even their helpdesk could/would not tell.
You may find some help in the ZDDX xml file for your devices. See Pepper1 Database