Giter Club home page Giter Club logo

Comments (9)

VikCyc avatar VikCyc commented on June 29, 2024 1

This integration used to work, but then started giving an error message. I've removed the integration and tried to re-install it. I currently get three errors in the log, one is similar to the one from craigwitter. Another error is "Unexpected error fetching weatherflow_cloud data". Log details are below:

Logger: homeassistant.components.weatherflow_cloud
Source: helpers/update_coordinator.py:312
integration: WeatherflowCloud (documentation, issues)
First occurred: 2:45:20 PM (12 occurrences)
Last logged: 2:56:12 PM

Unexpected error fetching weatherflow_cloud data
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 312, 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 169, in get_all_data
observation=await self.async_get_observation(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 134, in async_get_observation
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 233, in _decode_dataclass
init_kwargs[field.name] = _decode_generic(field_type,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 315, 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 410, in _decode_items
return list(_decode_type(type_args, x, infer_missing) for x in xs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 410, in
return list(_decode_type(type_args, x, infer_missing) for x in xs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 247, in _decode_type
return decode_generic(type, value, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 321, in _decode_generic
res = _decode_dataclass(origin, value, infer_missing)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/dataclasses_json/core.py", line 185, in _decode_dataclass
field_value = kvs[field.name]
~~~^^^^^^^^^^^^
KeyError: 'air_density'

from core.

home-assistant avatar home-assistant commented on June 29, 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)

from core.

jeeftor avatar jeeftor commented on June 29, 2024

Does this work with your token?

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

from core.

jeeftor avatar jeeftor commented on June 29, 2024
image

Like do any of the endpoints work with your token?

from core.

KB8DOA avatar KB8DOA commented on June 29, 2024

from core.

fstanley avatar fstanley commented on June 29, 2024

I am having the same problem. Trying to set up a new home assistant instance. When integrating to the Tempest weather station, I get the same error as the original poster. I tried https://weatherflow.github.io/Tempest/api/swagger/ as @jeeftor posted above. That works fine with my personal api token. I am able to utilize the API to view my station. But no luck with home assistant

from core.

craigwitter avatar craigwitter commented on June 29, 2024

I get this error in the log when trying to add my api key>

Unable to convert data || {"stations":[{"created_epoch":1594068237,"devices":[{"device_id":76102,"device_meta":{"agl":0.0,"environment":"indoor","name":"HB-00018767","wifi_network_name":""},"device_type":"HB","firmware_revision":"194","hardware_revision":"0","location_id":22993,"serial_number":"HB-00018767"},{"device_id":76143,"device_meta":{"agl":1.8288000226020813,"environment":"outdoor","name":"ST-00007277","wifi_network_name":""},"device_settings":{"show_precip_final":true},"device_type":"ST","firmware_revision":"176","hardware_revision":"1","location_id":22993,"serial_number":"ST-00007277"}],"is_local_mode":false,"last_modified_epoch":1694717198,"latitude":42.29748,"location_id":22993,"longitude":-83.45264,"name":"TrentCt ","public_name":"Trent Ct","station_id":22993,"station_items":[{"device_id":76143,"item":"air_temperature_humidity","location_id":22993,"location_item_id":189499,"sort":0,"station_id":22993,"station_item_id":189499},{"device_id":76143,"item":"barometric_pressure","location_id":22993,"location_item_id":189501,"sort":1,"station_id":22993,"station_item_id":189501},{"device_id":76102,"item":"diagnostics","location_id":22993,"location_item_id":194623,"station_id":22993,"station_item_id":194623},{"device_id":76143,"item":"diagnostics","location_id":22993,"location_item_id":194624,"station_id":22993,"station_item_id":194624},{"item":"forecast","location_id":22993,"location_item_id":194622,"station_id":22993,"station_item_id":194622},{"device_id":76143,"item":"light","location_id":22993,"location_item_id":189503,"sort":4,"station_id":22993,"station_item_id":189503},{"device_id":76143,"item":"lightning","location_id":22993,"location_item_id":189500,"sort":2,"station_id":22993,"station_item_id":189500},{"device_id":76143,"item":"rain","location_id":22993,"location_item_id":189502,"sort":5,"station_id":22993,"station_item_id":189502},{"device_id":76143,"item":"wind","location_id":22993,"location_item_id":189504,"sort":3,"station_id":22993,"station_item_id":189504}],"station_meta":{"elevation":204.6601867675781,"share_with_wf":true,"share_with_wu":true},"timezone":"America/Detroit","timezone_offset_minutes":-240}],"status":{"status_code":0,"status_message":"SUCCESS"}} || to || <class 'weatherflow4py.models.rest.stations.StationsResponseREST'> -- 'device_id'

from core.

craigwitter avatar craigwitter commented on June 29, 2024

For my error, swagger seems fine>

{
"stations": [
{
"created_epoch": 1594068237,
"devices": [
{
"device_id": 76102,
"device_meta": {
"agl": 0,
"environment": "indoor",
"name": "HB-00018767",
"wifi_network_name": ""
},
"device_type": "HB",
"firmware_revision": "194",
"hardware_revision": "0",
"location_id": 22993,
"serial_number": "HB-00018767"
},
{
"device_id": 76143,
"device_meta": {
"agl": 1.8288000226020813,
"environment": "outdoor",
"name": "ST-00007277",
"wifi_network_name": ""
},
"device_settings": {
"show_precip_final": true
},
"device_type": "ST",
"firmware_revision": "176",
"hardware_revision": "1",
"location_id": 22993,
"serial_number": "ST-00007277"
}
],
"is_local_mode": false,
"last_modified_epoch": 1694717198,
"latitude": 42.29748,
"location_id": 22993,
"longitude": -83.45264,
"name": "TrentCt ",
"public_name": "Trent Ct",
"station_id": 22993,
"station_items": [
{
"device_id": 76143,
"item": "air_temperature_humidity",
"location_id": 22993,
"location_item_id": 189499,
"sort": 0,
"station_id": 22993,
"station_item_id": 189499
},
{
"device_id": 76143,
"item": "barometric_pressure",
"location_id": 22993,
"location_item_id": 189501,
"sort": 1,
"station_id": 22993,
"station_item_id": 189501
},
{
"device_id": 76102,
"item": "diagnostics",
"location_id": 22993,
"location_item_id": 194623,
"station_id": 22993,
"station_item_id": 194623
},
{
"device_id": 76143,
"item": "diagnostics",
"location_id": 22993,
"location_item_id": 194624,
"station_id": 22993,
"station_item_id": 194624
},
{
"item": "forecast",
"location_id": 22993,
"location_item_id": 194622,
"station_id": 22993,
"station_item_id": 194622
},
{
"device_id": 76143,
"item": "light",
"location_id": 22993,
"location_item_id": 189503,
"sort": 4,
"station_id": 22993,
"station_item_id": 189503
},
{
"device_id": 76143,
"item": "lightning",
"location_id": 22993,
"location_item_id": 189500,
"sort": 2,
"station_id": 22993,
"station_item_id": 189500
},
{
"device_id": 76143,
"item": "rain",
"location_id": 22993,
"location_item_id": 189502,
"sort": 5,
"station_id": 22993,
"station_item_id": 189502
},
{
"device_id": 76143,
"item": "wind",
"location_id": 22993,
"location_item_id": 189504,
"sort": 3,
"station_id": 22993,
"station_item_id": 189504
}
],
"station_meta": {
"elevation": 204.6601867675781,
"share_with_wf": true,
"share_with_wu": true
},
"timezone": "America/Detroit",
"timezone_offset_minutes": -240
}
],
"status": {
"status_code": 0,
"status_message": "SUCCESS"
}
}

from core.

craigwitter avatar craigwitter commented on June 29, 2024

Still seeing> Unable to convert data || {"stations":[{"created_epoch":1594068237,"devices":[{"device_id":76102,"device_meta":{"agl":0.0,"environment":"indoor","name":"HB-00018767","wifi_network_name":""},"device_type":"HB","firmware_revision":"194","hardware_revision":"0","location_id":22993,"serial_number":"HB-00018767"},{"device_id":76143,"device_meta":{"agl":1.8288000226020813,"environment":"outdoor","name":"ST-00007277","wifi_network_name":""},"device_settings":{"show_precip_final":true},"device_type":"ST","firmware_revision":"176","hardware_revision":"1","location_id":22993,"serial_number":"ST-00007277"}],"is_local_mode":false,"last_modified_epoch":1694717198,"latitude":42.29748,"location_id":22993,"longitude":-83.45264,"name":"TrentCt ","public_name":"Trent Ct","station_id":22993,"station_items":[{"device_id":76143,"item":"air_temperature_humidity","location_id":22993,"location_item_id":189499,"sort":0,"station_id":22993,"station_item_id":189499},{"device_id":76143,"item":"barometric_pressure","location_id":22993,"location_item_id":189501,"sort":1,"station_id":22993,"station_item_id":189501},{"device_id":76102,"item":"diagnostics","location_id":22993,"location_item_id":194623,"station_id":22993,"station_item_id":194623},{"device_id":76143,"item":"diagnostics","location_id":22993,"location_item_id":194624,"station_id":22993,"station_item_id":194624},{"item":"forecast","location_id":22993,"location_item_id":194622,"station_id":22993,"station_item_id":194622},{"device_id":76143,"item":"light","location_id":22993,"location_item_id":189503,"sort":4,"station_id":22993,"station_item_id":189503},{"device_id":76143,"item":"lightning","location_id":22993,"location_item_id":189500,"sort":2,"station_id":22993,"station_item_id":189500},{"device_id":76143,"item":"rain","location_id":22993,"location_item_id":189502,"sort":5,"station_id":22993,"station_item_id":189502},{"device_id":76143,"item":"wind","location_id":22993,"location_item_id":189504,"sort":3,"station_id":22993,"station_item_id":189504}],"station_meta":{"elevation":204.6601867675781,"share_with_wf":true,"share_with_wu":true},"timezone":"America/Detroit","timezone_offset_minutes":-240}],"status":{"status_code":0,"status_message":"SUCCESS"}} || to || <class 'weatherflow4py.models.rest.stations.StationsResponseREST'> -- 'device_id'

Though

from core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.