custom-cards / canvas-gauge-card

The card makes it possible to use gauges from https://canvas-gauges.com/
173 stars 25 forks source link

TypeError: hass.states[entityId] is undefined in HA 103.0 #14

Closed garyak closed 4 years ago

garyak commented 4 years ago

Error in HA 0.103.0 prevents loading of the gauge cards.

Thread) [frontend.js.latest.201912041] http://internal_IP/community_plugin/canvas-gauge-card/canvas-gauge-card.js:201:9 TypeError: hass.states[entityId] is undefined
2019-12-11 15:32:39 ERROR (MainThread) [frontend.js.latest.201912041] http://internal_IP/community_plugin/canvas-gauge-card/canvas-gauge-card.js:201:9 TypeError: hass.states[entityId] is undefined
2019-12-11 15:44:28 ERROR (MainThread) [frontend.js.latest.201912041] http://external_IP/community_plugin/canvas-gauge-card/canvas-gauge-card.js:201:44 TypeError: undefined is not an object (evaluating 'hass.states[entityId].state')
2019-12-11 15:44:28 ERROR (MainThread) [frontend.js.latest.201912041] http://external_IP/community_plugin/canvas-gauge-card/canvas-gauge-card.js:201:44 TypeError: undefined is not an object (evaluating 'hass.states[entityId].st

Installed through HACS.

garyak commented 4 years ago

Error was due to entity_ID error of displayed sensor, not the card itself.