Skip to content

cardChart added

Choose a tag to compare

@olialb olialb released this 29 May 16:58

lovelace UI card chart is now alos implemented. for details see documentation
Additionally items of type group are now supported as long they have a valid item type assigned.

Simple example for a number chart:

  - name: PowerChart
    title: Stromverbrauch
    type: cardChart
    slots:
      - class: ohItem
        type: number
        item: Stromzaehler_power

image

The y axis label is used to show the maximum and minimum values during the period. The minimum value in the chart is scaled that 0 on the y axis is equivalent to the minimum value in the defined period. The labels on the x axis show the start and end of the defined period. The date and time is formated dependant on the language you specified in the ini file.

Another example for a chart with the states of a Switch item:

  - name: StateChart
    title: Küchenlicht
    type: cardChart
    period: d
    past: w
    color: yellow
    slots:
      - class: ohItem
        type: switch
        item: Switch_Kueche

image

This example shows a yellow chart. You can see how long the kitchen light where active on the same day as today one week ago.