Color stops¶
Color stops connect entity values or named states to colors. Define them once and use the same visual scale on horseshoes, shapes, entity tools, and graphs.
Numeric color stops¶
Each value starts a new color range.
State-based color stops¶
Use state for named values:
rank gives ordered visualizations, such as graded charts and string-state horseshoes, their level order.
Color a horseshoe¶
Common horseshoe styles are:
| Style | Result |
|---|---|
colorstop | One color for the current value or state |
colorstopsegments | Separate solid color ranges |
colorstopgradient | Gradient that follows the configured stop values |
lineargradient | All configured colors distributed evenly |
minmaxgradient | Continuous minimum, zero, and maximum gradient |
See Horseshoe scale and state.
Color a shape or entity tool¶
| Item style | Result |
|---|---|
colorstop | One matching color |
colorstopsegments | Separate solid ranges where the tool supports segments |
colorstopinterpolated | One blended color for the current numeric value |
Use the matching style block to choose whether the color affects fill, stroke, or both.
Add a gap between segments¶
The tool can override the shared gap when one visualization needs different spacing.
Light and dark colors¶
The mode-specific list is used when that Home Assistant theme mode is active. The main colors list is used for other modes.
Reuse color stops¶
Store a shared definition as a template:
Use it wherever the same scale is needed: