Hi everyone,
I spent the day building the input_color
helper after thinking about it for months. It follows the structure of other input helpers and stores colors as HEX strings. You can set colors via HEX, RGB, or HSV formats, and even modify individual components for use in automations. Currently, state restoration on reboot resets to the YAML-defined initial state, but this will be addressed.
For now, it’s backend only, but we need to build:
- A frontend color picker (using the native ha-color-picker hopefully)
- Helper creation from the UI page /config/helpers
- Examples for UI integration
Installation is simple: copy the three files (__init__.py
, manifest.json
, services.yaml
) into a new input_color
folder inside custom_components
.
There are two three examples available on GitHub:
example_script_demonstrating_actions.yaml
example_automation.yaml
color-display.js
: a custom card that shows the state of your color helper
Please try it out and provide feedback! I’ll monitor this closely to help out anyone who needs it.