Skip to content
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

Météo-France: alerts are all "unknown" #92197

Closed
serl opened this issue Apr 28, 2023 · 32 comments · Fixed by #105170
Closed

Météo-France: alerts are all "unknown" #92197

serl opened this issue Apr 28, 2023 · 32 comments · Fixed by #105170

Comments

@serl
Copy link

serl commented Apr 28, 2023

The problem

Hello,
I noticed that the integrations keeps reporting "Jaune" for "Orages" in the 13, while no clouds in the horizon.

I dug a little bit and that's what the API (https://webservice.meteofrance.com/warning/currentphenomenons?token=...&domain=13&depth=0) returns:

{
  "update_time": 1680595200,
  "end_validity_time": 1680667200,
  "domain_id": "13",
  "phenomenons_max_colors": [
    {
      "phenomenon_id": 1,
      "phenomenon_max_color_id": 1
    },
    {
      "phenomenon_id": 4,
      "phenomenon_max_color_id": 1
    },
    {
      "phenomenon_id": 3,
      "phenomenon_max_color_id": 2
    },
    {
      "phenomenon_id": 2,
      "phenomenon_max_color_id": 1
    },
    {
      "phenomenon_id": 5,
      "phenomenon_max_color_id": 1
    }
  ]
}

So I guess that's make sense if 3 is Orages and 2 is yellow. Problem is: today is April 28, and end_validity_time is April 5. And no clouds since then (of course, the sun is the only option in the south 😁).

I'm not an expert of this API, so just guessing: I think that if end_validity_time is in the past (maybe with a little margin?) we should take it as "all green".

What do you think? I could go for a PR in that sense if it makes sense to you.

What version of Home Assistant Core has the issue?

core-2023.4.6

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Météo-France

Link to integration documentation on our website

https://www.home-assistant.io/integrations/meteo_france/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @hacf-fr, @oncleben31, @Quentame, mind taking a look at this issue as it has been labeled with an integration (meteo_france) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of meteo_france can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign meteo_france Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


meteo_france documentation
meteo_france source
(message by IssueLinks)

@jimsaye
Copy link

jimsaye commented May 5, 2023

i have the same issue

@WarC0zes
Copy link

WarC0zes commented May 6, 2023

@franck31195 @jimsaye
when you have the same issue, don't put "I have the same issue". But liked with a thumbs up and not reply. Developers keep saying it...

@carter013
Copy link

Hello, same problem in the department of 13 and 83. Have you found a solution ?

@YodahJimah
Copy link

Not working correctly for department 75. We're actually on yellow level for thunderstorms today, but the integration is still stuck on green as it has been for quite some time now.
Could the code owners please at least confirm they are working on the issue? Wish I had the skills to help better

@bastoonch
Copy link

bastoonch commented Jun 12, 2023

I wondering if it is because of meteofrance.fr has put in place a new interface/api. They don't mentioned the previous url.

Sorry for the non french-speaker

Ouverture de l'accès à la nouvelle Vigilance Métropolitaine
Depuis le 28 novembre 2022, le nouveau flux de données publiques de Vigilance est accessible selon le mode d'accès décrit sur la page Nouvelle Vigilance Métropole (archive et temps réel).

Une documentation technique de description des nouveaux formats est disponible sur cette page.

L'ancien flux est resté ouvert jusqu'au mardi 9 mai 2023 mais il est maintenant intgerrompu.

Il est nécessaire d'engager maintenant la migration vers le nouveau flux pour ceux qui ne l'ont pas encore fait.

@bastoonch
Copy link

I played around with this new interface and it returns the right value

`python % python3 test3.py
Data saved successfully!
Domain ID: 13
Phenomenon ID: 1
Phenomenon Max Color ID: 1
Begin Time: 2023-06-12T14:00:00Z
End Time: 2023-06-12T22:00:00Z

Domain ID: 13
Phenomenon ID: 4
Phenomenon Max Color ID: 1
Begin Time: 2023-06-12T14:00:00Z
End Time: 2023-06-12T22:00:00Z

Domain ID: 13
Phenomenon ID: 3
Phenomenon Max Color ID: 2
Begin Time: 2023-06-12T14:00:00Z
End Time: 2023-06-12T21:00:00Z

Domain ID: 13
Phenomenon ID: 2
Phenomenon Max Color ID: 1
Begin Time: 2023-06-12T14:00:00Z
End Time: 2023-06-12T22:00:00Z
`
Phenomenon ID: 3 is for "Orage"

