awesome-ha-blueprints
awesome-ha-blueprints copied to clipboard
Enhancement - Add an Option for Color mode to cycle through Color Temperature AND Hue-Saturation
Blueprint name
Hook - Light ver.2021-12-05
Description
I've got some RGB-CCT bulbs and it would be great if I had the option to cycle trough the colors and also through white temperatures.
I use the Controller - IKEA E1524/E1810 TRÅDFRI Wireless 5-Button Remote and I'd like to, for example, cycle between colors and white temperature whenever I press/hold the right/left buttons.
The problem is that when I press/hold the right/left buttons , the bulb will start to cycle through the colors , but I'm not able to choose a white color with the remote. I need to go to Home Assistant for it.
It would be nice to have this option. Let me know if you need more details.
Automation YAML config
No response
Implementation
After the bulb makes a complete cycle through hue-saturation colors it would start cycling through the white temperatures, and after that it would go back to the hue-saturation cycle.
Additional Details
- [ ] I'd like to help developing this feature/improvement.
Useful resources
No response
Additional context
No response
Another possibility (and probably easier to implement) could be like this:
short press on a button_1 - switch to Hue - Saturation mode another short press on same button_1 - switch to Color Temperature mode
and then depending on what color_mode is currently active: button_2 would increase colors/temperature button_3 would decrease colors/temperature
Something that's broken on my setup, so I'd consider this a bug: if my color mode is set to "color temperature", once another device (or web UI) sets a color, I get the following error:
ERROR (MainThread) [homeassistant.components.automation.hook_light] Hook - Light:
Choose at step 2: choice 9: Choose at step 1: choice 1: Error executing script.
Error for call_service at pos 1: Error rendering data template: ValueError:
Template error: int got invalid input 'None' when rendering template
'{{ [state_attr(light,"color_temp")|int - 50, 1]|max }}' but no default was specified
ERROR (MainThread) [homeassistant.components.automation.hook_light] Hook - Light:
Choose at step 2: choice 9: Error executing script. Error for choose at pos 1:
Error rendering data template: ValueError: Template error: int got invalid input 'None'
when rendering template '{{ [state_attr(light,"color_temp")|int - 50, 1]|max }}'
but no default was specified
ERROR (MainThread) [homeassistant.components.automation.hook_light] Hook - Light:
Error executing script. Error for choose at pos 2: Error rendering data template:
ValueError: Template error: int got invalid input 'None' when rendering
template '{{ [state_attr(light,"color_temp")|int - 50, 1]|max }}'
but no default was specified
ERROR (MainThread) [homeassistant.components.automation.hook_light] Error while ex
ecuting automation automation.hook_light: Error rendering data template: ValueError:
Template error: int got invalid input 'None' when rendering template '{{
[state_attr(light,"color_temp")|int - 50, 1]|max }}' but no default was specified