Convert OpenweatherMap Integration to use "one-call-api"

If you’re desperate for a decent weather integration try this

I’m interested. :slight_smile:
Looking forwards to it

@edenhaus Can’t wait for it! :slight_smile: If you need beta testers, I’m in! :+1:

Any updates on this? I’m new to HA so I’m not able to get Darksky working. I’d really like hourly forecast info so I can automate some HVAC stuff. Also, are there any “new guy” friendly lovelace cards that have hourly forecast data included? I’ve been reading for a few weeks and with all the different options, I guess I’m just hoping someone can point me to something simple I can start with. Thanks!!

Hi Doug,

The current Openweathermap integration does allow you to pull hourly values.

All you would need to do is plug in your API key. Hourly is the default so you could leave out the ‘mode’ variable:

# Example configuration.yaml entry
weather:
  - platform: openweathermap
    api_key: YOUR_API_KEY
    mode: hourly

Thanks @cj922. I was able to get this working over the weekend. If I’m not mistaken, the One-Call API provides data for each hour, where the older api provides only every 3 hours. Not the end of the world of course, but every hour would be better for my needs.

Appreciate your response either way!!

So I’ve obviously misunderstood this, as we have had 3 new releases since this post and the one api integration (including multi-day forecasting I believe) is not in. Not complaining at all, but just trying to understand when/if this will make it into the main home assistant install. Thanks

1 Like

very, very, very, very (did I mention very?) interested in this as well. Please reach out if you need any coding, testing, etc. assistance!

This integration utilizes the pyowm component which has been updated to leverage the OneCall API but it doesnt appear that this HA integration has been updated to utilize this call.

Additionally, it looks like the OWM api has changed to allow 60 calls per minute for the free tier.

Just adding another voice asking when this will be released,

2 Likes

## NEW! Probability of precipitation in OpenWeather forecasts!

Was the Minute Forecast 1 hour already available earlier for the one-call-api?
afbeelding

It was there when I signed up in early July. The new precipitation value is going to be very useful to anyone trying to make their irrigation smarter.

Seems the PR has been merged - is there any support you need to make the changes you mentioned? Would be great if we can make use of the onecall api and retreive more detailed info from owm.

Seems it was in 0.115 :slight_smile:

What was in 0.115? So far as I can tell, the one-call-api still isn’t supported.

The PR was in 0.115.

Only the PR for the config flow was merged. The PR for the onecall api is waiting to be merged. See https://github.com/home-assistant/core/pull/39839

2 Likes

Hopefully the OWM one-call-api is or will be merged in 0.117?

Looks like this was integrated in 0.118, however, not exactly a direct drop in for dark sky as I was hoping. For example, the 7 day forecast is all dumped into the weather entity, and not individual sensors for each day/condition. I supposed I’ll need to look into creating templates for my use case.

Ok, so it uses the new API. Are NWS alerts stored somewhere??? There’s not current alert in my region on the NWS website, so I can’t easily check. The one thing that aggravates me with the default weather setup is that it does not do alerts.

@jinx8402 Did you separate out the days one by one? If so, how did you do it? I may have to do the same.