node-switchbot
    Preparing search index...

    Interface DiscoveryOptions

    Device discovery options

    interface DiscoveryOptions {
        deviceId?: string;
        deviceType?: string;
        fetchAPI?: boolean;
        mac?: string;
        scanBLE?: boolean;
        timeout?: number;
    }
    Index

    Properties

    deviceId?: string

    Filter by device ID (optional)

    deviceType?: string

    Filter by device type (optional)

    fetchAPI?: boolean

    Fetch devices from API (default: true if credentials provided)

    mac?: string

    Filter by device MAC address (optional)

    scanBLE?: boolean

    Scan for BLE devices (default: true if BLE enabled)

    timeout?: number

    Discovery timeout in milliseconds (default: 10000)