/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */

/*** THIS FILE IS GENERATED, DO NOT EDIT ***/

import { Resource } from "#models/Resource.js";

Resource.add({
    tag: "cluster", name: "BooleanState", pics: "BOOL", xref: "cluster§1.7",
    details: "This cluster provides an interface to a boolean state.",

    children: [
        {
            tag: "attribute", name: "StateValue", xref: "cluster§1.7.4.1",
            details: "This represents a boolean state." +
                "\n" +
                "The semantics of this boolean state are defined by the device type using this cluster. For example, " +
                "in a Contact Sensor device type, FALSE=open or no contact, TRUE=closed or contact."
        },

        {
            tag: "event", name: "StateChange", xref: "cluster§1.7.5.1",
            details: "If this event is supported, it shall be generated when the StateValue attribute changes.",
            children: [{
                tag: "field", name: "StateValue", xref: "cluster§1.7.5.1.1",
                details: "This field shall indicate the new value of the StateValue attribute."
            }]
        }
    ]
});