image

with the old webservice I currently have a 502 error

@Alindil
Copy link

Alindil commented Jun 13, 2023

Hi,
I've noticed for 2 or 3 months that I no longer have any alerts. I'm still on green alert when today I should be on yellow alert for thunderstorms.

@Nardol
Copy link
Contributor

Nardol commented Jun 17, 2023

My log is spammed by error from Météo-France, maybe this is related to this issue:

2023-06-17 16:52:10.003 DEBUG (MainThread) [homeassistant.components.meteo_france] Finished fetching Météo-France forecast for city Le Mêle-sur-Sarthe - Basse-Normandie (61) - FR data in 0.188 seconds (success: True)
2023-06-17 16:52:10.003 DEBUG (MainThread) [homeassistant.components.meteo_france] Department corresponding to Le Mêle-sur-Sarthe - Basse-Normandie (61) - FR is 61
2023-06-17 16:52:10.063 ERROR (MainThread) [homeassistant.components.meteo_france] Error requesting Météo-France alert for department 61 data: 502 Server Error: Bad Gateway for url: https://webservice.meteofrance.com/warning/currentphenomenons?token=...&domain=61&depth=0
2023-06-17 16:52:10.064 DEBUG (MainThread) [homeassistant.components.meteo_france] Finished fetching Météo-France alert for department 61 data in 0.060 seconds (success: False)
2023-06-17 16:52:22.138 DEBUG (MainThread) [homeassistant.components.meteo_france] Finished fetching Météo-France forecast for city Le Mêle-sur-Sarthe - Basse-Normandie (61) - FR data in 0.206 seconds (success: True)
2023-06-17 16:52:22.139 DEBUG (MainThread) [homeassistant.components.meteo_france] Department corresponding to Le Mêle-sur-Sarthe - Basse-Normandie (61) - FR is 61
2023-06-17 16:52:22.187 ERROR (MainThread) [homeassistant.components.meteo_france] Error requesting Météo-France alert for department 61 data: 502 Server Error: Bad Gateway for url: https://webservice.meteofrance.com/warning/currentphenomenons?token=...domain=61&depth=0
2023-06-17 16:52:22.189 DEBUG (MainThread) [homeassistant.components.meteo_france] Finished fetching Météo-France alert for department 61 data in 0.049 seconds (success: False)
2023-06-17 16:52:22.189 WARNING (MainThread) [homeassistant.config_entries] Config entry 'Le Mêle-sur-Sarthe - Basse-Normandie (61) - FR' for meteo_france integration not ready yet: None; Retrying in background
2023-06-17 16:52:27.532 DEBUG (MainThread) [homeassistant.components.meteo_france] Finished fetching Météo-France forecast for city Le Mêle-sur-Sarthe - Basse-Normandie (61) - FR data in 0.156 seconds (success: True)
2023-06-17 16:52:27.532 DEBUG (MainThread) [homeassistant.components.meteo_france] Department corresponding to Le Mêle-sur-Sarthe - Basse-Normandie (61) - FR is 61
2023-06-17 16:52:27.575 ERROR (MainThread) [homeassistant.components.meteo_france] Error requesting Météo-France alert for department 61 data: 502 Server Error: Bad Gateway for url: https://webservice.meteofrance.com/warning/currentphenomenons?token=...domain=61&depth=0
2023-06-17 16:52:27.577 DEBUG (MainThread) [homeassistant.components.meteo_france] Finished fetching Météo-France alert for department 61 data in 0.044 seconds (success: False)
2023-06-17 16:52:38.153 DEBUG (MainThread) [homeassistant.components.meteo_france] Finished fetching Météo-France forecast for city Le Mêle-sur-Sarthe - Basse-Normandie (61) - FR data in 0.162 seconds (success: True)
2023-06-17 16:52:38.153 DEBUG (MainThread) [homeassistant.components.meteo_france] Department corresponding to Le Mêle-sur-Sarthe - Basse-Normandie (61) - FR is 61
2023-06-17 16:52:38.202 ERROR (MainThread) [homeassistant.components.meteo_france] Error requesting Météo-France alert for department 61 data: 502 Server Error: Bad Gateway for url: https://webservice.meteofrance.com/warning/currentphenomenons?token=...&domain=61&depth=0
2023-06-17 16:52:38.204 DEBUG (MainThread) [homeassistant.components.meteo_france] Finished fetching Météo-France alert for department 61 data in 0.051 seconds (success: False)
2023-06-17 16:52:58.629 DEBUG (MainThread) [homeassistant.components.meteo_france] Finished fetching Météo-France forecast for city Le Mêle-sur-Sarthe - Basse-Normandie (61) - FR data in 0.153 seconds (success: True)
2023-06-17 16:52:58.629 DEBUG (MainThread) [homeassistant.components.meteo_france] Department corresponding to Le Mêle-sur-Sarthe - Basse-Normandie (61) - FR is 61
2023-06-17 16:52:58.677 ERROR (MainThread) [homeassistant.components.meteo_france] Error requesting Météo-France alert for department 61 data: 502 Server Error: Bad Gateway for url: https://webservice.meteofrance.com/warning/currentphenomenons?token=...&domain=61&depth=0
2023-06-17 16:52:58.679 DEBUG (MainThread) [homeassistant.components.meteo_france] Finished fetching Météo-France alert for department 61 data in 0.050 seconds (success: False)

