Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
4.9 kB
1
Indexable
Never
type: vertical-stack
title: Celkové statistiky sprchy muži
cards:
  - square: false
    type: grid
    cards:
      - type: custom:apexcharts-card
        apex_config:
          chart:
            type: area
            height: 300
          stroke:
            show: true
            width: 0
            curve: smooth
          legend:
            show: false
          dataLabels:
            enabled: true
          fill:
            type: gradient
            gradient:
              shadeIntensity: 0.1
              opacityFrom: 0.25
              opacityTo: 1
              inverseColors: true
              stops:
                - 0
                - 90
                - 100
        graph_span: 7d
        span:
          end: day
        show:
          last_updated: true
        header:
          show: true
          show_states: true
          colorize_states: true
          title: Denní součet + Graf posledních 7 dní
        style: |
          ha-card {
            font-size: 11px;
          }
        series:
          - entity: sensor.sprcha_1_spustena
            name: Sprcha 1
            type: column
            unit: ' x'
            color: cyan
            group_by:
              func: max
              duration: 1d
            show:
              legend_value: false
          - entity: sensor.sprcha_2_spustena
            name: Sprcha 2
            type: column
            unit: ' x'
            color: yellow
            group_by:
              func: max
              duration: 1d
            show:
              legend_value: false
          - entity: sensor.sprcha_3_spustena
            name: Sprcha 3
            type: column
            unit: ' x'
            color: lime
            group_by:
              func: max
              duration: 1d
            show:
              legend_value: false
          - entity: sensor.sprcha_4_spustena
            name: Sprcha 4
            type: column
            unit: ' x'
            color: red
            group_by:
              func: max
              duration: 1d
            show:
              legend_value: false
    columns: 1
  - square: false
    type: grid
    cards:
      - type: custom:mushroom-template-card
        primary: Týdně
        secondary: '{{ states(''sensor.sprcha_1_tydne'') }}x'
        icon: mdi:numeric-1-circle
        icon_color: green
      - type: custom:mushroom-template-card
        primary: Měsíčně
        secondary: '{{ states(''sensor.sprcha_1_mesicne'') }}x'
        icon: mdi:numeric-1-circle
        icon_color: blue
      - type: custom:mushroom-template-card
        primary: Ročně
        secondary: '{{ states(''sensor.sprcha_1_rocne'') }}x'
        icon: mdi:numeric-1-circle
        icon_color: red
    columns: 3
  - square: false
    type: grid
    cards:
      - type: custom:mushroom-template-card
        primary: Týdně
        secondary: '{{ states(''sensor.sprcha_2_tydne'') }}x'
        icon: mdi:numeric-2-circle
        icon_color: green
      - type: custom:mushroom-template-card
        primary: Měsíčně
        secondary: '{{ states(''sensor.sprcha_2_mesicne'') }}x'
        icon: mdi:numeric-2-circle
        icon_color: blue
      - type: custom:mushroom-template-card
        primary: Ročně
        secondary: '{{ states(''sensor.sprcha_2_rocne'') }}x'
        icon: mdi:numeric-2-circle
        icon_color: red
    columns: 3
  - square: false
    type: grid
    cards:
      - type: custom:mushroom-template-card
        primary: Týdně
        secondary: '{{ states(''sensor.sprcha_3_tydne'') }}x'
        icon: mdi:numeric-3-circle
        icon_color: green
      - type: custom:mushroom-template-card
        primary: Měsíčně
        secondary: '{{ states(''sensor.sprcha_3_mesicne'') }}x'
        icon: mdi:numeric-3-circle
        icon_color: blue
      - type: custom:mushroom-template-card
        primary: Ročně
        secondary: '{{ states(''sensor.sprcha_3_rocne'') }}x'
        icon: mdi:numeric-3-circle
        icon_color: red
    columns: 3
  - square: false
    type: grid
    cards:
      - type: custom:mushroom-template-card
        primary: Týdně
        secondary: '{{ states(''sensor.sprcha_4_tydne'') }}x'
        icon: mdi:numeric-4-circle
        icon_color: green
      - type: custom:mushroom-template-card
        primary: Měsíčně
        secondary: '{{ states(''sensor.sprcha_4_mesicne'') }}x'
        icon: mdi:numeric-4-circle
        icon_color: blue
      - type: custom:mushroom-template-card
        primary: Ročně
        secondary: '{{ states(''sensor.sprcha_4_rocne'') }}x'
        icon: mdi:numeric-4-circle
        icon_color: red
    columns: 3
  - type: custom:mushroom-template-card
    primary: Celkový roční součet spuštění
    secondary: '{{ states(''sensor.sprchy_muzi_celkem'') }}x'
    icon: mdi:chart-bar-stacked
    icon_color: yellow
Leave a Comment