button-card icon indicating copy to clipboard operation
button-card copied to clipboard

after use browser_mod,use entity_picture error

Open flamestsui opened this issue 1 year ago • 3 comments

Checklist

  • [ √] I updated the card to the latest version available
  • [ ] I cleared the cache of my browser

Describe the bug ButtonCardJSTemplateError: TypeError: Cannot read properties of undefined (reading 'state') in 'if (entity.state == "on") return "/local/house/samba.png"; else return "/local/house/samba_clo...' Ti.eval (/hacsfiles/button-card/button-card.js:434:2161) Ti._evalTemplate (/hacsfiles/button-card/button-card.js:434:2257) Ti._getTemplateOrValue (/hacsfiles/button-card/button-card.js:434:2877) /hacsfiles/button-card/button-card.js:559:2699 l (/hacsfiles/button-card/button-card.js:559:2641) /hacsfiles/button-card/button-card.js:559:2681 l (/hacsfiles/button-card/button-card.js:559:2641) /hacsfiles/button-card/button-card.js:559:2681

Version of the card Version: 4.1.2

To Reproduce This is the configuration I used:

See Attachment

button.txt Screenshots If applicable, add screenshots to help explain your problem.

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

Desktop (please complete the following information):

  • Browser [Chrome]
  • Version [128.0.6613.85]

Additional context Add any other context about the problem here.

flamestsui avatar Aug 29 '24 02:08 flamestsui

I've got a similar issue with button card that started after the September HA update.

dkirby-ms avatar Sep 07 '24 15:09 dkirby-ms

Same here

Homeboy05 avatar Sep 12 '24 13:09 Homeboy05

Same here!

Just updated to 2024.9.1 from 2024.8.3 yesterday. After that the card wasnt loaded on either browser or the companion app. A google search and older issues here seem to link this to the availability of the hass object. In the issues I found here it seems that it requires some changes in the depths of button-card. Unfortunately I am not much of a programming guy who could do that.

Would really appreciate any insight that might help.

Beste regards, André

riegera2412 avatar Sep 13 '24 12:09 riegera2412

Hi, checking if this is still an issue. Make sure you are running the latest Browser Mod.

dcapslock avatar Aug 15 '25 22:08 dcapslock

This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Sep 06 '25 02:09 github-actions[bot]

This issue was closed because it has been stalled for 28 days with no activity.

github-actions[bot] avatar Sep 14 '25 02:09 github-actions[bot]