UI icon indicating copy to clipboard operation
UI copied to clipboard

Nas card doesnt work

Open NWalledge opened this issue 2 years ago • 4 comments

Describe the bug The nas card for me just shows a state saying off in a box. whatever i do it wont change

To Reproduce Steps to reproduce the behavior:

install nas custom card and use

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem. [] Screenshot_20220504-234112_Home_Assistant

Additional context Add any other context about the problem here.

NWalledge avatar May 05 '22 20:05 NWalledge

Hi,

Try this, edit \config\ui_lovelace_minimalist\custom_cards\custom_card_nas\custom_card_nas.yaml with this code:

---
custom_card_nas:
  template:
    - "blue_no_state"
  tap_action:
    action: "more-info"
  show_label: true
  show_name: true
  show_icon: true
  label: |-
    [[[
        return variables.ulm_custom_card_nas_text + " " + states[variables.ulm_custom_card_nas_sensor].state + variables.ulm_custom_card_nas_unit;
    ]]]
  icon: |-
      [[[
          return "mdi:nas";
      ]]]
  name: |-
      [[[ 
          return "Nas";
      ]]]
  size: "20px"
  styles:
    card:
      - border-radius: "20px"
      - box-shadow: "var(--box-shadow)"
      - padding: "12px"
    img_cell:
      - border-radius: "50%"
      - place-self: "center"
      - width: "42px"
      - height: "42px"
    name:
      - align-self: "end"
      - justify-self: "start"
      - font-weight: "bold"
      - font-size: "14px"
      - margin-left: "12px"
      - filter: "opacity(100%)"
    label:
      - justify-self: "start"
      - align-self: "start"
      - font-weight: "bolder"
      - font-size: "12px"
      - filter: "opacity(40%)"
      - margin-left: "12px"
    grid:
      - grid-template-areas: "'i n' 'i l'"
      - grid-template-columns: "min-content auto min-content"
      - grid-template-rows: "min-content min-content"

I clean this code, and I push a commit soon. ;)

Eltarius avatar May 16 '22 21:05 Eltarius

Still returns the same issue

NWalledge avatar May 17 '22 15:05 NWalledge

oh sorry no it works now

NWalledge avatar May 17 '22 15:05 NWalledge

Glad it works ;)

Eltarius avatar May 17 '22 17:05 Eltarius