I enabled debug logs for this comment but debug information do not look so helpful IMHO.

@mitch55500
Copy link

So how can I corrige the issue?
I have to wait the HA core update?

@mitch55500
Copy link

Could you tell me more? I'm not an expert or a coder.

Have I just to put the command "pip install meteofrance-api" in the consol? Or other?

@Quentame
Copy link
Member

Hi everyone !
Thanks for your research ☺️

I'm back from vacation, will check API changes ASAP.

@FillR2
Copy link

FillR2 commented Jul 8, 2023

Alerts are still unavailable despite the integration get others informations (temp, etc.)

image

Are there plans to correct this point ?

Merci beaucoup !

@titof2375
Copy link

Logger: homeassistant.components.meteo_france
Source: helpers/update_coordinator.py:229
Integration: Météo-France (documentation, issues)
First occurred: 20:33:48 (1 occurrences)
Last logged: 20:33:48

Error requesting Météo-France alert for department 23 data: 502 Server Error: Bad Gateway for url: https://webservice.meteofrance.com/warning/currentphenomenons?token=__Wj7dVSTjV9YGu1guveLyDq0g7S7TfTjaHBTPTpO0kj8__&domain=23&depth=0

@Axel-72
Copy link

Axel-72 commented Jul 28, 2023

New's ?

Still unkown state ..

@titof2375
Copy link

yes

@titof2375
Copy link

hello, there is also rain within 1 hour that no longer works

saint_xxxl_next_rain

@roumano
Copy link

roumano commented Aug 23, 2023

It's not just it's showing outdated alerts, it's also not show actual alerts

Today, we are in red for canicule in the isére department ( 38 ) and the sensor in home assistant is not reflecting it :

sensor.38_weather_alert

état : unkonwn
Canicule: null
Inondation: null
Neige-verglas: null
Orages: null
Pluie-inondation: null
Vent violent: null
attribution: Data provided by Météo-France
icon: mdi:weather-cloudy-alert
friendly_name: 38 Weather alert

On the log, we can see the same bad gateway error :

 Error requesting Météo-France alert for department 38 data: 502 Server Error: Bad Gateway for url: https://webservice.meteofrance.com/warning/currentphenomenons?token=__xxxxxxxxxxxxxxxxxxxxxDq0g7S7TfTjaHBTPTpO0kj8__&domain=38&depth=0 

Can someone update the title of the issue ?

@serl serl changed the title Météo-France: showing outdated alerts Météo-France: alerts are all "unknown" Aug 23, 2023
@serl
Copy link
Author

serl commented Aug 23, 2023

Updated!

BTW @Quentame feel free to drop a line if you think I can be helpful in any way (I speak both Python and French)

@titof2375
Copy link

hello @serl, we are all when the same case is made, we would like to find the france weather alerts. my don't know anything about coding, we're struggling

@Nardol
Copy link
Contributor

Nardol commented Sep 16, 2023

For some days I have errors about every half an our/hour, log get spammed when before it was not so frequently:

