Error with ButtonCardJSTemplateError
Closed this issue · 2 comments
valerix85 commented
hello, this morning going to check the irrigation dashboard I found this error:
ButtonCardJSTemplateError: TypeError: Cannot read property 'state' of undefined in 'var statestr = (entity === undefined || entity.state === undefined) ? 'undefined' : entity.state;
...'
at HTMLElement.eval (eval at _evalTemplate (https://trombettahouse.duckdns.org:8123/hacsfiles/button-card/button-card.js:421:9119), <anonymous>:6:50)
at HTMLElement._evalTemplate (https://trombettahouse.duckdns.org:8123/hacsfiles/button-card/button-card.js:421:9203)
at HTMLElement._getTemplateOrValue (https://trombettahouse.duckdns.org:8123/hacsfiles/button-card/button-card.js:421:9788)
at HTMLElement._buildName (https://trombettahouse.duckdns.org:8123/hacsfiles/button-card/button-card.js:421:12983)
at HTMLElement._buttonContent (https://trombettahouse.duckdns.org:8123/hacsfiles/button-card/button-card.js:495:48)
at HTMLElement._cardHtml (https://trombettahouse.duckdns.org:8123/hacsfiles/button-card/button-card.js:475:18)
at HTMLElement.render (https://trombettahouse.duckdns.org:8123/hacsfiles/button-card/button-card.js:421:6740)
at HTMLElement.update (https://trombettahouse.duckdns.org:8123/hacsfiles/button-card/button-card.js:1:19896)
at HTMLElement.performUpdate (https://trombettahouse.duckdns.org:8123/hacsfiles/button-card/button-card.js:1:16782)
at HTMLElement._enqueueUpdate (https://trombettahouse.duckdns.org:8123/hacsfiles/button-card/button-card.js:1:16434)
valerix85 commented
Probably here we have a solution
https://community.home-assistant.io/t/my-garden-irrigation/99686/1263