node-switchbot
    Preparing search index...

    Class WoHand

    Bot (WoHand) Device - Press or switch button device Supports optional BLE password protection

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    • Parameters

      • info: DeviceInfo
      • options: {
            apiClient?: OpenAPIClient;
            bleConnection?: BLEConnection;
            enableCircuitBreaker?: boolean;
            enableConnectionIntelligence?: boolean;
            enableFallback?: boolean;
            enableRetry?: boolean;
            logLevel?: number;
            password?: string;
            preferredConnection?: "ble" | "api";
        } = {}

      Returns WoHand

    Accessors

    • get activeConnection(): ConnectionType | undefined

      Get active connection type (property accessor for convenience)

      Returns ConnectionType | undefined

    • get deviceType(): string

      Get device type (property accessor for convenience)

      Returns string

    • get id(): string | undefined

      Get device ID (property accessor for convenience)

      Returns string | undefined

    • get mac(): string | undefined

      Get MAC address (property accessor for convenience)

      Returns string | undefined

    • get name(): string

      Get device name (property accessor for convenience)

      Returns string

    Methods

    • Set or update Bot password

      Parameters

      • password: string

        4-character alphanumeric password (case-sensitive)

      Returns void