aex351 / home-assistant-neerslag-app

Neerslag app for Home Assistant. All-in-one package (Sensors + Card).
62 stars 18 forks source link

Installed app, card not shown, exception on console #41

Closed airmaxx closed 1 year ago

airmaxx commented 1 year ago

I've installed the Neerslag App via HACS and added Neerslag Card to my dashboard. Yet the card is not shown. So I checked for errors in the developer console of Chrome and found the following. Sensor sensor.neerslag_buienalarm_regen_data and sensor.neerslag_buienradar_regen_data are there and being filled with data.

10neerslag-card.js?cache=1673211126.6344237:822 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'forEach')
    at CombiCard.formatBuienalarmDataAndere (neerslag-card.js?cache=1673211126.6344237:822:15)
    at CombiCard.prepareData (neerslag-card.js?cache=1673211126.6344237:731:16)
    at CombiCard.prepareChartDataSets (neerslag-card.js?cache=1673211126.6344237:684:22)
    at CombiCard.render (neerslag-card.js?cache=1673211126.6344237:242:11)
    at CombiCard.update (lit-element.js?module:6:649)
    at CombiCard.performUpdate (reactive-element.js?module:6:5735)
    at CombiCard.scheduleUpdate (reactive-element.js?module:6:5334)
    at CombiCard._$Ej (reactive-element.js?module:6:5233)
airmaxx commented 1 year ago

Looking into entities at Developer Tools of hass, I think I found the reason. I tought this would also work outside of the Netherlands (Germany in this case).

[sensor.neerslag_buienalarm_regen_data](http://192.168.178.120:8123/developer-tools/state#)
data: 
success: false
reason: not in coverage
icon: mdi:weather-cloudy
friendly_name: neerslag_buienalarm_regen_data
[sensor.neerslag_buienradar_regen_data](http://192.168.178.120:8123/developer-tools/state#)
data: Not found: location must be inside the Netherlands or Belgium. icon: mdi:weather-cloudy friendly_name: neerslag_buienradar_regen_data
aex351 commented 1 year ago

Unfortunately Germany is currently not supported. If there are other API's available that support other countries (e.g. Germany) it would be nice to get it implemented.