cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with device.command.LightEffectSleep and color temperature

TheTomahawk
Community Member

https://developers.home.google.com/automations/schema/reference/entity/sht_device/light_effect_sleep...

Over a span of time, gradually decrease the device's brightness and, optionally, alter the color temperature.

The docs don't show a field for optionally, or, specifically, NOT, altering the color temperature.

How do I tell this command to only affect brightness and nothing else? 

1 Recommended Answer

sipriyadarshi
Solutions Expert
Solutions Expert

Hello @TheTomahawk ,

  • The LightEffectSleep command is used to gradually decrease devices brightness and optionally alter the temperature.
  • The LightEffectSleep is a kind of device action which is a Typed Struct. 
  • The altering of the color temperature is a pre programmed capability and currently we don’t have any provisions to put this change explicitly as part of the automation script.

View Recommended Answer in original post

2 REPLIES 2

sipriyadarshi
Solutions Expert
Solutions Expert

Hello @TheTomahawk ,

  • The LightEffectSleep command is used to gradually decrease devices brightness and optionally alter the temperature.
  • The LightEffectSleep is a kind of device action which is a Typed Struct. 
  • The altering of the color temperature is a pre programmed capability and currently we don’t have any provisions to put this change explicitly as part of the automation script.

But the docs say, as does your reply:

  • optionally alter the temperature.

It seems that there is nothing optional about it, then?