While working on a card that has the ability to plot a graph (which didn’t exist), I implemented this functionality in to a rain forecast graph. In the Netherlands we have Buienalarm and Buienradar as a service for such functionality and I wanted to have this integrated within Home Assistant. The outcome of this is the Neerslag Card.
The Neerslag card has the ability to show the rain forcast of Buienalarm and/or Buienradar in one graph.
The usage of the Neerslag card currently consists out 2 actions 1) The actual card 2) Setting up custom sensors in configuration.yaml.
While the installation proces is pretty straightforward, I am looking to see if I can simplify this by creating one complete package (plug-and-play / home-assistant micro app). Most likely a first step would be to create a custom integration for the custom sensors.
The Neerslag Card repository is compatible with HACS so you can add the GIT repository as a custom HACS repository. I also created a request to have the Neerslag Card added to HACS itself.
Is this also working outside The Netherlands? It seems it’s not working in Belgium?
I see it uses a .nl website reference for generating the sensors in configuration.yaml.
Changing these website references to .be is not working as the sensors mention : Onbekend.
I have not tested this outside of the Netherlands. However I think these services are also available in Belgium. I see you made a mistake with the setup of the sensors. You also need to replace the <> characters.
I have installed this Card via HACS. However after a few minutes, I have seen that the contents of the graph has been disappeared. I have checked the logbook and have seen the errors below:
@_Mitch07 currently that is not possible. I will probably make the colors configurable later on. Once other activities have been completed and the card has become more stable
You might also want to tryout the Neerslag App instead of the Neerslag Card. It has not been released yet to HACS, however you can manual import it and use it. The Neerslag App includes the Neerslag Card with sensors.
Hi, I see the following warning in the HA logbook: Template variable warning: ‘None’ has no attribute ‘last_changed’ when rendering ‘last_changed: {{states.sensor.neerslag_buienradar_regen_data.last_changed}}’. The graph is not displayed. I have reinstalled the Card via HACS and restarted the system, however still see the warning above. Can anybody help me to show the graph again? Thanks!
If the sensors do not work, then the card might remain blank. No data = no graph to be displayed. Currently the Neerslag Card does not explicitly inform you of this (i.e. there is no information message). However, in developer tools you can look up the sensors and check if there is data present. If there is data present and the card still remains blank, please inform me.
Also be sure to fetch the latest updates of the Neerslag Card. I recommend you to migrate to the Neerslag App.
Great! This is what I was waiting for quite a long time. Thanks for making this! I have it running now for a few hours and see some attention points:
As others mentioned, 2 colors would be great. I now simply have 2 graphs on my page.
Quite often at least one of the graphs is not showing and sometimes the data seems to be a bit old.
It seems to be a bit heavy on system resources. The average CPU usage after installation seems to consistently be a bit higher than before installation (this might also be caused by the update of another custom component which I updated at the same time)
55 errors and warnings in the log in just 13 hours:
@Plevuus, the timeouts are typically related to 1) Home Assistant being slow (or busy with other stuff - during start-up for example) 2) the weather service not responding or responding fast enough. 3) your internet connection not being stable.
The only thing I can do is to increase the timeout threshold or hide the error message.
The error regarding the card not always getting displayed should now be fixed with the latest update (version 2021.04.08.1). Make sure to refresh your page (shift + F5).
I encounter the problem when having the Buienradar_Regen_Data sensor enabled
the already installed Weather.MyCity forecast isn’t working anymore.
installed via HACS with latest updates
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.
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.