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

Environment Canada Integration not working #90851

Closed
pinballnewf opened this issue Apr 5, 2023 · 6 comments · Fixed by #91094 or #91126
Closed

Environment Canada Integration not working #90851

pinballnewf opened this issue Apr 5, 2023 · 6 comments · Fixed by #91094 or #91126

Comments

@pinballnewf
Copy link

pinballnewf commented Apr 5, 2023

The problem

`Unexpected error fetching environment_canada weather data: could not convert string to float: 'calm'

It appears Environment Canada has decided to use words to describe the wind speed. I didn't know calm was in km/h!

<wind> <speed unitType="metric" units="km/h">calm</speed> <gust unitType="metric" units="km/h"/>

What version of Home Assistant Core has the issue?

2023.3.6

What was the last working version of Home Assistant Core?

2023.6

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Environment Canada

Link to integration documentation on our website

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

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 239, in _async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/components/environment_canada/__init__.py", line 117, in _async_update_data
    await self.ec_data.update()
  File "/usr/local/lib/python3.10/site-packages/env_canada/ec_weather.py", line 420, in update
    self.conditions[c].update(get_condition(meta))
  File "/usr/local/lib/python3.10/site-packages/env_canada/ec_weather.py", line 400, in get_condition
    condition["value"] = int(float(element.text))
ValueError: could not convert string to float: 'calm'`

Additional information

No response

@home-assistant
Copy link

home-assistant bot commented Apr 5, 2023

Hey there @gwww, @michaeldavie, mind taking a look at this issue as it has been labeled with an integration (environment_canada) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of environment_canada 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 environment_canada Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


environment_canada documentation
environment_canada source
(message by IssueLinks)

@Juffle74
Copy link

Juffle74 commented Apr 9, 2023

As today (apr. 9 2023) I'm having the same issue...

Logger: homeassistant.components.environment_canada
Source: components/environment_canada/init.py:117
Integration: Environment Canada (documentation, issues)
First occurred: 08:50:14 (3 occurrences)
Last logged: 08:50:49

Unexpected error fetching environment_canada weather data: could not convert string to float: 'calme'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 250, in _async_refresh
self.data = await self._async_update_data()
File "/usr/src/homeassistant/homeassistant/components/environment_canada/init.py", line 117, in _async_update_data
await self.ec_data.update()
File "/usr/local/lib/python3.10/site-packages/env_canada/ec_weather.py", line 423, in update
self.conditions[c].update(get_condition(meta))
File "/usr/local/lib/python3.10/site-packages/env_canada/ec_weather.py", line 403, in get_condition
condition["value"] = int(float(element.text))
ValueError: could not convert string to float: 'calme'

Home Assistant v. 2023.4.2
Supervisor 2023.04.0
OS 9.5

@michaeldavie
Copy link
Contributor

@home-assistant reopen

@timmeh87
Copy link

Guys I was in contact with environment canada today, they sent me this bulletin about how their data product will be broken for about a month. The bottom line is that the data will return to normal after this period of time. Didnt know where exactly to put this.

https://lists.ec.gc.ca/pipermail/dd_info/2023-March/000575.html
https://lists.ec.gc.ca/pipermail/dd_info/attachments/20230328/4bc793cc/attachment-0001.pdf

@bdraco
Copy link
Member

bdraco commented Apr 11, 2023

@evilspoons
Copy link

Is there any way for this integration to return 'unavailable' for this period of downtime? I just caught on to this because humidity and temperature for my region have been recording zeroes for the past 12 hours.

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