Untitled

 avatar
unknown
plain_text
2 years ago
15 kB
7
Indexable
  - theme: Backend-selected
    title: Voda
    path: voda
    icon: mdi:water-pump
    layout:
      width: 300
      max_cols: 3
    badges: []
    cards:
      - type: vertical-stack
        cards:
          - square: false
            columns: 2
            type: grid
            cards:
              - type: custom:flex-horseshoe-card
                entities:
                  - entity: sensor.tlak_v_kpa
                    area: tlak
                    name: Tlak
                    decimals: 1
                    tap_action:
                      action: more-info
                  - entity: sensor.prietok_vody
                    area: prietok
                    icon: mdi:pipe
                    tap_action:
                      action: more-info
                show:
                  horseshoe_style: lineargradient
                layout:
                  states:
                    - id: 0
                      entity_index: 0
                      xpos: 52
                      ypos: 40
                      styles:
                        - font-size: 2.7em;
                    - id: 1
                      entity_index: 1
                      xpos: 40
                      ypos: 63
                      styles:
                        - text-anchor: start;
                        - font-size: 1.7em;
                  hlines:
                    - id: 0
                      xpos: 50
                      ypos: 48
                      length: 40
                      styles:
                        - stroke: var(--primary-text-color);
                        - stroke-width: 5;
                        - stroke-linecap: round;
                        - opacity: 0.7;
                  icons: null
                horseshoe_scale:
                  min: 0
                  max: 5
                color_stops:
                  '0': blue
                  '4.2': red
              - type: custom:flex-horseshoe-card
                entities:
                  - entity: sensor.celkova_spotreba
                    area: tlak
                    name: Spotreba
                    decimals: 1
                    tap_action:
                      action: more-info
                  - entity: sensor.prietok_vody
                    area: prietok
                    icon: mdi:pipe
                    tap_action:
                      action: more-info
                show:
                  horseshoe_style: lineargradient
                layout:
                  states:
                    - id: 0
                      entity_index: 0
                      xpos: 52
                      ypos: 40
                      styles:
                        - font-size: 2.7em;
                  hlines:
                    - id: 0
                      xpos: 50
                      ypos: 48
                      length: 40
                      styles:
                        - stroke: var(--primary-text-color);
                        - stroke-width: 5;
                        - stroke-linecap: round;
                        - opacity: 0.7;
                  icons: null
                  names:
                    - id: 0
                      entity_index: 0
                      xpos: 50
                      ypos: 63
                      styles:
                        - font-size: 1.2em;
                horseshoe_scale:
                  min: 0
                  max: 400
                color_stops:
                  '50': green
                  '100': yellow
                  '200': orange
                  '300': red
      - type: vertical-stack
        cards:
          - type: custom:mushroom-title-card
            subtitle: Spotreba vody
          - square: false
            columns: 2
            type: grid
            cards:
              - type: custom:mushroom-entity-card
                entity: sensor.voda_hodina
                name: Hodinová
                icon: mdi:calendar-clock
                icon_color: red
                layout: horizontal
              - type: custom:mushroom-entity-card
                entity: sensor.voda_den
                name: Denná
                icon: mdi:calendar-today
                icon_color: green
                layout: horizontal
              - type: custom:mushroom-entity-card
                entity: sensor.voda_tyzden
                name: Týždenná
                icon: mdi:calendar-week
                layout: horizontal
              - type: custom:mushroom-entity-card
                entity: sensor.voda_mesiac_zao
                name: Mesačná
                icon: mdi:calendar-month
                icon_color: purple
                layout: horizontal
              - type: custom:mushroom-entity-card
                entity: sensor.voda_rok
                name: Ročná
                icon_color: blue-grey
                layout: horizontal
              - type: custom:mushroom-entity-card
                entity: button.reset_pocitadla
                icon: mdi:gesture-tap-button
                name: Reset
                secondary_info: none
                icon_color: orange
                tap_action:
                  action: call-service
                  service: button.press
                  service_data: {}
                  target:
                    entity_id: button.reset_pocitadla
                layout: horizontal
          - type: custom:mushroom-title-card
            subtitle: Senzory
          - square: false
            columns: 2
            type: grid
            cards:
              - type: custom:mushroom-template-card
                primary: Tlak {{ states('sensor.tlak_v_kpa') }} kPa
                secondary: |
                  {{ states('sensor.tlak_vody') }} Pa
                icon: mdi:gauge
                layout: horizontal
                icon_color: blue
                entity: sensor.tlak_vody
                tap_action:
                  action: more-info
                multiline_secondary: true
              - type: custom:mushroom-template-card
                primary: |-
                  {% if is_state("binary_sensor.vodaren_water_leak", "on") %}
                  Pozor voda
                  {% else %}
                  Sucho
                  {% endif %}
                secondary: Bateria {{ states('sensor.vodaren_battery') }} %
                layout: horizontal
                icon_color: |-
                  {% if is_state("input_boolean.mailbox", "on") %}
                   red
                  {% endif %}
                entity: binary_sensor.vodaren_water_leak
                tap_action:
                  action: more-info
                icon: |
                  {% if is_state("binary_sensor.vodaren_water_leak", "on") %}
                  mdi:water-outline
                  {% else %}
                  mdi:water-off-outline
                  {% endif %}
              - type: custom:mushroom-entity-card
                entity: counter.vodaren_pocitadlo
                layout: horizontal
                icon: mdi:cog-counterclockwise
                secondary_info: name
                primary_info: state
              - type: custom:mushroom-entity-card
                entity: binary_sensor.normal_tlak_v_nadrzke
                icon: ''
                icon_color: green
                name: Norm. tlak v nadržke
                tap_action:
                  action: more-info
                layout: horizontal
          - type: custom:mushroom-title-card
            subtitle: Notifikacie a automatizácie
          - square: false
            columns: 3
            type: grid
            cards:
              - type: custom:mushroom-entity-card
                entity: automation.vodaren
                icon: mdi:cellphone-information
                icon_color: amber
                name: Not. únik vody
                tap_action:
                  action: toggle
                layout: vertical
              - type: custom:mushroom-entity-card
                entity: automation.reset_pocitadla_o_00_00
                icon: mdi:water-check
                icon_color: amber
                name: Reset o 00:00
                tap_action:
                  action: toggle
                layout: vertical
              - type: custom:mushroom-entity-card
                entity: automation.pocitadlo_vodaren_reset
                icon: mdi:counter
                icon_color: amber
                name: Počitadlo vodáreň
                tap_action:
                  action: toggle
                layout: vertical
      - type: horizontal-stack
        cards:
          - type: custom:mini-graph-card
            name: Studená voda 24h
            hours_to_show: 24
            entities:
              - entity: sensor.teplota_studena_voda
                color: cyan
              - entity: input_number.nighttime
                color: slategray
                name: Night
                show_line: false
                show_points: false
                show_legend: false
                y_axis: secondary
            show:
              extrema: true
              icon_adaptive_color: true
              fill: fade
              average: true
            animate: true
            hour24: true
            line_width: 2
            points_per_hour: 2
          - type: custom:mini-graph-card
            name: Teplá voda 12h
            hours_to_show: 12
            entities:
              - entity: sensor.bojler_voda
                color: red
              - entity: input_number.nighttime
                color: slategray
                name: Night
                show_line: false
                show_points: false
                show_legend: false
                y_axis: secondary
            show:
              extrema: true
              icon_adaptive_color: true
              fill: fade
              average: true
            animate: true
            hour24: true
            line_width: 2
            points_per_hour: 2
      - type: custom:apexcharts-card
        graph_span: 7d
        span:
          end: day
        header:
          show: true
          title: Spotreba vody za 7 dní
        apex_config:
          chart:
            type: area
            height: 250
          stroke:
            show: true
            width: 2
            curve: smooth
          legend:
            show: true
          dataLabels:
            enabled: true
          fill:
            type: gradient
            gradient:
              shadeIntensity: 0.1
              opacityFrom: 0.25
              opacityTo: 1
              inverseColors: true
              stops:
                - 0
                - 90
                - 100
        series:
          - color: rgb(21,102,206)
            entity: sensor.voda_den
            name: Spotreba vody
            float_precision: 0
            type: column
            group_by:
              func: max
              duration: 24h
            show:
              datalabels: true
      - type: custom:apexcharts-card
        graph_span: 1h
        stacked: true
        now:
          show: false
        header:
          show: true
          title: Tlak vodáreň
          show_states: true
          colorize_states: true
        apex_config:
          legend:
            position: bottom
          annotations:
            position: back
            yaxis:
              - 'y': 0
                y2: 2
                strokeDashArray: 0
                fillColor: gray
        yaxis:
          - min: 1.5
            max: ~4.5
        series:
          - entity: sensor.tlak_v_kpa
            type: line
            name: Tlak
            color: red
            opacity: 1
            min: 2
            curve: smooth
            stroke_width: 2
            group_by:
              func: avg
              duration: 30s
      - type: custom:apexcharts-card
        graph_span: 3h
        header:
          show: true
          title: Prietok vody
        apex_config:
          chart:
            type: area
            height: 250
            toolbar:
              show: true
          stroke:
            show: true
            width: 1
            curve: smooth
          legend:
            show: true
          dataLabels:
            enabled: true
          fill:
            type: gradient
            gradient:
              shadeIntensity: 0.1
              opacityFrom: 0.25
              opacityTo: 1
              inverseColors: true
              stops:
                - 0
                - 90
                - 100
        series:
          - color: rgb(50, 205, 50)
            entity: sensor.prietok_vody
            name: € za deň
            type: column
            float_precision: 2
            group_by:
              func: max
              duration: 5m
      - type: vertical-stack
        cards:
          - type: horizontal-stack
            cards:
              - type: vertical-stack
                cards:
                  - type: custom:mushroom-entity-card
                    entity: sensor.nadrz_objem_nadrze
                    layout: horizontal
                    name: Objem
                    secondary_info: name
                    primary_info: state
                    icon_color: red
                  - type: custom:mushroom-entity-card
                    entity: sensor.nadrz_vzdialenost_hladina
                    layout: horizontal
                    name: Vzdialenosť
                    secondary_info: name
                    primary_info: state
                    icon_color: green
                  - type: custom:mushroom-entity-card
                    entity: sensor.nadrz_vyska_hladiny
                    layout: horizontal
                    name: Hladina
                    secondary_info: name
                    primary_info: state
                    icon_color: green
                  - type: custom:mushroom-entity-card
                    entity: sensor.nadrz_teplota_nadrz
                    layout: horizontal
                    name: Teplota
                    secondary_info: name
                    primary_info: state
                    icon_color: blue
              - type: custom:bar-card
                entities:
                  - entity: sensor.nadrz_kapacita_ndre
                    name: Nádrž
                    severity:
                      - color: '#F44336'
                        from: 0
                        to: 20
                      - color: green
                        from: 26
                        to: 70
                      - color: '#0172A5'
                        from: 70
                        to: 100
                        state_color: true
                state_color: true
                direction: up
                height: 160px
                icon: 'off'
Editor is loading...