Unified configuration storage model based on zigpy/open-coordinator-backup.

This format should allow for seamless migration between adapter types or event vendors.

interface UnifiedBackupStorage {
    channel: number;
    channel_mask: number[];
    coordinator_ieee: string;
    devices: {
        ieee_address: string;
        is_child: boolean;
        link_key: undefined | {
            key: string;
            rx_counter: number;
            tx_counter: number;
        };
        nwk_address: null | string;
    }[];
    extended_pan_id: string;
    metadata: {
        format: "zigpy/open-coordinator-backup";
        internal: {
            date: string;
            ezspVersion?: number;
            znpVersion?: number;
            [key: string]: unknown;
        };
        source: string;
        version: 1;
    };
    network_key: {
        frame_counter: number;
        key: string;
        sequence_number: number;
    };
    nwk_update_id: number;
    pan_id: string;
    security_level: number;
    stack_specific?: {
        ezsp?: {
            hashed_tclk?: string;
        };
        zstack?: {
            tclk_seed?: string;
        };
    };
}

Properties

channel: number
channel_mask: number[]
coordinator_ieee: string
devices: {
    ieee_address: string;
    is_child: boolean;
    link_key: undefined | {
        key: string;
        rx_counter: number;
        tx_counter: number;
    };
    nwk_address: null | string;
}[]
extended_pan_id: string
metadata: {
    format: "zigpy/open-coordinator-backup";
    internal: {
        date: string;
        ezspVersion?: number;
        znpVersion?: number;
        [key: string]: unknown;
    };
    source: string;
    version: 1;
}
network_key: {
    frame_counter: number;
    key: string;
    sequence_number: number;
}
nwk_update_id: number
pan_id: string
security_level: number
stack_specific?: {
    ezsp?: {
        hashed_tclk?: string;
    };
    zstack?: {
        tclk_seed?: string;
    };
}