Page 1 of 1

Alarm Class 113:event missing

Posted: 22 Jul 2023 10:18
by piet66
V4.1.0:
In Alarm class, I'm missing the item 'event'. Apps processing this item don't work anymore. If it's intentionally removed, what can I do instead to make them run again?
What's the criterion to decide, which event has occurred?

Manual:
Bildschirmfoto vom 2023-07-22 08-58-37.png
Bildschirmfoto vom 2023-07-22 08-58-37.png (53.18 KiB) Viewed 2269 times
/ZWaveAPI/Data/0:
Bildschirmfoto vom 2023-07-22 09-02-47.png
Bildschirmfoto vom 2023-07-22 09-02-47.png (47 KiB) Viewed 2269 times

Re: Alarm Class 113:event missing

Posted: 22 Jul 2023 14:47
by PoltoS
Hello!

The structure was improved. Please look on the new updated tree:

Code: Select all

V1supported             boolean flag saying if version 1 (deprecated) is supported
V1event                 structure to store V1 events
        alarmType       V1 alarm type
        level           V1 status
typeMask                bit mask of supported alarm types
[typeId]                subtree storing a specific alarm type
        typeString      name of the alarm type
        status          flag with alarm status (alarm enabled/disabled)
        sequence        internal; sequence number of the event
        eventMask       bit mask of supported events of this alarm type
        [eventId]       subtree storing a specific event type
                 status          event status
                 eventString     last event name
                 parameters      last event parameters
                 isState         TRUE if the event is a state change, FALSE if it is a notification of a stateless event
                 oppositeTo      internal; ID of the opposite event. Used for stateful events pairs

Re: Alarm Class 113:event missing

Posted: 22 Jul 2023 16:14
by piet66
I've seen the changed structure. But how do I interpret it?

Which of the possible 7 event Id's is the current one?

Code: Select all

113: {

    name: "Alarm",
    data: {
        6: {
            6: {8 items},
            12: {8 items},
            13: {8 items},
            14: {8 items},
            15: {8 items},
            19: {8 items},
            20: {8 items},
            value: null,
            type: "empty",
            typeString: {
                value: "Access Control",
                type: "string",
                invalidateTime: 1571056584,
                updateTime: 1571056585
            },
            status: {
                value: true,
                type: "bool",
                invalidateTime: 1571056584,
                updateTime: 1689755958
            },
            eventMask: {
                value: [
                    64,
                    240,
                    24
                ],
                type: "binary",
                invalidateTime: 1571056584,
                updateTime: 1571056585
            },
            sequence: {
                value: null,
                type: "empty",
                invalidateTime: 1571056584,
                updateTime: 1686735968
            },
            invalidateTime: 1571056584,
            updateTime: 1689755958
        },
        7: {9 items},
        value: null,
        type: "empty",
        supported: {4 items},
        version: {4 items},
        security: {4 items},
        interviewDone: {4 items},
        interviewCounter: {
            value: 9,
            type: "int",
            invalidateTime: 1571056567,
            updateTime: 1571056580
        },
        V1supported: {
            value: false,
            type: "bool",
            invalidateTime: 1571056567,
            updateTime: 1571056584
        },
        typeMask: {
            value: [
                192
            ],
            type: "binary",
            invalidateTime: 1571056567,
            updateTime: 1571056584
        },
        V1event: {
            value: null,
            type: "empty",
            alarmType: {
                value: null,
                type: "empty",
                invalidateTime: 1571056567,
                updateTime: 1571056568
            },
            level: {
                value: null,
                type: "empty",
                invalidateTime: 1571056567,
                updateTime: 1571056568
            },
            invalidateTime: 1571056567,
            updateTime: 1571056568
        },
        invalidateTime: 1571056567,
        updateTime: 1571056568
    }

},

Re: Alarm Class 113:event missing

Posted: 23 Jul 2023 05:17
by PoltoS
They can all be on or off. See the status field on each event.

Re: Alarm Class 113:event missing

Posted: 24 Jul 2023 08:02
by piet66
Thank you