Properties

address: Number

The address this device is connected to the Nexmosphere controller.

config: any

The device config.

name: string

The name of the device.

The device state.

type: string

The type of the device.

Events

  • Registers a callback which will be triggered when the device encounters an error.

    Parameters

    • callback: ((error: Error) => void)

      The callback which will be called once the device encountered an error.

        • (error: Error): void
        • Parameters

          • error: Error

          Returns void

    Returns EventSubscription

Methods

  • Parameters

    • color0Intensity: Number
    • color0Number: Number
    • color0Time: Number
    • color1Intensity: Number
    • color1Number: Number
    • color1Time: Number
    • pulseCount: Number
    • rampTime: Number

    Returns void

  • Parameters

    • intensity: Number
    • colorLabel: Number
    • rampTime: Number

    Returns void

  • Returns a promise which is fulfilled when the device is started.

    Returns Promise<any>

  • Parameters

    • colorNumber: Number
    • red: Number
    • green: Number
    • blue: Number

    Returns void

  • Starts the device when needed and returns a promise which is fulfilled when the device is started.

    Returns Promise<any>

  • Stops the device.

    Returns Promise<any>

  • Parameters

    • color0Intensity: Number
    • color0Number: Number
    • duration: Number
    • animationOption: Number
    • color1Intensity: Number
    • color1Number: Number
    • numberOfLeds: Number

    Returns void

Generated using TypeDoc