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.

2 Likes

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:

2 Likes

I second this. I use RGB code in a automations as variable for multiple devices and I want to let others choose the colour. Colour picker would help a lot because changing the automations of individually selecting each number is not ideal.

1 Like

Yep, I want to be able to pick a color from my dashboard that can later be used to influence an automation and change the color of multiple LED strips. It’s the stored selection for later use that is important though.

Any chance you’re going to make this available via HACS?

All, please go upvote… Color Helper Entity · home-assistant · Discussion #1041 · GitHub

2 Likes