New custom component: France weather alerts from Météo France

You can have it thru template. Example for low temperature

{{state_attr('weather.MY_CITY','forecast')[0].templow}}

The current temperature available is the max of the day. The min and max for current day isn’t fetch by this version of the integration. There is a project to modify the integration to have in the first position of the forecast the current day(it’s tomorrow currently). If some of you want to make it happen you are welcome.

No the information is not available on the meteofrance website as far as I know.Text

Hi @oncleben31,
Strangely enough, Météo France does not show up in the new integration list in the config dashboard (config flow). I am running 0.105.5.
Is it only through the config yaml file?
Thx

Hello,
I added Météo-France in my yaml, and all sensors are not created ( for example “next rain”/"chance of freeze) that was working before for my city)
Thanks

Hello, 
I added Météo-France in my yaml 2 days ago.
Everything works fine.
Just the sensor next_rain failed.
What can I do ?
Thanks.

meteo_france

@Quentame une idée ?

@Julien67 @max5962 @Friedrieck

From 0.106.0, Météo-France can be configured both via config.yaml file or via the UI.

But you have to remove monitored_conditions from your yaml file.

See release notes : https://www.home-assistant.io/blog/2020/02/26/release-106/#breaking-changes

1 Like

Hi, nice component, thanks! One question, is there a way to use the ID provided by meteo france? (Mine is 06720) I’m trying to use it for a city in Switzerland, as we are very close… So I tried also to use the integration typing Sion (Suisse) and he find Suisse as result. I tried also to type Sion, but there is also a village in France with the same name, so I’m sure it’s the wrong place for me…
Here’s the result of the query:

"id" : "06720",
  "indicatifInseePP" : null,
  "onTheSnowSkiiId" : 0,
  "nomAffiche" : "Sion (Suisse)",
  "type" : "VILLE_MONDE",
  "slug" : "sion",
  "codePostal" : null,
  "timezone" : "Europe/Zurich",
  "altitude" : 481,

Have you tried ‘Sion, Suisse’ ?

Yes, this gives me Suisse as result. It’s just a display problem I think.
Ok in fact I’m sure I get the correct station, it’s just a “cosmetic” feature now. I just want to modify the name of the city. It was possible before via configuration.yaml but now, as I used the frontend, where is this info available?
meteofrance

3 different examples to illustrate my problem.
1st line is “Montana, Suisse” (the way I inputed it) village that exists only in Switzerland not in France: it displays Montana.
2nd line is “Sion, Suisse” town in Switzerand that exists also in France: it displays Suisse.
3rd line is “Zermatt, Suisse” village in Switzerland that exists only in Switzerland, not in France, it displays Zermatt.

For the 2nd line, seems to me that the meteo information are for Sion in France, because look at the number of sensors. Suspect the query has problems when same Town name exists in France and another country. Maybe you can try and give me your point of view.
meteofrance

And manual configuration doesn’t work:

# Meteo France
meteo_france:
  - city: 'sion, suisse'
  - city: 'montana, suisse'
  - city: 'zermatt, suisse'

gives me following error:

Invalid config for [meteo_france]: [platform] is an invalid option for [meteo_france]. Check: meteo_france->meteo_france->3->platform. (See /config/configuration.yaml, line 47)

ok, definitively, sion, suisse shows meteo infos for sion, france, and indicate Suisse… Only works for France.

Hi @oncleben31 and @Quentame,

Thanks for the Météo France Integration, I found their forecast truly more relevant for France.

I’m using it for a few days now and I can see there is some states that are not correctly mapped (and therefore not translated).

I’ve seen that mapping take place here, under “Condition_Classes”:

I’ve already caught :

  • Nuit claire (Nuit Claire seems to occur also but alreay “mapped”)

  • Brume

Can you add this states the mapping?

Thanks!

Thanks ! I was looking for this since a long time !
Note that “button-card” must be installed to make it work.

1 Like

A nice component, and working well !

However I have request : could we add a parameter to not request for vigilance alerts ? or at least a parameter to set the poling frequency of requests to ‘www.meteofrance.com’ and '‘vigilance.meteofrance.com’ ? :slight_smile:

I noticed that i have about 2700 DNS request to '‘vigilance.meteofrance.com’ each day, and about 560 DNS requests for ‘www.meteofrance.com’. Those are the 2 top domain DNS requests in my PiHole ! :stuck_out_tongue:

What is the issue ? 2700 DNS each day it’s around 1 every 30 minutes. I don’t find it so high weather forecast it something that can change so it seems fare.
OK So it’s every 30 secondes. Strange because I was thinking that the poll is at maximum 1 minutes.
I’m curious to understand why it is an issue ?

For information the vigilance part is super optimized. The plugin download a checksum (60 bytes) and update all the vigilance data if the checksum managed by meteofrance has changed. So if no new forecast no download.

It’s not an issue, more like a feature request to be able to customize it :wink:
It would better suit my needs, which is indeed only for the exterior temperature. I don’t use any of the other data. I display some of them but don’t use it. An update every 5 minutes would be more than enough. But that’s my needs and I undestrand that custom components should not be too much ‘customizable’.
As I said it’s not an issue. I have a gigabit optical fiber connection so a few small requests every minute is no big deal. It’s just that I like to avoid useless ressource usage these days.

That being said, the component works very well and I will probably keep using it if I can’t find an other one that would be lighter, or if I can find by myelf another clean way to get only the needed data with a longer polling period.

:slight_smile:

that’s look very nice. Question from a novice. I would like to set up an automated message when rain is closed to 30 min. Seems something related to next rain 30 mn. Could you help ?

You can find an example here: https://github.com/oncleben31/home-assistant-config/blob/b75fdafbd232843b3517761202285c011a5adf36/config/automations/areas/garden/rain_in_the_hour_notify.yaml

2 Likes

Hello, I sincerely thank you for your work, I have a small question please, the entity Next rain constantly displays Unknown, all the other entities work very well, do you have an idea to solve this problem? for information I live in Marseille. thanks

Marseille is not in the covered zone for the 1 hour rain forecast. You can check directly on the meteofrance website.