New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Severe weather alert #37
Comments
Thanks for the suggestion, https://weather.bom.gov.au/ does have weather warnings so i'm sure I could include this. I will have a crack at this in the next couple of weeks. |
Thanks for looking into it! |
I just noticed that some parts of Australia have a storm tracker, probably only around capital cities, for example, SEQ: not sure if this is helpful information particularly since it is only for a small section of the country. PS: the 0.9 update looks like it will add a lot of useful features! will update shortly |
Just documenting my findings here... https://api.weather.bom.gov.au/v1/locations/r3gx2f/warnings
|
What happened to this? Seems like an excellent inclusion for announcing warnings over smart devices/ shutting roller shutters/ garage doors. |
Would definitely like to see a severe weather alert entity. |
+1 for a severe weather alert entity https://api.weather.bom.gov.au/v1/locations/r3gx2f/warnings Once you have the response, you then need to be able to scrape the provided warning page to see if your town is mentioned (or a close major town). Some warning areas are quite big so a warning may not apply to you without the town information. |
PR #125 collects data from the warnings API and presents it through an optional "warnings" sensor. The state of the sensor is the number of warnings returned and the warnings data is available as a list from the "warnings" attribute on the sensor. Comments and suggestions are welcome. Is this sufficient to address the request? It is not obvious what more to do with the data at this point. |
@glenn20 thanks for the PR. I merged it and then found a small problem. If I untick observation sensors I get an error. |
Ah - I thought I tested that - obviously not. Fix coming. |
OK - PR #126 has a bugfix. It appears I must have accidentally deleted a few important lines after testing and before commit. The config dialog for the forecast sensors should work now. |
It has been merged and now works as expected. Now to wait for some warnings to be issued for around here. |
Note that this PR makes the warnings data available (based on geohash location as described above). However, there is currently no logic to filter by Data is collected from the BoM warnings API. The state of the sensor is the number of warnings and the warnings data is stored as a list in the "warnings" attribute of the sensor, eg:
|
I have just released 1.1.8b which is a pre-release with this feature included. Would love to get some feedback. |
Downloading 1.1.8b & will test. |
Ok, warnings seem to work ok. I added Thredbo since they currently have a severe weather warning & I was able to see the warning text. I created a simple custom:mushroom-template-card {{ state_attr('sensor.thredbo_warnings', 'warnings')[0]["short_title"] }} - {{ state_attr('sensor.thredbo_warnings', 'warnings')[0]["phase"] | upper }} Output> Severe Weather Warning - NEW Will have to see the phase options as they appear. I know of new & cancelled so far. Since a location could have multiple warnings I need to work on stepping through the list provided & filter on what I want to see etc....& create a template sensor to suit. |
A few active warnings in QLD at the moment to see the output. I've got phases "renewal", "final" and "cancelled" at the moment. `response_timestamp: '2022-05-17T11:52:37Z'
|
Using Brisbane as the location as it currently has 2 flood alerts.... `response_timestamp: 2022-05-18T00:11:45Z
friendly_name: Brisbane Warnings` This will list all warnings... {%- for state in state_attr('sensor.brisbane_warnings', 'warnings') -%} RENEWAL - Flood Warning for Brisbane River downstream of Wivenhoe Dam This will list only those that match a particular string in the title in this case. I have chosen "Brisbane" to distinguish the two, but you could search instead for "Thunderstorm" or choose another attribute to match by e.g. warning_group_type. {% for state in state_attr('sensor.brisbane_warnings', 'warnings') -%} RENEWAL - Flood Warning for Brisbane River downstream of Wivenhoe Dam Below is a Template Sensor. It shows "No Warning" if there is no matching warnings, & lists the warnings if they match. This one checks for a match of "Thunderstorm" in the title. Make sure you fix the indenting. :)
|
There was an interesting update to the BoM mobile app yesterday. You can now configure push notifications for warnings. I haven't investigated how they are doing this yet and it will be painful to investigate as they use tls and to look at decrypted versions of that requires a rooted phone. |
The BOM integration on my HA doesn’t have a reconfigure button, so I added another BOM instance to add the warning sensor. Is that the best way to do it currently? |
That may work, but also might result in multiple sensors. Possibly the best way is to delete all of them and the add the one back you want. As long as you don't change the name everything will continue to work as before |
Thanks! |
@StormyKnight17 @nixmaster2000 any update on how you are using the warning data? I am interested as I am currently doing a major update (rewriting) the BoM Weather Card and I am thinking about how to include an option warning section. |
I have just created a template sensor that I use to show the current warning if any. I also have a speaker & phone notification triggered as well. I search for thunderstorm at the moment to limit it from other warnings. Not many warnings in my area till spring. I did add Brisbane during testing & that worked well as it had flood warnings at the time. |
So overnight we got two warnings generated, The second has further details once you view the warning text on the bureau website. Is there any way to get this data? Current Warning http://www.bom.gov.au/products/IDN21037.shtml Cheers |
I'm using the template sensors that @StormyKnight17 made above. I'm using one on my weather page listing all the current weather warnings with the template in a markdown card that's visible conditional on the warnings sensor being above 0. And then for the storm warning sensor I have that setup to show on my main dashboard when a storm warning is issued along with phone notifications. Haven't seen that one in action yet. |
Closing now as I don't think there is anything else to do here. Let me know if I am wrong. |
Just a heads up for those interested in warning info. I have added a doc to the repo that has the start of a reference for the BoM api's. https://github.com/bremor/bureau_of_meteorology/blob/main/api%20doc/API.md At the bottom I have started collecting values for a couple of fields |
Thanks @StormyKnight17 I thought I would place a few examples down on how I used your template examples. It actually took me a number of years to find, as this post does not come up easily in Google Search. This have made this post https://community.home-assistant.io/t/how-to-extract-weather-warning-data-other-text-from-bom-australia-intergration/708467?u=chykan in the home assistant forum to help point to Severe Weather Alert Issue #37 Thanks @StormyKnight17 I thought I would place a few examples down on how I used your template examples. It actually took me a number of years to find, as this post does not come up easily in Google Search. This post has been made to help others point to the closed Severe Weather Alert Issue #37 # Template Weather Warning Phase Text - Act as trigger for lovelace conditional card
THE FOUR SENSORS BELOW MAKE ONE FULL WEATHER REPORT. I did have it as one complete code in my configuration.yaml but it kept breaking, I had to divide it up. (obviously too long to parse) Combining all templates in a Custom: Mushroom Template Card results in the below. This will parse as a complete code. NOTE: sensor.text_dewpoint_comfort_outside is created using Weather Word Descriptions from Dew Point, Temperature, VOC & Tado (Simple Air Comfort Card) Template to place in Mushroom Template Card shown above:
For use in Node Red The state from the sensors below are recombined into the full weather report that can be sent to TTS. # Template Weather Report Text- BOM Current Feel - Temp and Conditions Report - TTS Input
# Template Weather Report Text - BOM Current rain and chance of rain - TTS Input
# Template Weather Report Text - BOM Current Fire Danger and UV - TTS Input
# Template Weather Report Text - BOM Current weather warnings - TTS Input
To enter all of the above sensors into your configuration.yaml file just copy the below. Ensure it is under the -platform: template section. You will have to change the sensor names to your own entities.
|
Hi @Brenor,
It would great to have some sort of binary sensor for current weather warnings for example in Brisbane the bom product ID is IDQ21035 and the images on the ftp site are
IDQ21047.png
IDQ21041.png
Do you think that there is a way to be able to get this info into the custom component?
I have a simple script that looks for the file on the ftp server and use that to check for warnings but it may be more efficient to pull it all into one component. And it may be helpful to other users too, eg roll up the blinds before a storm.
The text was updated successfully, but these errors were encountered: