Documentation
    Preparing search index...

    Variable smartPlugSetCommandSchemaConst

    smartPlugSetCommandSchema: ZodDiscriminatedUnion<
        "cmdCode",
        [
            ZodObject<
                {
                    cmdCode: ZodLiteral<"WN511_SOCKET_SET_PLUG_SWITCH_MESSAGE">;
                    params: ZodObject<
                        { plugSwitch: ZodUnion<[ZodLiteral<0>, ZodLiteral<1>]> },
                        "strict",
                        ZodTypeAny,
                        { plugSwitch: 0 | 1 },
                        { plugSwitch: 0 | 1 },
                    >;
                    sn: ZodType<`HW52${string}`, ZodTypeDef, `HW52${string}`>;
                },
                "strip",
                ZodTypeAny,
                {
                    cmdCode: "WN511_SOCKET_SET_PLUG_SWITCH_MESSAGE";
                    params: { plugSwitch: 0
                    | 1 };
                    sn: `HW52${string}`;
                },
                {
                    cmdCode: "WN511_SOCKET_SET_PLUG_SWITCH_MESSAGE";
                    params: { plugSwitch: 0
                    | 1 };
                    sn: `HW52${string}`;
                },
            >,
            ZodObject<
                {
                    cmdCode: ZodLiteral<"WN511_SOCKET_SET_BRIGHTNESS_PACK">;
                    params: ZodObject<
                        { brightness: ZodNumber },
                        "strict",
                        ZodTypeAny,
                        { brightness: number },
                        { brightness: number },
                    >;
                    sn: ZodType<`HW52${string}`, ZodTypeDef, `HW52${string}`>;
                },
                "strip",
                ZodTypeAny,
                {
                    cmdCode: "WN511_SOCKET_SET_BRIGHTNESS_PACK";
                    params: { brightness: number };
                    sn: `HW52${string}`;
                },
                {
                    cmdCode: "WN511_SOCKET_SET_BRIGHTNESS_PACK";
                    params: { brightness: number };
                    sn: `HW52${string}`;
                },
            >,
            ZodObject<
                {
                    cmdCode: ZodLiteral<"WN511_SOCKET_DELETE_TIME_TASK">;
                    params: ZodObject<
                        { taskIndex: ZodNumber },
                        "strict",
                        ZodTypeAny,
                        { taskIndex: number },
                        { taskIndex: number },
                    >;
                    sn: ZodType<`HW52${string}`, ZodTypeDef, `HW52${string}`>;
                },
                "strip",
                ZodTypeAny,
                {
                    cmdCode: "WN511_SOCKET_DELETE_TIME_TASK";
                    params: { taskIndex: number };
                    sn: `HW52${string}`;
                },
                {
                    cmdCode: "WN511_SOCKET_DELETE_TIME_TASK";
                    params: { taskIndex: number };
                    sn: `HW52${string}`;
                },
            >,
        ],
    > = ...