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
fun Light(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
val alertInfo: AlertInfo? = null

Information on alerting effects for this light

Link copied to clipboard
val colorInfo: ColorInfo? = null

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
val dynamics: LightDynamics? = null

Light dynamics information if supported

Link copied to clipboard

Basic feature containing effect properties.

Link copied to clipboard
val gradient: Gradient? = null

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

On/Off state of the light

Link copied to clipboard
val powerup: LightPowerup? = null

Feature containing properties to configure powerup behaviour of a lightsource.

Link copied to clipboard

Signaling properties of the light.

Link copied to clipboard

Basic feature containing timed effect properties.

Link copied to clipboard
val v1Id: String? = null

Clip v1 resource identifier.