Newer
Older
homeassistant_config / dashboards / minimal / views / hjem.yaml
title: Hjem
type: custom:masonry-layout
layout:
  width: 300
  max_cols: 1
cards:
  - type: custom:stack-in-card
    cards:
      - type: custom:decluttering-card
        template: title_template
        variables:
          - title: Velkommen, {{user}}
          - font-size: "1.5rem"

      - type: custom:mushroom-chips-card
        chips:
          - type: template
            icon: mdi:lightbulb
            content: Lys
            icon_color: yellow
            tap_action:
              action: navigate
              navigation_path: lys
          - type: template
            icon: mdi:heating-coil
            content: Varme
            icon_color: red
            tap_action:
              action: navigate
              navigation_path: varme
          - type: template
            icon: mdi:flash
            content: El
            icon_color: green
            tap_action:
              action: navigate
              navigation_path: el
        alignment: center
        style: |
          :host  {
            padding-bottom: 1em;
          }

  - type: custom:gap-card
    height: 10

  - type: custom:stack-in-card
    mode: horizontal
    cards:
      - type: custom:mushroom-person-card
        entity: person.rolf_bagge
      - type: custom:mushroom-person-card
        entity: person.berit_bagge

  - type: custom:gap-card
    height: 10

  - type: gauge
    name: Forbrug
    entity: sensor.elmaler_power
    min: 0
    max: 9000
    needle: true

  - type: custom:room-card
    title: Udenfor
    entity: switch.udendors_lyskaede_plug
    icon: mdi:string-lights
    show_icon: true
    tap_action:
      action: navigate
      navigation_path: udenfor
    info_entities:
      - entity: sensor.netatmo_simstrup_weather_indoor_outdoor_temperature
        show_icon: false
      - entity: sensor.netatmo_simstrup_weather_indoor_outdoor_humidity
        show_icon: false
    entities:
      - entity: sensor.filtered_igrill_probe_1
        show_icon: true
        show_state: true
        name: Grill (Gennemsnit)
        icon: "mdi:grill"

      - entity: sensor.igrill_mini_probe_1
        show_icon: true
        show_state: true
        name: Grill (Direkte)
        icon: "mdi:grill"

      - entity: sensor.time_to_done
        name: Tid Tilbage
        show_state: true
        show_icon: true
        icon: mdi:thermometer-check

      - entity: sensor.igrill_temperature_change
        name: Temp ændring
        show_state: true
        show_icon: true
        icon: mdi:thermometer-chevron-up
    card_mod:
      style: |
        ha-card .entities-info-row {
          padding: 5px 20px 5px;
        }

  - type: custom:gap-card
    height: 10

  - type: custom:room-card
    title: Køkken
    entity: light.kokken_alle_gruppe
    icon: mdi:stove
    show_icon: true
    tap_action:
      action: navigate
      navigation_path: kokken
    info_entities:
      - entity: sensor.wavin9000_kokken_temperature
        show_icon: false
      - entity: sensor.netatmo_simstrup_weather_indoor_temperature
        show_icon: false
      - entity: sensor.netatmo_simstrup_weather_indoor_humidity
        show_icon: false
    entities:
      - entity: sensor.mikroovn_plug_power
        hide_if:
          conditions:
            - condition: below
              value: 10
        icon:
          template:
            icon: >
              return "mdi:microwave";
            styles: |
              if (entity.state > 10 && entity.state < 50) return "color: yellow";
              return "color: white";
        show_icon: true
        show_state: true
        name: Mikroovn
      - entity: sensor.opvaskemaskine_energi
        hide_if:
          conditions:
            - condition: below
              value: 5
        show_icon: true
        show_state: true
        name: Opvasker
        icon:
          template:
            icon: >
              return "mdi:dishwasher";
            styles: |
              return "color: white";
    card_mod:
      style: |
        ha-card .entities-info-row {
          padding: 5px 20px 5px;
        }
  - type: custom:room-card
    title: Stue
    entity: light.stue_gruppe
    icon: mdi:sofa
    show_icon: true
    tap_action:
      action: navigate
      navigation_path: stue
    info_entities:
      - entity: sensor.wavin9000_stue_temperature
        show_icon: false
      - entity: sensor.temp2_temperature
        show_icon: false
      - entity: sensor.temp2_humidity
        show_icon: false
    entities:
      - entity: sensor.tv_baenk_energi
        name: Tv Bænk
        hide_if:
          conditions:
            - condition: below
              value: 1
        icon:
          template:
            icon: >
              return "mdi:television";
            styles: |
              return "color: white";
        show_icon: true
        show_state: true
        tap_action:
          action: more-info
          entity: switch.tv_baenk
      - entity: sensor.computer_energi
        name: Computer
        hide_if:
          conditions:
            - condition: below
              value: 1
        icon:
          template:
            icon: >
              return "mdi:desktop-classic";
            styles: |
              return "color: white";
        show_icon: true
        show_state: true
    card_mod:
      style: |
        ha-card .entities-info-row {
          padding: 5px 20px 5px;
        }

  - type: custom:room-card
    title: Bryggers
    entity: light.bryggers_gruppe
    icon: mdi:wardrobe
    show_icon: true
    tap_action:
      action: navigate
      navigation_path: bryggers
    info_entities:
      - entity: sensor.wavin9000_bryggers_temperature
        show_icon: false
    entities:
      - entity: sensor.teknikskab_energi
        name: Teknik
        icon:
          template:
            icon: >
              return "mdi:server";
            styles: |
              return "color: white";
        show_icon: true
        show_state: true
      - entity: binary_sensor.bryggers_vindue_contact
        name: Vindue
        hide_if:
          conditions:
            - condition: equals
              value: "off"
        icon: "mdi:window-open"
        show_icon: true
        show_state: true
    card_mod:
      style: |
        ha-card .entities-info-row {
          padding: 5px 20px 5px;
        }

  - type: custom:room-card
    title: Niels
    entity: light.niels_gruppe
    icon: mdi:teddy-bear
    show_icon: true
    tap_action:
      action: navigate
      navigation_path: niels
    info_entities:
      - entity: sensor.wavin9000_niels_vaerelse_temperature
        show_icon: false
      - entity: sensor.temp1_temperature
        show_icon: false
      - entity: sensor.temp1_humidity
        show_icon: false
    entities:
    card_mod:
      style: |
        ha-card .entities-info-row {
          padding: 5px 20px 5px;
        }

  - type: custom:room-card
    title: Jens
    entity: light.jens_gruppe
    icon: mdi:teddy-bear
    show_icon: true
    tap_action:
      action: navigate
      navigation_path: jens
    info_entities:
      - entity: sensor.wavin9000_jens_vaerelse_temperature
        show_icon: false
      - entity: sensor.temp4_temperature
        show_icon: false
      - entity: sensor.temp4_humidity
        show_icon: false
    entities:
    card_mod:
      style: |
        ha-card .entities-info-row {
          padding: 5px 20px 5px;
        }

  - type: custom:room-card
    title: Sove
    entity: light.sove_gruppe
    icon: mdi:bed-double
    show_icon: true
    tap_action:
      action: navigate
      navigation_path: sove
    info_entities:
      - entity: sensor.wavin9000_sovevaerelse_temperature
        show_icon: false
      - entity: sensor.temp3_temperature
        show_icon: false
      - entity: sensor.temp3_humidity
        show_icon: false
    entities:
    card_mod:
      style: |
        ha-card .entities-info-row {
          padding: 5px 20px 5px;
        }