Neerslag Card (rain forecast) (Buienalarm and/or Buienradar)

keep getting the following errors in logbook. Any ideas how to fix this?

2021-05-27 13:47:27 ERROR (MainThread) [frontend.js.latest.202105040] http://192.168.1.101:8123/hacsfiles/home-assistant-neerslag-card/neerslag-card.js:683:24 NotSupportedError: Cannot define multiple custom elements with the same tag name
2021-05-27 13:52:36 ERROR (SyncWorker_21) [homeassistant.components.command_line] Timeout for command: python3 -c "import requests; import json; import random; dataRequest = requests.get('https://cdn-secure.buienalarm.nl/api/3.4/forecast.php?lat=51.848&lon=4.159&region=nl&unit=mm%2Fu&c='+str(random.randint(0,999999999999999)) ).text; dataRequest = dataRequest.replace('\r\n',' '); data = '{\"data\":'+dataRequest+'}'; print(data);"

Regarding the timeout. You can ignore it. It is because the external service is failing to respond in time (custom sensors). So this is inherent to how Home Assistant works.

You can also switch from the neerslag-card to the neerslag-app (currently not part of the default HACS repository - requires some manual actions).

For the first error message, I don’t know. Is this something you can reproduce? This might be related to your browser. Do you experience any on-screen errors? If not, also just ignore it. It however has got nothing to do with the timeout error message.

1 Like

Thanks @aex351 for the great card. I’ve installed the Neerslag App. For whatever reason, the card does not work within the home assistant app, but on the same phone it works within the browser.

I am getting the “custom element doesn’t exist error”. Tried 2 phones and both have the same problem.

Anyone experiencing the same?

No, for me both the Neerslag App and the Neerslag Card (don’t use both) work good in the mobile Home Assistant app (Android). As far as I know the Home Assistant app basically uses an internal web browser.

The Webview can be outdated and might not support the functions used by the card. However, our phones are up 2 date so that couldn’t be the problem.

In the end, I completely reinstalled the app and that solved my problem. Still don’t get why this was necessary, but at least it got resolved :slight_smile:

@aex351, FYI, the neerslag-card was causing issues for me since 2021.6.0. see:

and
History bar-graphs not showing correctly · Issue #9495 · home-assistant/frontend · GitHub.

The issues are gone since I removed the card integration (only removing the card did not solve the issue). I’ve not tried the neerslag-app yet.

Really like the look of the integration! I’m using the app and am based in Ireland - but ??? do not return any data - when I check in developer I get the below message.
I’ve set the co-ords to my location, and tried with setting the option for using the HA co-ords - but to no avail.
I do however get data returned for other entities e.g. the barometer returns information - are these limited to NL & BE, or am I missing something in the setup?

Thanks in advance for any assistance!

@KingFisher, the app uses Dutch data providers (Buienalarm and Buienradar). Originally they only supported the Netherlands and later on Belgium and Germany got added. I noticed now that Buienalarm also seems to supports the UK, Italy and Spain. That is new information to me. I will have a look to see what options there are.

If you happen to know of an Irish data provider that I can integrate, please let me know.

thanks for the response. There is just one (AFAIK) specific to Ireland - the integration is here but the entities are very limited.

I can get date for my location from OpenWeatherAll - could that be integrated?

If you need anything thing else, or if I can help further troubleshoot, and if you have the time let me know.

thanks in advance

@KingFisher, it doesn’t need to be an integration that already exists within Home Assistant. If you know of any website/service that provides such insight in Ireland I will happily have a look for you, to see if I can get it integrated.

Met Éireann provides a rainfall forecast on an hourly level I see. Do you happen to have one that provides it on minute base?

Meanwhile while typing this. It seems Rain Limerick rain radar Limerick - realtime rain in Limerick - predict floodings Limerick uses BuienRadar (looking at the URL).

Could it be that Buienradar (sensor) is already working in Ireland, however Buienalarm (sensor) is not?

So If I use this URL it seems to return correct data for Dublin using Buienalarm.
And if I use this URL for Buienradar also seems to give correct data.
Not sure if this helps in any way? Let me know if you need any other info, or have questions.
thanks again!

Well, I can confirm that both Buienradar and Buienalarm work in Ireland. I tested this with Limerick. Both services might not be present in your city, therefor you will get the error message ‘not in coverage’.

It could also mean that you have no set-up either the Neerslag Card (standalone w/ custom sensors) or the Neerslag App (all-in-one) correctly. Please read the readme file for detailed information. If your city is within the service area I think there must be something wrong with the coordinates your entered. Make sure to use dot (.) instead of comma (,).

thanks aex351, am using the app, and have tested with the co-ordinates in the URL. Have read the readme file, and cannot see anything that I missed…Have dots in the Lat. & Lon.
Will continue to try and get it working, and will report back!

1 Like

Hey. excellent addon! I have it working but i got a question:

  1. Whats the ‘random’ number when i add the sensor ad entity to a card?
  2. How can i make an automation based on the precipitation data inside this sensor?

Maybe a stupid question, but what is the exact meaning of the main state values of the sensors?

  • Average rain over certain interval?
  • Total rain over certain interval?
  • Actual rain?
  • Other?

Or have I missed this somewhere above?

  1. The random number is to ensure your location does not get blocked from the server.
  2. You will need to create your own custom sensor for that if you want to make use of the the data.

However, I recommend to stop using the Neerslag Card - as this requires a lot of manual setup - and migrate to the Neerslag App. It is now available in HACS.

If you are using the Neerslag Card with the custom sensor and are using the provided template. Then it will display the timestamp of when the sensor was last updated. This is helpful when debugging. Because of this, each sensor update with data will get stored in Home Assistant history logs. If you don’t want this, then there is an option to make the state static, but setting a fixed value.

I thought, I’d add my question to the this thread, so it’s all under the same header…
I installed the Neerslag app via HACS. It then showed up under Configuration → Integrations and I added my co-ordinates.
However, when I wanted to add the Neerslag Card to Lovelace, I was not able to find it in the list. Did I miss a step?
Note:
On the filesystem, I see neerslag-card.js under homeassistant/custom_components/neerslag/hoe-assistant-neerslag-card
Any pointers ?
thanks,
chrisV

Sounds like you followed the installation instructions correctly, with a minor note: you might want to restart your Home Assistant after installing the integration and refreshing your browser cache. That should do the trick.

Edit: I opened a dedicated topic for the Neerslag App:

1 Like

Thank you so much for this great App @aex351 !
It is a very useful addition to HA
I had to clear the browser-cache ! (thank you to @_Mitch07 for pointing this out)
You may consider adding this in the Readme ( :wink: )
Another note regarding the Readme in the git repo:
Not having used HACS that much (yet), it took me quite a while to figure out what I had to do at this step:
Add the Neerslag App as an Integration in Home Assistant (config/integration);
I was looking at subdirectories in the file system. It turned out, I just had to go to “Configurations” → “Integrations” → “Add Integration” → and find the HACS integration here (!). I know, it is not easy to write fool-proof documentation for dummies like myself.
Thank you again for this great app
ChrisV

Huh? Now I’m confused. I’m talking about these values:
image
image