edilkamin
    Preparing search index...

    Variable setEasyTimer

    setEasyTimer: (
        jwtToken: string,
        macAddress: string,
        minutes: number,
    ) => Promise<unknown>

    Type Declaration

      • (jwtToken: string, macAddress: string, minutes: number): Promise<unknown>
      • Sets the Easy Timer countdown in minutes. When the timer expires, the stove automatically turns off.

        Parameters

        • jwtToken: string

          The JWT token for authentication.

        • macAddress: string

          The MAC address of the device.

        • minutes: number

          Timer duration in minutes (0 to disable).

        Returns Promise<unknown>

        • A promise that resolves to the command response.
        // Set a 2-hour auto-shutoff timer
        await setEasyTimer(token, mac, 120);
        // Disable the timer
        await setEasyTimer(token, mac, 0);