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

WeatherFlow Cloud - Weatherflow REST - Failed Setup, will retry 'precip_icon' #112841

Closed
chris4prez opened this issue Mar 9, 2024 · 35 comments
Closed

Comments

@chris4prez
Copy link

The problem

Attempting to setup the newer option for WeatherFlow Cloud
After entering personal API Key see the following
WeatherFlow Cloud - Weatherflow REST - Failed Setup, will retry 'precip_icon'

What version of Home Assistant Core has the issue?

core-2024.3.0

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

WeatherFlow Cloud

Link to integration documentation on our website

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

Diagnostics information

Logger: homeassistant.components.weatherflow_cloud
Source: helpers/update_coordinator.py:318
integration: WeatherflowCloud (documentation, issues)
First occurred: 2:56:49 PM (35 occurrences)
Last logged: 3:30:52 PM

Unexpected error fetching weatherflow_cloud data: 'precip_icon'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/weatherflow_cloud/coordinator.py", line 35, in _async_update_data
return await self.weather_api.get_all_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 137, in get_all_data
weather=await self.async_get_forecast(station_id=station.station_id),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 85, in async_get_forecast
return await self._make_request(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 44, in _make_request
response_model.from_json(data)
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/api.py", line 63, in from_json
return cls.from_dict(kvs, infer_missing=infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/api.py", line 70, in from_dict
return _decode_dataclass(cls, kvs, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 216, in _decode_dataclass
value = _decode_dataclass(field_type, field_value,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 220, in _decode_dataclass
init_kwargs[field.name] = _decode_generic(field_type,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 291, in _decode_generic
xs = _decode_items(get_type_arg_param(type, 0), value, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 399, in _decode_items
return list(_decode_item(type_args, x) for x in xs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 399, in
return list(_decode_item(type_args, x) for x in xs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 372, in _decode_item
return _decode_dataclass(type_arg, x, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 172, in _decode_dataclass
field_value = kvs[field.name]
~~~^^^^^^^^^^^^
KeyError: 'precip_icon'

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

home-assistant bot commented Mar 9, 2024

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

Code owner commands

Code owners of weatherflow_cloud 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 weatherflow_cloud Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


weatherflow_cloud documentation
weatherflow_cloud source
(message by IssueLinks)

@wheindl
Copy link

wheindl commented Mar 10, 2024

I am experiencing the same issue. (No issues with the local Tempest integration.)

@jeeftor
Copy link
Contributor

jeeftor commented Mar 10, 2024

If either of these PRs gets merged should fix the issue I believe

@gbarrena
Copy link

Same issue can load de integration, I attach the debug file
home-assistant_weatherflow_cloud_2024-03-09T21-06-30.573Z.log

@chris4prez
Copy link
Author

If either of these PRs gets merged should fix the issue I believe

I loaded 2024.3.1 and see reference to bump of weatherflowpy and you mention the merge above, yet issues persists.

@jeeftor
Copy link
Contributor

jeeftor commented Mar 14, 2024 via email

@jeeftor
Copy link
Contributor

jeeftor commented Mar 15, 2024

So now I'm confused ... In my current version of the lib there is a test to validate that field is optional and it passes so I'm wondering if something didn't make it into the point release yet. Looks like you should have 0.2.13 and the latest is 0.2.15 but the changes between those two were mostly debugging changes.

@jeeftor
Copy link
Contributor

jeeftor commented Mar 15, 2024

May take a version or two more to get this right... hoping to get better debug info into the backing lib as well.

@chris4prez
Copy link
Author

Thanks, appreciate it! Keep up the awesome work. As much as I love running things locally, I prioritize security when feasible and prefer to keep the weatherflow on an isolated VLAN with all my IoTs so this integration is game changer to finally have functional localized weather, even if I have to hit the cloud for it.

@jeeftor
Copy link
Contributor

jeeftor commented Mar 15, 2024

Are you able to modify the manifest to version 0.2.15 of the backing lib - it has MUCH better debug info I believe

@jeeftor
Copy link
Contributor

jeeftor commented Mar 15, 2024

I just refactored the backing library test infrastructure so moving forward if I can get "bad" data from people I can just toss it in and run the tests against everything in there

@jeeftor
Copy link
Contributor

jeeftor commented Mar 15, 2024

Or maybe can you turn on weatherflow4py: debug in the logging section of your configuration.yaml so I can get a bad data from you?

@chris4prez
Copy link
Author

chris4prez commented Mar 15, 2024

Are you able to modify the manifest to version 0.2.15 of the backing lib - it has MUCH better debug info I believe

Or maybe can you turn on weatherflow4py: debug in the logging section of your configuration.yaml so I can get a bad data from you?

I just refactored the backing library test infrastructure so moving forward if I can get "bad" data from people I can just toss it in and run the tests against everything in there

Are you able to modify the manifest to version 0.2.15 of the backing lib - it has MUCH better debug info I believe

Not sure I've ever done that but if you can tell me what you need done, I can do it, else your last comment regarding debug in config.yaml, I can surely do that.

@jeeftor
Copy link
Contributor

jeeftor commented Mar 15, 2024

I think this is the issue:

image

Still using an old backing lib in the current 2024.3.1 release

@chris4prez
Copy link
Author

Here is the debug too.

KeyError: 'precip_icon'
2024-03-15 11:49:25.198 DEBUG (MainThread) [homeassistant.components.weatherflow_cloud] Finished fetching weatherflow_cloud data in 0.873 seconds (success: False)
2024-03-15 11:50:05.783 ERROR (MainThread) [homeassistant.components.weatherflow_cloud] Unexpected error fetching weatherflow_cloud data: 'precip_icon'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 318, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/weatherflow_cloud/coordinator.py", line 35, in _async_update_data
return await self.weather_api.get_all_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 137, in get_all_data
weather=await self.async_get_forecast(station_id=station.station_id),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 85, in async_get_forecast
return await self._make_request(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 44, in _make_request
response_model.from_json(data)
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/api.py", line 63, in from_json
return cls.from_dict(kvs, infer_missing=infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/api.py", line 70, in from_dict
return _decode_dataclass(cls, kvs, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 216, in _decode_dataclass
value = _decode_dataclass(field_type, field_value,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 220, in _decode_dataclass
init_kwargs[field.name] = _decode_generic(field_type,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 291, in _decode_generic
xs = _decode_items(get_type_arg_param(type, 0), value, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 399, in _decode_items
return list(_decode_item(type_args, x) for x in xs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 399, in
return list(_decode_item(type_args, x) for x in xs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 372, in _decode_item
return _decode_dataclass(type_arg, x, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 172, in _decode_dataclass
field_value = kvs[field.name]
~~~^^^^^^^^^^^^
KeyError: 'precip_icon'
2024-03-15 11:50:05.796 DEBUG (MainThread) [homeassistant.components.weatherflow_cloud] Finished fetching weatherflow_cloud data in 0.441 seconds (success: False)

@jeeftor
Copy link
Contributor

jeeftor commented Mar 15, 2024

So I'm about 90% sure this will be solved once we get a release with the correct backing lib version.

In the short term if you are motivated you can pull your data from here:

https://weatherflow.github.io/Tempest/api/swagger/

And I can look at it ... but otherwise I really do "think" we are in the clear currently

@chris4prez
Copy link
Author

Has correct lib version been implemented? On 2024.4.0 and issue still persists.

@jeeftor
Copy link
Contributor

jeeftor commented Apr 3, 2024 via email

@jeeftor
Copy link
Contributor

jeeftor commented Apr 4, 2024

Sooo... I mean probably there is still a bug - I just upgraded and I thought if we did debugging it would do the backing lib but looks like I may need to enable it manually:

image

So if you toss this in the logger ... are you able to see which data element is being "bad" ?

@jeeftor
Copy link
Contributor

jeeftor commented Apr 4, 2024

I need your test data I guess to validate everything ... and we can track this down because I'm "done gone confused" (probably because in colorado I only get a limited set of weather conditions)

@chris4prez
Copy link
Author

I need your test data I guess to validate everything ... and we can track this down because I'm "done gone confused" (probably because in colorado I only get a limited set of weather conditions)

I'm in Florida so def see different weather than you. Let me know what you need and I'll grab it for you.

@chris4prez
Copy link
Author

Here are the three that keep showing up alot including the precip_icon.
Screenshot 2024-04-04 at 10 03 17 AM

precip_icon
Logger: homeassistant.components.weatherflow_cloud
Source: helpers/update_coordinator.py:315
integration: WeatherflowCloud (documentation, issues)
First occurred: April 3, 2024 at 3:16:05 PM (820 occurrences)
Last logged: 9:55:36 AM

Unexpected error fetching weatherflow_cloud data: 'precip_icon'
Unexpected error fetching weatherflow_cloud data: 'stations'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/weatherflow_cloud/coordinator.py", line 36, in _async_update_data
return await self.weather_api.get_all_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 168, in get_all_data
weather=await self.async_get_forecast(station_id=station.station_id),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 99, in async_get_forecast
return await self._make_request(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 61, in _make_request
raise e
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 56, in _make_request
return response_model.from_json(data) if response_model else None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/api.py", line 63, in from_json
return cls.from_dict(kvs, infer_missing=infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/api.py", line 70, in from_dict
return _decode_dataclass(cls, kvs, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 216, in _decode_dataclass
value = _decode_dataclass(field_type, field_value,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 220, in _decode_dataclass
init_kwargs[field.name] = _decode_generic(field_type,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 291, in _decode_generic
xs = _decode_items(get_type_arg_param(type, 0), value, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 399, in _decode_items
return list(_decode_item(type_args, x) for x in xs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 399, in
return list(_decode_item(type_args, x) for x in xs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 372, in _decode_item
return _decode_dataclass(type_arg, x, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 172, in _decode_dataclass
field_value = kvs[field.name]
~~~^^^^^^^^^^^^
KeyError: 'precip_icon'

Unable to convert Data - See Attachment
unable_to_convert_data.txt

Logger: homeassistant.components.weatherflow_cloud
Source: helpers/update_coordinator.py:315
integration: WeatherflowCloud (documentation, issues)
First occurred: April 3, 2024 at 3:32:38 PM (18 occurrences)
Last logged: April 3, 2024 at 9:31:59 PM

Unexpected error fetching weatherflow_cloud data: 'Very Heavy Rain' is not a valid Condition
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/weatherflow_cloud/coordinator.py", line 36, in _async_update_data
return await self.weather_api.get_all_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 168, in get_all_data
weather=await self.async_get_forecast(station_id=station.station_id),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 99, in async_get_forecast
return await self._make_request(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 61, in _make_request
raise e
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 56, in _make_request
return response_model.from_json(data) if response_model else None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/api.py", line 63, in from_json
return cls.from_dict(kvs, infer_missing=infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/api.py", line 70, in from_dict
return _decode_dataclass(cls, kvs, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 216, in _decode_dataclass
value = _decode_dataclass(field_type, field_value,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 220, in _decode_dataclass
init_kwargs[field.name] = _decode_generic(field_type,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 272, in decode_generic
res = type
(value)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/enum.py", line 744, in call
return cls.new(cls, value)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/enum.py", line 1158, in new
raise ve_exc
ValueError: 'Very Heavy Rain' is not a valid Condition
Logger: homeassistant.components.weatherflow_cloud
Source: helpers/update_coordinator.py:315
integration: WeatherflowCloud (documentation, issues)
First occurred: April 3, 2024 at 3:32:38 PM (18 occurrences)
Last logged: April 3, 2024 at 9:31:59 PM

Unexpected error fetching weatherflow_cloud data: 'Very Heavy Rain' is not a valid Condition
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 315, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/weatherflow_cloud/coordinator.py", line 36, in _async_update_data
return await self.weather_api.get_all_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 168, in get_all_data
weather=await self.async_get_forecast(station_id=station.station_id),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 99, in async_get_forecast
return await self._make_request(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 61, in _make_request
raise e
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 56, in _make_request
return response_model.from_json(data) if response_model else None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/api.py", line 63, in from_json
return cls.from_dict(kvs, infer_missing=infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/api.py", line 70, in from_dict
return _decode_dataclass(cls, kvs, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 216, in _decode_dataclass
value = _decode_dataclass(field_type, field_value,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 220, in _decode_dataclass
init_kwargs[field.name] = _decode_generic(field_type,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 272, in decode_generic
res = type
(value)
^^^^^^^^^^^^
File "/usr/local/lib/python3.12/enum.py", line 744, in call
return cls.new(cls, value)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/enum.py", line 1158, in new
raise ve_exc
ValueError: 'Very Heavy Rain' is not a valid Condition

@jeeftor
Copy link
Contributor

jeeftor commented Apr 4, 2024

I can work with Very Heavy Rain thats an easy one - but are you able to pull out the entire JSON for the other stuff. (Download a log and send it to me on here / email or discord?)

image

@jeeftor
Copy link
Contributor

jeeftor commented Apr 4, 2024

Regarding precip_icon

Each forecast element is supposed to have one:

image

So either I'm not parsing it correctly or its missing somewhere -> in which case I'll have to default it to something... so I need to see the actual data to figure out whats up.

@jeeftor
Copy link
Contributor

jeeftor commented Apr 4, 2024

So I'll push a patch with heavy ran and I'm going to make precip_icon optional...

@chris4prez
Copy link
Author

I can work with Very Heavy Rain thats an easy one - but are you able to pull out the entire JSON for the other stuff. (Download a log and send it to me on here / email or discord?)

image

Where can I find the JSON details you need? Just sent you logs too.

@chris4prez
Copy link
Author

Actually where can I send the logs direct to you?

@jeeftor
Copy link
Contributor

jeeftor commented Apr 4, 2024 via email

@jeeftor
Copy link
Contributor

jeeftor commented Apr 4, 2024 via email

@chris4prez
Copy link
Author

logs sent via email let me know where to grab the JSON data you need and I will send that over too.

@jeeftor
Copy link
Contributor

jeeftor commented Apr 4, 2024

Here is the offending data:

      {
        "air_temp_high": 22.0,
        "air_temp_low": 17.0,
        "conditions": "Clear",
        "day_num": 6,
        "day_start_local": 1712376000,
        "icon": "clear-day",
        "month_num": 4,
        "precip_probability": 0,
        "sunrise": 1712402105,
        "sunset": 1712447494
      },

@jeeftor
Copy link
Contributor

jeeftor commented Apr 4, 2024

and PR submitted.. :)

@chris4prez
Copy link
Author

Looks like the fix made it into 2024.4.1. So far all is working... Will monitor in the coming days for any issues.

@jeeftor
Copy link
Contributor

jeeftor commented Apr 7, 2024

All hail the finally being fixed!!!!

@issue-triage-workflows
Copy link

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@issue-triage-workflows issue-triage-workflows bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 13, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Aug 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants