Skip to content

Multi trend ​

custom:multi-trend-card-pro draws one or more numeric sensors as smooth lines on one card. Hover or touch the plot for a crosshair that lists every value at that time. For the same lines as a tile or a poster, use the trend kind.

Sensors ​

entities lists the sensors: entity ids, or objects with a name and a color. Without a colour the series take primary, orange, green, purple, cyan and pink in turn. title and icon set the header; without them it takes the first entity's name and icon. A tap on the header opens that entity's more-info dialog.

Edit

Rules ​

rules colour a series by its current value, as a tile's rules do: the first entry whose state, below or above matches colours the whole line. A fixed color wins over the rules and may be a template.

Edit

Overlay or lanes ​

With layout: auto the series share one scale when they share a unit; otherwise each gets its own lane. overlay or lanes forces either. hours sets the window, 6 hours by default.

Edit

Axes and smoothing ​

x_axis adds time labels and y_axis value labels, each with gridlines; both are off by default. The lines are averaged so sensor noise does not zigzag; smoothing sets how many minutes each point averages.

Edit

Reference ​

KeyDefaultDescription
entities–Required. Entity ids, or { entity, name, color, rules, visibility }. A series with visibility shows while it holds.
titlethe first entity's nameThe header's text.
iconthe first entity's iconThe header's icon.
colorthe state's icon colourThe header icon's colour.
hours6The window, 1 to 168 hours (hours_to_show until 4.0).
smoothingone point per 12 pxMinutes each point averages, at least 5 (smoothing_minutes until 4.0).
layoutautoauto (overlay when the units match, else lanes), overlay or lanes.
show_legendtrueA legend under the header for two or more overlaid series.
x_axisfalseTime labels and vertical gridlines.
y_axisfalseValue labels and horizontal gridlines, per lane.

A series' rules are { state | below | above, color }; below is exclusive, above inclusive.

The card takes 12 columns and is as tall as its plot (rows: auto, two rows at least); it fills a taller cell. It also takes Home Assistant's grid_options, visibility, view_layout, card_mod and uix, plus fill_height (false keeps its own height); see Sizing in sections. The card has a visual editor: its options, then its entities, each opening in a view of its own (the entity, its name and colour, its rules and when it shows).

Released under the MIT License.