Australian Weather Forecast using BOM Public FTP

Yep that’s the one

Thanks Tom :+1:

You can install it via HACS too by adding that github as a custom repo.

I have the card installed fine via HACS but where are you guys getting the hourly weather data from?

I’m using this integration which doesn’t give me that data. Could it just be due to the location I have set?

I have a Tempest weather station that has an hourly forecast option, https://github.com/briis/smartweather

I have released hourly forecast as a beta, which reminds me it’s probably time to promote to general release. Will do that now. You should see it pop up as an upgrade in hacs soon

2 Likes

I’m using Brendan’s beta. It works perfectly.

Awesome glad to see it make it

Same here.

Do you plan to update for your weather card (or a different one) to handle the hourly forcast?

No But i’m also using GitHub - Yevgenium/weather-chart-card: Custom weather card with charts as linked above.

1 Like

I seem to have lost all my observation sensors since updating. Anyone else?

EDIT: a reload of the integration did not help but reinstalling it did.

Edit 2: while it does eventually load, something isn’t right.

Screenshot 2021-11-19 at 19-45-56 Configuration - Home Assistant

This happened to me actually when I first started using it, and then I couldn’t reproduce the issue again after the first 2-3 times. Anything in your logs? Try chucking on debugging, this new version has some better debug logs, which might help me figure out what’s going on. It’s something to do with the hourly data taking a long time to download (and timing out).

logger:
  default: warn
  logs:
    custom_components.bureau_of_meteorology: debug

I have created a github issue Integration taking too long to load · Issue #90 · bremor/bureau_of_meteorology · GitHub

1 Like

I just restarted with debug logging enabled and the integration started flawlessly. :face_with_raised_eyebrow:

Any tips on pulling data from the hourly forecast attributes?

I’ve got an automation that closes blinds if it gets too hot outside.

  • Once it cools down and the temperature outside is cooler than the temperature inside, I want the blinds to open again.
  • I need a way to test whether we’re in the ‘cooling down’ stage of the day, or just the ‘heating up’ part where the max temp is still ahead of us.
  • Given the temp could go up and down a bit, I want to use the hourly forecasts to say ‘if no hourly forecasts in next X hours; or say before 10pm’ > current temperature, safe to open the blinds…

The hourly forecasts are formatted like the following, so not sure how to create a ‘max temp forecast between now and 10pm’ sensor. Any ideas?

#weather.suburb_hourly
temperature: 27.3
humidity: 46
wind_bearing: 'N'
wind_speed: 20
forecast:
  - datetime: '2021-12-06T03:00:00Z'
    temperature: 27
    condition: sunny
    precipitation: 0
    precipitation_probability: 10
    wind_bearing: 'N'
    wind_speed: 35
  - datetime: '2021-12-06T04:00:00Z'
    temperature: 27
    condition: sunny
    precipitation: 0
    precipitation_probability: 10
    wind_bearing: 'N'
    wind_speed: 35

Guessing you will need a template something along the lines of:

{{ state_attr('weather.YOUR_HOURLY', 'forecast',)[0]['temperature'] }}

to get the first temp value and so on, then something else to work out the rest of your automation. The 0 in square brackets tells it which forecast item to look at.

The above is just a rework of something I have to grab part of an attribute so I can’t take credit, it was given to me by others.

image

Hello I just install the repo in HACS and added the integration in HA and I can’t see any new entity’s, am I doing something wrong?

Logger: homeassistant.components.weather
Source: custom_components/bureau_of_meteorology/weather.py:24 
Integration: Weather (documentation, issues) 
First occurred: 16:47:22 (1 occurrences) 
Last logged: 16:47:22

Error while setting up bureau_of_meteorology platform for weather
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 249, in _async_setup_platform
    await asyncio.shield(task)
  File "/config/custom_components/bureau_of_meteorology/weather.py", line 24, in async_setup_entry
    location_name = hass_data[COLLECTOR].location_name
AttributeError: 'Collector' object has no attribute 'location_name'

I should read the error log before posting.:roll_eyes:
Because the integration uses the HA zone coordinates there’s no location setup for my town(location)
Cut and paste a town near you or you can move your HA zone location that BOM supports then setup the integration.

A post was split to a new topic: GPS/LTE tracker for my motorbike

Afternoon - have BOM perhaps just switched to using long dash in the rain range forecasts? My weather display just started showing a block symbol instead of dash. If the forecast is rain range is 12-25 then the - (dash) is replaced by a square block indicating the character isn’t in my TTF font file file.

This only started happening the last couple of days.

Details of the BOM rain range character causing issues:

Character	–
Character name	EN DASH
Hex code point	2013
Decimal code point	8211
Hex UTF-8 bytes	E2 80 93

I tried using the replace function in lambda - but using it with a multi byte character is a sure way to cause a ESPhome crash it seems. I’ll post in the ESPhome topic to see if anyone else has ideas on how to deal with it, but if there are any suggestions here they are welcome…