Interface IWizLight

interface IWizLight {
    destroy(): void;
    getStatus(): Promise<IFullStateResponse>;
    setLightProps(props): Promise<Boolean>;
    setLightStatus(status): Promise<Boolean>;
}

Implemented by

Methods

  • Sets the properties of the light, i.e. color, dimming, cold or warm

    Parameters

    • props: ILightProps

      properties of the light, i.e. color, dimming, cold or warm

    Returns Promise<Boolean>

  • Turns the light on or off.

    Parameters

    • status: Boolean

      Status of the light, should it be ON(true) or OFF(false).

    Returns Promise<Boolean>