Hierarchy

  • BaseSystem<Light>
    • Lights

Constructors

Properties

The client instance

parseItem: ((config, status, itemId) => Light)

Type declaration

systemType: SystemType

Methods

  • Returns a single item by id.

    Parameters

    • itemId: string

      The item id.

    Returns Promise<Light>

  • Returns a single trend by item id.

    Parameters

    • itemId: string

      The item id.

    • startDate: string

      The start date as date string.

    • endDate: string

      The start date as date string.

    • count: number

      The data count.

    Returns Promise<Trend>

    Throws

    ClientError

  • Return a parsed trend item.

    Parameters

    • systemType: SystemType

      The system type.

    • itemId: string

      The item id.

    • startDate: string

      The start date as date string.

    • endDate: string

      The start date as date string.

    • count: number

      The data count.

    Returns Promise<Trend>

    Throws

    ClientError

  • Returns all trends.

    Parameters

    • startDate: string

      The start date as date string.

    • endDate: string

      The start date as date string.

    • count: number

      The data count.

    Returns Promise<Trend[]>

    Throws

    ClientError

  • Return parsed trends.

    Parameters

    • systemType: SystemType

      The system type.

    • startDate: string

      The start date as date string.

    • endDate: string

      The start date as date string.

    • count: number

      The data count.

    Returns Promise<Trend[]>

    Throws

    ClientError

  • Return a parsed trend.

    Parameters

    • systemType: SystemType

      The system type.

    • item: string

      The item.

    • itemId: string

      The item id.

    • startDate: string

      The start date as date string.

    • endDate: string

      The start date as date string.

    • count: number

      The data count.

    Returns Promise<Trend>

    Throws

    ClientError

  • Sets the color.

    Parameters

    • itemId: string

      The item id.

    • color: number

      The new color.

    Returns Promise<void>

  • Sets the dim level.

    Parameters

    • itemId: string

      The item id.

    • dimLevel: number

      The new dim level.

    Returns Promise<void>

  • Sets the tunable white level.

    Parameters

    • itemId: string

      The item id.

    • tunableWhiteLevel: number

      The new tunable white level.

    Returns Promise<void>

Generated using TypeDoc