API consistence

Discussions about RaZberry - Z-Wave board for Raspberry computer
Post Reply
yoch
Posts: 5
Joined: 13 May 2015 11:55

API consistence

Post by yoch »

Hi all,

I new Razberry user, and very happy with.

I have a Philio PSP01 (which detects both move, temperature and luminescence), and my question is about the consistence of the JSON "typemask" field on some sensors. Why is sometime a int, and sometime a list ?

Code: Select all

"commandClasses": {
    "48": {
        "name": "SensorBinary",
        "data": {
            "8": {...},
            "12": {...},
            "typemask": {
                "value": 4352,
                "type": "int",
                ...
            }
        }
    },
    "49": {
        "name": "SensorMultilevel",
        "data": {
            "1": {...},
            "3": {...},
            "typemask": {
                "value": [5],
                "type": "binary",
                ...
            }
        }
    }
}
Thank you
User avatar
PoltoS
Posts: 7649
Joined: 26 Jan 2011 19:36

Re: API consistence

Post by PoltoS »

This depends on the length of the typemask field. You should not look in it, since it is Z-Way internal
Post Reply