Page 1 of 1

API consistence

Posted: 13 May 2015 12:03
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

Re: API consistence

Posted: 20 Jun 2015 23:25
by PoltoS
This depends on the length of the typemask field. You should not look in it, since it is Z-Way internal