node-switchbot
    Preparing search index...

    Class WoRGBICWWFloorLamp

    RGBICWW Floor Lamp Device Uses same logic as RGBIC Bulb with segmented control

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • info: DeviceInfo
      • options: {
            apiClient?: OpenAPIClient;
            bleConnection?: BLEConnection;
            circuitBreakerConfig?: CircuitBreakerConfig;
            enableCircuitBreaker?: boolean;
            enableConnectionIntelligence?: boolean;
            enableFallback?: boolean;
            enableRetry?: boolean;
            logLevel?: number;
            preferredConnection?: ConnectionType;
            retryConfig?: RetryConfig;
        } = {}

      Returns WoRGBICWWFloorLamp

    Properties

    EFFECTS: Record<string, number> = ...

    Preset effect name to effect ID mapping

    Accessors

    • 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

    • Get basic device info (universal settings retrieval) Returns: battery, firmware, device-specific settings, etc. Command: 0x57 0x02 (BLE), 'getBasicInfo' (API)

      Example usage: const info = await device.getBasicInfo(); console.log(info);

      Returns a CommandResult object with device info fields.

      Returns Promise<CommandResult>

    • Returns true if device should be polled (passive polling interval elapsed)

      Parameters

      • interval: number = PASSIVE_POLL_INTERVAL

      Returns boolean

    • Register a custom fallback handler

      Parameters

      • handler: FallbackHandler
      • Optionaloptions: FallbackHandlerOptions

      Returns string

    • Send multiple commands in sequence (all must succeed) Used for Strip Light 3 and complex light patterns

      Parameters

      • commands: (() => Promise<boolean>)[]

      Returns Promise<boolean>

    • Send multiple commands (returns true if any succeed) Used for fallback operations with complex light patterns

      Parameters

      • commands: (() => Promise<boolean>)[]

      Returns Promise<boolean>

    • Set RGB color

      Parameters

      • red: number
      • green: number
      • blue: number

      Returns Promise<boolean>

    • Set color temperature with min/max bounds For advanced bulbs that support color temperature range control

      Parameters

      • minTemp: number
      • maxTemp: number
      • temp: number

      Returns Promise<boolean>

    • Set preset light effect

      Parameters

      • effectName: string
      • speed: number = 100

      Returns Promise<boolean>

    • Universal mode setting command BLE: 0x57 0x03 [modeByte] API: 'setMode' (if available)

      Parameters

      • mode: string | number

        Mode value (number or string, per-device enum recommended)

        Example usage: await device.setMode('auto') await device.setMode(1)

        Returns a CommandResult object indicating success and mode info.

      Returns Promise<CommandResult>

    • Set color for individual LED segment

      Parameters

      • segmentId: number

        Segment identifier (0-based index)

      • red: number

        Red value (0-255)

      • green: number

        Green value (0-255)

      • blue: number

        Blue value (0-255)

      Returns Promise<boolean>

    • Set effect for individual LED segment

      Parameters

      • segmentId: number

        Segment identifier (0-based index)

      • effectName: string

        Effect name from RGBIC_EFFECTS

      • speed: number = 50

        Effect speed (1-100, default: 50)

      Returns Promise<boolean>

    • Verifies the BLE encryption key by attempting a status read with encryption. Throws an error if the key is invalid or the device rejects the command.

      Returns Promise<boolean>