Customising the BOM Weather and lovelace - now in HACS

I don’t think it is available via the API. I vaguely remember asking about that.

The BOM api being used has never provided any pressure information.

Is anyone getting a msg

hacs isn’t showing an update

This is to be expected. Read the HA core 2023.9 release notes.

The developer is very busy right now but fortunately there are 6 months before this actually becomes an issue.

1 Like

The new beta release v1.2.0 that solves the warning above, has omitted the forecast attribute. This has made issues with likes of platinum-weather-card that use this attribute to show icons, temp, etc. for forecast field. Is this intentional?
(forecast attribute is a list of dictionaries which points to upcoming days’ forecasts. Each dict has keys like date, condition, temperature, etc.)

You need to create a triggered template sensor. Like this:

https://www.home-assistant.io/integrations/template/#trigger-based-handling-of-service-response-data

Though I’d replace the time pattern trigger with a state trigger that monitors the weather entity for updates,

template:
  - trigger:
      - platform: state
        entity_id: weather.whatever
    action:
      - service: weather.get_forecast
        data: etc...
1 Like

Thanks for the quick reply. So the omission of forecast attribute is intentional.
I think HA wants people to actually use their new service with return value :upside_down_face:.
Looking at above template sensor, I think if for a couple of days e.g. weather.whatever's state stays rainy, it won’t get triggered. Maybe sticking to time-pattern makes more sense?

A state trigger with no to or from specified triggers on all state and attribute changes. So it will trigger whenever anything in the entity changes.

1 Like

Great. I didn’t know that :+1: .

On another note, while testing on developer tools, it looks like v1.2.0 of the bom integration does not support weather.get_forecast yet. Or might be another mistake on my side.

Failed to call service weather.get_forecast. Entity weather.my_suburb does not support this service.

Downgrade to the previous version of the integration until the service is implemented. You have 4 or 5 months until the attribute will no longer be supported.

2 Likes

Hi @DavidFW1960 for some reason i do not see an hourly forecast even when choosing the hourly weather entity. I just get one reading. how do i see the hourly forecast?

Ibelieve a change in home assistant broke this and the bom weather integration needs an update

@DavidFW1960 thanks for the quick reply. I hope the integration will be getting updated soon.

Love the BOM Integration and that Platinum Card. I’m trying to find the chance of rain sensor to add to the card but can’t find it in the BOM integration. Has anyone managed to get this to work or do I need another weather integration for this data? I can see the % on the BOM website but can’t find it in the integration. Thanks in advance.

It’s definitely in the integration - maybe it’s a sensor you need to enable in the configuration

Thanks for the quick reply. I can’t seem to find it. I have 98 entities with the BOM integration and non of them appear to be rain chance in a % or any number. There also isn’t any hidden sensors I could enable.

I check the attributes too of the entities and I can’t see a rain chance or likely hood anywhere. Do you have that BOM integration and possibly show me what I’m looking for?

I have 131 - so quite a few more than 98. Rain data is 32 sensors, rain_amount_min_0 through _7, rain_amount_max_0-_7, rain_amount_range_0-_7 and rain_amount_chance_0-_7.

Sounds like you are missing all of those?

Maybe the data isn’t present for your location? BOM does not supply every entity for every site, but I’d expect rain forecast data to be there.

thanks. That is a very good point. I’ll try putting in Melbourne location rather than my suburb and see what it comes back with.

ok that was it… When I put in lat and long for Melbourne it came back with 163 sensors. So more than my standard suburb closest station. Thanks everyone for the advice and feedback.

2 Likes

Does anyone know how to get rain probability from the BOM data?

I was using a template like this, but it stopped working in a recent update.

{{ state_attr(‘weather.bom’, ‘forecast’)[0].precipitation_probability }}

The data must still be in the BOM entity, as if I use a HACS weather card, it’s able to show the rain probability.