core: New meteo_france sensor not working
Home Assistant release with the issue: Home Assistant 0.82.0
Operating environment (Hass.io/Docker/Windows/etc.): Hass.io / DietPi
Component/platform: New Sensor Meteo France New merge
Description of problem: If a postal_code is shared by several cities (it’s possible in France, eg : 01700), sensor not work and return error.
Problem-relevant configuration.yaml
entries and (fill out even if it seems unimportant):
- platform: meteo_france
postal_code: !secret postal_code
monitored_conditions:
- temperature
- weather
- wind_speed
- next_rain
Traceback (if applicable):
Error: no forecast for the query `960`
Additional information: By the way if the weather component could be created to be use with Lovelace Weather Card it will be awesome.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (7 by maintainers)
Commits related to this issue
- Fix config that could be interpreted as octal Some postal codes have a leading zero which would be interpreted as an octal int. Adding quotes on the documentation to be avoid confusion with those pos... — committed to victorcerutti/home-assistant.github.io by victorcerutti 6 years ago
- Fix config that could be interpreted as octal (#7478) Some postal codes have a leading zero which would be interpreted as an octal int. Adding quotes on the documentation to be avoid confusion with ... — committed to home-assistant/home-assistant.io by victorcerutti 6 years ago
Hi everyone. Sorry it took so long. The PR review team was overwhelmed and my update was stuck in limbo. It’s back on track now and I really hope it will be released in the next version.
So, what’s coming with this update:
city
option will be a query, meaning you can specify a postal code, a city name or both to be sure you get the expected results)city: Luxembourg
orcity: Brest, Bielorussie
Caveats:
This is going to be a breaking change as the configuration will move from a sensor one to a whole
meteo_france
component. Be sure to look at the blog post and refer at the new documentation when updatingJust so you know, it’s live since wednesday Hope it fixes all your issues and fulfills your awaited features
Some updates ? I was going to post a bug report when realised it was already on the task list ! Thanks 😉
@adamotte I don’t know if there is a standard for this. If you need sensor for multiple locations, then it’s convenient to have them named by city. you could have
sensor.paris_temperature
along withsensor.lyon_temperature
which are easy to read and make automations with Without naming the city you would havesensor.meteo_france_temperature
andsensor.meteo_france_temperature_1
@anthosz It currently only work with cities from France I will add to the to-do list the possibility to add weather datas from the world