SceneAction

@Serializable
data class SceneAction(val powerValue: PowerValue? = null, val dimmingValue: DimmingValue? = null, val colorValue: ColorValue? = null, val colorTemperatureValue: ColorTemperatureValue? = null, val gradient: GradientValue? = null, val effect: LightEffect? = null, val dynamicsDuration: Duration? = null)

Action to be executed on the lights in the scene.

Constructors

Link copied to clipboard
constructor(powerValue: PowerValue? = null, dimmingValue: DimmingValue? = null, colorValue: ColorValue? = null, colorTemperatureValue: ColorTemperatureValue? = null, gradient: GradientValue? = null, effect: LightEffect? = null, dynamicsDuration: Duration? = null)

Properties

Link copied to clipboard
@SerialName(value = "color_temperature")
val colorTemperatureValue: ColorTemperatureValue?

Color temperature values of the lights in the scene, if applicable.

Link copied to clipboard
@SerialName(value = "color")
val colorValue: ColorValue?

Color values of the lights in the scene, if applicable.

Link copied to clipboard
@SerialName(value = "dimming")
val dimmingValue: DimmingValue?

Dimming values of the lights in the scene, if applicable.

Link copied to clipboard

Duration of a light transition or timed effects.

Link copied to clipboard

Effect values applied to lights in the scene.

Link copied to clipboard

Gradient values of the lights in the scene, if applicable.

Link copied to clipboard
@SerialName(value = "on")
val powerValue: PowerValue?

On/Off state of the lights in the scene.