2023-09-16 05:32:14.567 ERROR (MainThread) [homeassistant.components.meteo_france] Error requesting Météo-France alert for department 61 data: 502 Server Error: Bad Gateway for url: https://webservice.meteofrance.com/warning/currentphenomenons?token=__Wj7dVSTjV9YGu1guveLyDq0g7S7TfTjaHBTPTpO0kj8__&domain=61&depth=0
2023-09-16 06:32:15.462 ERROR (MainThread) [homeassistant.components.meteo_france] Error requesting Météo-France alert for department 61 data: 502 Server Error: Bad Gateway for url: https://webservice.meteofrance.com/warning/currentphenomenons?token=__Wj7dVSTjV9YGu1guveLyDq0g7S7TfTjaHBTPTpO0kj8__&domain=61&depth=0
2023-09-16 07:02:15.087 ERROR (MainThread) [homeassistant.components.meteo_france] Error requesting Météo-France alert for department 61 data: 502 Server Error: Bad Gateway for url: https://webservice.meteofrance.com/warning/currentphenomenons?token=__Wj7dVSTjV9YGu1guveLyDq0g7S7TfTjaHBTPTpO0kj8__&domain=61&depth=0
2023-09-16 07:32:15.133 ERROR (MainThread) [homeassistant.components.meteo_france] Error requesting Météo-France alert for department 61 data: 502 Server Error: Bad Gateway for url: https://webservice.meteofrance.com/warning/currentphenomenons?token=__Wj7dVSTjV9YGu1guveLyDq0g7S7TfTjaHBTPTpO0kj8__&domain=61&depth=0
2023-09-16 08:32:15.136 ERROR (MainThread) [homeassistant.components.meteo_france] Error requesting Météo-France alert for department 61 data: 502 Server Error: Bad Gateway for url: https://webservice.meteofrance.com/warning/currentphenomenons?token=__Wj7dVSTjV9YGu1guveLyDq0g7S7TfTjaHBTPTpO0kj8__&domain=61&depth=0
2023-09-16 09:17:15.402 ERROR (MainThread) [homeassistant.components.meteo_france] Error requesting Météo-France alert for department 61 data: 502 Server Error: Bad Gateway for url: https://webservice.meteofrance.com/warning/currentphenomenons?token=__Wj7dVSTjV9YGu1guveLyDq0g7S7TfTjaHBTPTpO0kj8__&domain=61&depth=0
2023-09-16 10:02:15.102 ERROR (MainThread) [homeassistant.components.meteo_france] Error requesting Météo-France alert for department 61 data: 502 Server Error: Bad Gateway for url: https://webservice.meteofrance.com/warning/currentphenomenons?token=__Wj7dVSTjV9YGu1guveLyDq0g7S7TfTjaHBTPTpO0kj8__&domain=61&depth=0
2023-09-16 10:32:15.059 ERROR (MainThread) [homeassistant.components.meteo_france] Error requesting Météo-France alert for department 61 data: 502 Server Error: Bad Gateway for url: https://webservice.meteofrance.com/warning/currentphenomenons?token=__Wj7dVSTjV9YGu1guveLyDq0g7S7TfTjaHBTPTpO0kj8__&domain=61&depth=0

Is it the same for other people?
I seriously consider stopping using this integration which becomes more spamming my log everyday.

@Quentame
Copy link
Member

Hi guys !

Sorry to not help on this for now, I am preparing my wedding (which is very soon), after that I could check weather alerts.

Thanks for your understanding.
Merci à tous !

@Quentame
Copy link
Member

@Nardol & other than logs are getting you angry:

You can just disable the weather alert sensors and logs should stop immediately !

@Nardol
Copy link
Contributor

Nardol commented Sep 16, 2023

Congrats @Quentame 👍 I'll do what you suggest and what I should have also thought...

@paulo74714
Copy link

Bonjour, Do you have any news regarding the alert? It seems to be down since April and it's getting badly needed. Tks.

@jimsaye
Copy link

jimsaye commented Nov 13, 2023

En attendant des des corrections j'utilise ça https://github.com/MrBartusek/MeteoalarmCard

@WarC0zes
Copy link

Hi,
otherwise using the API and command_line. There is a topic on this forum:
https://forum.hacf.fr/t/alerte-meteo/23930/120

@paulo74714
Copy link

Tks for your help: I'm now using Meteoalarm (@jimsaye: merci) and it works fine.

@Quentame
Copy link
Member

Fixed by hacf-fr/meteofrance-api#680 will release the API soon and merge to HA

@github-actions github-actions bot locked and limited conversation to collaborators Jan 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

16 participants