Light

@Serializable
data class Light(val id: ResourceId, val owner: ResourceReference, val powerInfo: PowerInfo, val mode: LightMode, val dimmingInfo: DimmingInfo? = null, val colorTemperatureInfo: ColorTemperatureInfo? = null, val colorInfo: ColorInfo? = null, val v1Id: String? = null, val dynamics: LightDynamics? = null, val alertInfo: AlertInfo? = null, val gradient: Gradient? = null, val effects: LightingEffectInfo? = null, val timedEffects: TimedLightingEffectInfo? = null, val signaling: LightSignaling? = null, val powerup: LightPowerup? = null)

State and capabilities of a light resource.

Constructors

Link copied to clipboard
constructor(id: ResourceId, owner: ResourceReference, powerInfo: PowerInfo, mode: LightMode, dimmingInfo: DimmingInfo? = null, colorTemperatureInfo: ColorTemperatureInfo? = null, colorInfo: ColorInfo? = null, v1Id: String? = null, dynamics: LightDynamics? = null, alertInfo: AlertInfo? = null, gradient: Gradient? = null, effects: LightingEffectInfo? = null, timedEffects: TimedLightingEffectInfo? = null, signaling: LightSignaling? = null, powerup: LightPowerup? = null)

Properties

Link copied to clipboard
@SerialName(value = "alert")
val alertInfo: AlertInfo?

Information on alerting effects for this light

Link copied to clipboard
@SerialName(value = "color")
val colorInfo: ColorInfo?

Information about the bulb's color and color capabilities.

Link copied to clipboard
@SerialName(value = "color_temperature")
val colorTemperatureInfo: ColorTemperatureInfo?

Information about the color temperature and capabilities of the light.

Link copied to clipboard
@SerialName(value = "dimming")
val dimmingInfo: DimmingInfo?

Information about the light's dimming, if supported.

Link copied to clipboard

Light dynamics information if supported

Link copied to clipboard

Basic feature containing effect properties.

Link copied to clipboard

Gradient information if supported.

Link copied to clipboard

Unique identifier representing a specific resource instance

Link copied to clipboard

Current mode that the light is in

Link copied to clipboard

Owner of the service

Link copied to clipboard
@SerialName(value = "on")
val powerInfo: PowerInfo

On/Off state of the light

Link copied to clipboard

Feature containing properties to configure powerup behaviour of a lightsource.

Link copied to clipboard

Signaling properties of the light.

Link copied to clipboard
@SerialName(value = "timed_effects")
val timedEffects: TimedLightingEffectInfo?

Basic feature containing timed effect properties.

Link copied to clipboard
@SerialName(value = "id_v1")
val v1Id: String?

Clip v1 resource identifier.