01-21-2024 07:22 AM
I can use the script editor to get lights to turn different colors based on a different dimmer's level, but I can't get them to display a specific white temperature.
I'm likely not writing the script command correctly, but I can't find clear enough documentation to get me there. Can someone provide an example of a script that works for them?
Answered! Go to the Recommended Answer.
01-23-2024 03:47 PM
Hello @Sir_Rob ,
You can refer to the documentation available online in regards to Automation Script Editor. The documentation provides details about how to create script automation for different device types and scenarios. It also provides sample scripted automation and details about different types of errors and warnings one can get.
01-23-2024 03:47 PM
Hello @Sir_Rob ,
You can refer to the documentation available online in regards to Automation Script Editor. The documentation provides details about how to create script automation for different device types and scenarios. It also provides sample scripted automation and details about different types of errors and warnings one can get.
01-23-2024 05:55 PM
Thank you. I read through these documents prior to posting. I can find the instructions for using color temperature as a starter, but everything I try for using it as an action fails with errors.
Here is the example given for the starter:
starters:
- type: device.state.ColorSetting
device: My Device - Room Name
state: color.colorTemperature
is: 2000K
Can you provide a functional example of an action?
01-26-2024 08:20 AM
I'm with the same problem !
Do you get to finally work with the color temperature as an action?
01-26-2024 09:19 AM
No, I have not been able to get it to work as an action.
02-10-2024 11:18 AM
This works for me:
automations:
- starters:
# omitted for brevity
condition:
# omitted for brevity
actions:
- type: device.command.ColorAbsolute
color:
temperature: 3500K
devices:
- Light 1
- Light 2
- Light 3
02-10-2024 02:04 PM
Thanks. In the meantime I was able to make it work 😊
02-11-2024 06:48 AM
Thank you. I guess the problem was I had not capitalized the "K". Problem solved!
02-11-2024 07:05 AM
Yeah, that has gotten me several times too. I don’t know why they made it case-sensitive
05-10-2024 12:17 PM
Holy cow I've been POURING the internet for a couple hours trying to find out why it wouldn't accept 5000k as an input.
On one hand it's ridiculous and on the other I guess we gotta accept that we forgot that was the correct notation for Kelvin.
Sigh... Thank you for coming back and saying what was wrong. Saved me.
05-10-2024 03:46 PM
I'm glad it helped someone else