The next_rain_forecast and precipitation should always be the same.
For the other sensors, can you wait for the next rain.
When you restarted HA it started to rain in 2 or 3 minutes, so the forecast_total on the next 15 and 30 minutes are the same…
I totally misunderstood the timeframe setting haha. I thought it would look for the precipitation 10 minutes from now with timeframe=10, and 30 when I set it timeframe=30.
I would like to create a trigger when the precipitation is for example >3mm 10 minutes from now. So not based on average or total.
My thought about the timeframe setting was exactly the same.
I removed the scan_interval and created sensors with 15 min timeframe.
I’ll keep an eye on it.
This above config is in the sensor part of the configuration.
When HA is starting I see in the log that the custom_component buienalarm is starting and that a sensor.buienalarm is created.
2020-10-24 22:11:33 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for buienalarm which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experienc$
…
2020-10-24 22:11:33 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.buienalarm
...
But I don’t see the sensor in my list of available sensors…
In the lovelace screen I see : Entity not available: sensor.buienalarm
I verified if pybuienalarm is installed and yes it is.
Am I doing something wrong?
EDIT
Of course after posting, I saw that the sensor names are sensor.ba_xxxx
Maybe upgrading the docs could be helpful
@evb
I have changed the first post of this topic.
I have added a link to the custom_component repo that has to be installed trough HACS.
I’ve also added the default name in the readme of that repo
Many thanks Giel!
I just want to correct myself as for the average I forgot to multiply by 60 minutes. The correct definition is:
precipitation_forecast_average: The total mentioned above divided by 15 minutes (therefore shown in mm/h) multiplied by 60 minutes.
These are the definitions I created for myself:
- temperature #what is the temperature right now
- precipitation #How hard it is raining right now (shown in mm/h). This is not affected by timeframe.
- precipitation_forecast_average #How much it will rain in total between right now and selected timeframe (in mm).
- precipitation_forecast_total #The total mentioned above divided by timeframe and multiplied by 60 minutes (therefore shown in mm/h)
- next_rain_forecast #-1 means no rain forecast within timeframe, 0 means it is currently raining, N means rain is forecast within N minutes. Impact of timeframe: if you set timeframe to 15 and it will rain in 16 minutes, the value will be -1 and then become 15 one minute later.
I have just installed this component a few days ago and noticed something odd.
It almost seems like the next_rain_forecast is always showing a value of “2021 min.” when rain is forecasted and it shows “Unknown” when there is no rain.
Hi I`m really new with this. I have installed buienalarm via ssh and the custom component via hacs. I also added the sensor template in configuration.yaml however am getting an error on restart:
ValueError: Template error: as_timestamp got invalid input 'unknown' when rendering template '{% if as_timestamp(states('sensor.buienalarm_next_rain_forecast')) %}
{{ ( ( as_timestamp(states('sensor.buienalarm_next_rain_forecast')) - as_timestamp(now()) ) / 60 ) | round }}
{% else %}
{{ states('nonexistent') }}
{% endif %}' but no default was specified
I’m also really new to Home Assistant. But I’d really like the integration of Buienalarm. Anybody created a good automation on this sensor to check if it will go rain? I don’t want to be disturbed via messages (notify service) every minute of course when it will start raining
Hopefully somebody has a good idea or has something implemented already.