Color Picker Helper

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.

Download and details here.

You should turn this into a HACS component instead. It would make it much more usable for the general population :slight_smile:

Still no love for a color helper? :frowning:

1 Like