LightEvent

@Serializable
data class LightEvent(val id: ResourceId, val owner: ResourceReference, val powerInfo: PowerInfo? = null, val dimmingInfo: DimmingInfoEvent? = null, val colorTemperatureInfo: ColorTemperatureInfoEvent? = null, val colorInfo: ColorInfoEvent? = null)

Data sent during a light update on the events API.

Constructors

Link copied to clipboard
constructor(id: ResourceId, owner: ResourceReference, powerInfo: PowerInfo? = null, dimmingInfo: DimmingInfoEvent? = null, colorTemperatureInfo: ColorTemperatureInfoEvent? = null, colorInfo: ColorInfoEvent? = null)

Properties

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

Information about the bulb's color and color capabilities.

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

Information about the color temperature and capabilities of the light.

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

Information about the light's dimming, if supported.

Link copied to clipboard

Unique identifier representing a specific resource instance

Link copied to clipboard

Owner of the service

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

On/Off state of the light