node-switchbot
    Preparing search index...

    Interface DeviceInfo

    Base device information

    interface DeviceInfo {
        activeConnection?: ConnectionType;
        battery?: number;
        bleId?: string;
        bleServiceData?: Record<string, unknown>;
        cloudServiceEnabled?: boolean;
        connectionTypes: ConnectionType[];
        deviceType: string;
        encryptionIV?: string;
        encryptionKey?: string;
        encryptionMode?: "auto" | "ctr" | "gcm";
        hubDeviceId?: string;
        id: string;
        mac?: string;
        model?: string;
        name: string;
        rssi?: number;
        version?: string;
    }
    Index

    Properties

    activeConnection?: ConnectionType

    Current active connection type

    battery?: number

    Battery level (0-100)

    bleId?: string

    BLE peripheral/advertisement ID (for ID-based lookups on macOS)

    bleServiceData?: Record<string, unknown>

    Last parsed BLE advertisement service data

    cloudServiceEnabled?: boolean

    CloudService enabled in OpenAPI

    connectionTypes: ConnectionType[]

    Available connection types

    deviceType: string

    Device type (e.g., 'Bot', 'Curtain', 'Lock')

    encryptionIV?: string

    Optional BLE encryption IV as hex

    encryptionKey?: string

    Optional BLE encryption key as hex (16 bytes / 32 hex chars)

    encryptionMode?: "auto" | "ctr" | "gcm"

    Optional BLE encryption mode

    hubDeviceId?: string

    Hub device ID (if device is controlled through a hub)

    id: string

    Device ID

    mac?: string

    MAC address (for BLE devices)

    model?: string

    Device model

    name: string

    Device name

    rssi?: number

    RSSI signal strength (for BLE)

    version?: string

    Firmware version