UI icon indicating copy to clipboard operation
UI copied to clipboard

Custom Cards are not rendering

Open towerclimber87 opened this issue 2 years ago • 7 comments

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.

towerclimber87 avatar Oct 30 '22 17:10 towerclimber87

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"

V4n1X avatar Oct 31 '22 18:10 V4n1X

Still no change. - type: "custom:button-card" entity: "camera.blueiris_back_yard" 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"

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: @.***>

towerclimber87 avatar Nov 01 '22 00:11 towerclimber87

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.

V4n1X avatar Nov 11 '22 17:11 V4n1X

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 avatar Dec 08 '22 14:12 KGS501

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"

KGS501 avatar Dec 08 '22 14:12 KGS501

Still broken as January 2024.

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

dougmaitelli avatar Jan 19 '24 05:01 dougmaitelli

same issue as @towerclimber87

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

famahmou avatar Feb 09 '24 00:02 famahmou