diff --git a/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/2-line_cards/card_graph.yaml b/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/2-line_cards/card_graph.yaml index 5ecfd6e63..f8b5acd8e 100644 --- a/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/2-line_cards/card_graph.yaml +++ b/custom_components/ui_lovelace_minimalist/lovelace/ulm_templates/card_templates/2-line_cards/card_graph.yaml @@ -12,6 +12,7 @@ card_graph: ulm_card_graph_hours: 24 ulm_card_graph_type: "fill" ulm_card_graph_points: "0.5" + ulm_card_graph_group_by: "interval" triggers_update: "all" custom_fields: item1: @@ -51,6 +52,7 @@ card_graph: fill: "[[[ return variables.ulm_card_graph_type=='fill'?true:false; ]]]" hours_to_show: "[[[ return variables.ulm_card_graph_hours; ]]]" points_per_hour: "[[[ return variables.ulm_card_graph_points; ]]]" + group_by: "[[[ return variables.ulm_card_graph_group_by; ]]]" style: | ha-card { box-shadow: none; diff --git a/docs/usage/cards/card_graph.md b/docs/usage/cards/card_graph.md index 30d524a98..f3658f64b 100644 --- a/docs/usage/cards/card_graph.md +++ b/docs/usage/cards/card_graph.md @@ -25,6 +25,7 @@ The `card_graph` shows an entity with the actual state and a *min-graph-card* in | ulm_card_graph_type | fill | :material-close: | This is to change the appearance of the graph. Default is fill, but line, bar are valid options. | | ulm_card_graph_hours | 24 | :material-close: | How much time should the graph cover, default is 24 hours. | | ulm_card_graph_points | 0.5 | :material-close: | Specify amount of data points the graph should display for each hour. A larger number results in a more detailed graph. | +| ulm_card_graph_group_by | interval | :material-close: | Specify type of grouping of data, dynamic interval, date or hour. | ## Usage @@ -40,6 +41,7 @@ The `card_graph` shows an entity with the actual state and a *min-graph-card* in ulm_card_graph_entity2: sensor.bedgroom_temperature ulm_card_graph_type: fill ulm_card_graph_hours: 24 + ulm_card_graph_group_by: interval ``` ??? note "Template Code"