UI-Lovelace-Minimalist / UI

UI-Lovelace-Minimalist is a "theme" for HomeAssistant
https://ui-lovelace-minimalist.github.io/UI/
Other
1.57k stars 421 forks source link

Custom Cards are not rendering #1070

Open towerclimber87 opened 1 year ago

towerclimber87 commented 1 year ago

Version 1.1.6 Custom cards are not rendering. Revert back to 1.1.5-hotfix does not solve the issue

My config:

      - type: "custom:button-card" 
        entity: "camera.blueiris_front_door"
        template: "custom_card_camera"
        show_icon: false #True if you set ulm_custom_card_camera_title: true
        variables:
            ulm_custom_card_camera_title: false
            ulm_custom_card_camera_name: "name"
            ulm_custom_card_camera_label: "label"  

          - type: "custom:button-card"
            entity: lock.house
            template: "custom_card_eraycetinay_lock"
            name: "House"
            variables:
              ulm_custom_card_eraycetinay_lock_tap_control: true
              ulm_custom_card_eraycetinay_lock_door_open: binary_sensor.front_entry_door

The error: Button-card template 'custom_card_camera' is missing! Button-card eraycetinary_lock_language_variables' is missing!

I

Anyone has an idea what I am missing? a couple of days ago this was working correct.

V4n1X commented 1 year ago

Can confirm this, not loading this card, my config:

  - type: "custom:button-card"
    entity: "camera.outdoor"
    template: "custom_card_camera"
    show_icon: true #True if you set ulm_custom_card_camera_title: true
    variables:
      ulm_custom_card_camera_title: true
      ulm_custom_card_camera_name: "name"
      ulm_custom_card_camera_label: "label"
towerclimber87 commented 1 year ago

Still no change.

On Mon, Oct 31, 2022 at 1:25 PM V4n1X @.***> wrote:

Can confirm this, not loading this card, my config:

  • type: "custom:button-card" entity: "camera.outdoor" template: "custom_card_camera" show_icon: true #True if you set ulm_custom_card_camera_title: true variables: ulm_custom_card_camera_title: true ulm_custom_card_camera_name: "name" ulm_custom_card_camera_label: "label"

— Reply to this email directly, view it on GitHub https://github.com/UI-Lovelace-Minimalist/UI/issues/1070#issuecomment-1297495965, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFRVXKRMEBRVQSWAT4CXD7LWGAFLDANCNFSM6AAAAAARSMNS7E . You are receiving this because you authored the thread.Message ID: @.***>

V4n1X commented 1 year ago

I found out sth, if i load a normal [picture entity card](type: picture-entity) first to load the camera stream and then switch where the custom camera card is, it gets shown without problems.

KGS501 commented 1 year ago

I have the same issue. But the behaviour is all over the place. Sometimes, the card wont load at all, sometimes it works, sometimes it only works on my mobile phone, and sometimes only the picture-entity part of the card is missing (see picture). image

Maybe the original author of this card can help? @Eltarius

KGS501 commented 1 year ago

I found out sth, if i load a normal [picture entity card](type: picture-entity) first to load the camera stream and then switch where the custom camera card is, it gets shown without problems.

I can reproduce this behaviour aswell. Furthermore, the custom_card_camera card is working flawlessly, if you load a default picture-entity card somewhere in the dashboard where the custom_card_camera card is.

That means you can do a dirty fix by rendering an invisible picture-entity card somewhere:

         - type: picture-entity
            entity: camera.your_camera
            style: |
              ha-card {
                min-height: 0px !important;
                height: 0px !important;
                opacity: 0;
              }
          - type: "custom:button-card"
            entity: "camera.your_camera"
            template: "custom_card_camera"
            show_icon: true
            variables:
              ulm_custom_card_camera_title: true
              ulm_custom_card_camera_name: "name"
              ulm_custom_card_camera_label: "label"
dougmaitelli commented 5 months ago

Still broken as January 2024.

Edit: Was able to fix, apparently card doesn't render if battery variable is undefined

famahmou commented 5 months ago

same issue as @towerclimber87

Button-card template 'custom_card_camera' is missing! Button-card eraycetinary_lock_language_variables' is missing!