Add configuration variables to Buienradar sensor [SOLVED with workaround]

Hi all,
I’m not sure whether this is the right way to do this – if not, feedback please.

I am requesting that rainFallLast24Hour and rainFallLastHour are added as configuration
variables into the buienradar sensor component (https://www.home-assistant.io/components/sensor.buienradar/).

I would like to know the rain in the previous 24 hours as this, combined with the current day forecast, is the best way to decide whether to turn an irrigation system on (stressing roots, hitting 30mm / week, etc.). The variables exist in the json file from buienradar.nl, so hopefully they are easy to add (see https://api.buienradar.nl/data/public/2.0/jsonfeed?lat=<51.7>&lon=<5.7>).

cheers,
Sean

I assume that this is the python package that supports the home assistant component:

It doesn’t seem to support the option you want. But I am sure that is fixable.

Thanks, Nick. I just opened a github account two days ago, and started learning python a week ago, so fixing it myself might be a step too far at this stage.

It does seem like just adding a variable to a list. How do I go about requesting that: in this forum, or is that something I’m supposed to do on github?

Cheers,
Sean

the best way to get something changed is go to the source.
so in your case contact the person who has created the github
but even if it is in the github (python lib) it wont be automaticly in HA.
so you also need to contact the person who has implemented that lib inside HA as component (when the 2 are different)
if the last one isnt available you could do a faeture request on the forum here.

For anyone else who wants to access data from the buienradar api which isn’t included in the HA buienradar component, this is what I did:

In linux, I installed jq:
$ sudo apt-get update && sudo apt-get install jq

Then, in the HA config file I added a “command line sensor:”

  - platform: command_line
    name: '24H rain'
    command: "curl -s https://api.buienradar.nl/data/public/2.0/jsonfeed | jq '.actual.stationmeasurements[] | select(.stationid == 6375) | .rainFallLast24Hour'"
    unit_of_measurement: 'mm'
    # value_template: '{{ value | multiply(1000) | round(0) }}' # Not sure if in cm or mm.
    scan_interval: 3600

Note that I used the station id for Volkel (6375). You should put in the id closest to you.

Cheers,
Sean