kloggy / HA-Irrigation-Version2

225 stars 55 forks source link

Error with ButtonCardJSTemplateError #35

Closed valerix85 closed 3 years ago

valerix85 commented 3 years ago

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 3 years ago

Probably here we have a solution https://community.home-assistant.io/t/my-garden-irrigation/99686/1263

adizag commented 3 years ago

look @ https://github.com/kloggy/HA-Irrigation-Version2/issues/30