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
fun LightEvent(id: ResourceId, owner: ResourceReference, powerInfo: PowerInfo? = null, dimmingInfo: DimmingInfoEvent? = null, colorTemperatureInfo: ColorTemperatureInfoEvent? = null, colorInfo: ColorInfoEvent? = null)

Properties

Link copied to clipboard

Information about the bulb's color and color capabilities.

Link copied to clipboard

Information about the color temperature and capabilities of the light.

Link copied to clipboard

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
val powerInfo: PowerInfo? = null

On/Off state of the light