Documentation
    Preparing search index...

    Variable smartPlugSwitchOnOffCommandSchemaConst

    smartPlugSwitchOnOffCommandSchema: 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}`;
        },
    > = ...

    Set commands

    At the moment there are 3 commands available for smart-plug

    • switch sp on/off
    • set led brightness
    • removing a configured task