home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.04k stars 31.07k forks source link

WeatherFlowCloud "Unknown error occured" when adding Personal api token #118819

Closed KB8DOA closed 1 week ago

KB8DOA commented 5 months ago

The problem

WeatherFlowCloud "Unknown error occured" when adding Personal api token during setup. API token is copied from https://tempestwx.com/settings/tokens so it is correct...

What version of Home Assistant Core has the issue?

core-2024.5.5

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

WeatherFlowCloud

Link to integration documentation on our website

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

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[bot] commented 5 months ago

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)

jeeftor commented 5 months ago

Does this work with your token?

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

jeeftor commented 5 months ago
image

Like do any of the endpoints work with your token?

KB8DOA commented 5 months ago

Yes - I was able to apply my api token, and used that site to pull a list of my Station's Equipment:

I did just recently take down the Air/Sky and installed a Tempest, but I cannot get [ @. | @. ] to respond to my email request to merge the old data with the Tempest...

{ "stations": [ { "created_epoch": 1511721569, "devices": [ { "device_id": 5600, "device_meta": { "agl": 0, "environment": "indoor", "name": "HB-00004036", "wifi_network_name": "" }, "device_type": "HB", "firmware_revision": "194", "hardware_revision": "0", "location_id": 2879, "serial_number": "HB-00004036" }, { "device_id": 5601, "device_meta": { "agl": 1.8288000226020813, "environment": "outdoor", "name": "Air", "wifi_network_name": "" }, "device_type": "AR", "firmware_revision": "23", "hardware_revision": "1", "location_id": 2879, "serial_number": "AR-00008924" }, { "device_id": 62617, "device_meta": { "agl": 5.18160006403923, "environment": "outdoor", "name": "Sky", "wifi_network_name": "" }, "device_settings": { "show_precip_final": false }, "device_type": "SK", "firmware_revision": "43", "hardware_revision": "1", "location_id": 2879, "serial_number": "SK-00003509" }, { "device_id": 346060, "device_meta": { "agl": 5.18160006403923, "environment": "outdoor", "name": "ST-00030458", "wifi_network_name": "" }, "device_settings": { "show_precip_final": false }, "device_type": "ST", "firmware_revision": "134", "hardware_revision": "1", "location_id": 2879, "serial_number": "ST-00030458" } ], "is_local_mode": false, "last_modified_epoch": 1656428823, "latitude": 26.51912, "location_id": 2879, "longitude": -80.96618, "name": "Vitambi Springs", "public_name": "Vitambi Springs", "station_id": 2879, "station_items": [ { "device_id": 5601, "item": "air_temperature_humidity", "location_id": 2879, "location_item_id": 12948, "sort": 0, "station_id": 2879, "station_item_id": 12948 }, { "device_id": 346060, "item": "air_temperature_humidity", "location_id": 2879, "location_item_id": 1131795, "sort": 6, "station_id": 2879, "station_item_id": 1131795 }, { "device_id": 5601, "item": "barometric_pressure", "location_id": 2879, "location_item_id": 12949, "sort": 1, "station_id": 2879, "station_item_id": 12949 }, { "device_id": 346060, "item": "barometric_pressure", "location_id": 2879, "location_item_id": 1131797, "sort": 7, "station_id": 2879, "station_item_id": 1131797 }, { "device_id": 346060, "item": "diagnostics", "location_id": 2879, "location_item_id": 1131801, "station_id": 2879, "station_item_id": 1131801 }, { "device_id": 5600, "item": "diagnostics", "location_id": 2879, "location_item_id": 874499, "sort": 12, "station_id": 2879, "station_item_id": 874499 }, { "device_id": 5601, "item": "diagnostics", "location_id": 2879, "location_item_id": 874500, "sort": 13, "station_id": 2879, "station_item_id": 874500 }, { "device_id": 62617, "item": "diagnostics", "location_id": 2879, "location_item_id": 874501, "sort": 14, "station_id": 2879, "station_item_id": 874501 }, { "item": "forecast", "location_id": 2879, "location_item_id": 361032, "sort": 15, "station_id": 2879, "station_item_id": 361032 }, { "device_id": 62617, "item": "light", "location_id": 2879, "location_item_id": 148352, "sort": 4, "station_id": 2879, "station_item_id": 148352 }, { "device_id": 346060, "item": "light", "location_id": 2879, "location_item_id": 1131799, "sort": 10, "station_id": 2879, "station_item_id": 1131799 }, { "device_id": 5601, "item": "lightning", "location_id": 2879, "location_item_id": 12950, "sort": 2, "station_id": 2879, "station_item_id": 12950 }, { "device_id": 346060, "item": "lightning", "location_id": 2879, "location_item_id": 1131796, "sort": 8, "station_id": 2879, "station_item_id": 1131796 }, { "device_id": 62617, "item": "rain", "location_id": 2879, "location_item_id": 148351, "sort": 5, "station_id": 2879, "station_item_id": 148351 }, { "device_id": 346060, "item": "rain", "location_id": 2879, "location_item_id": 1131798, "sort": 11, "station_id": 2879, "station_item_id": 1131798 }, { "device_id": 62617, "item": "wind", "location_id": 2879, "location_item_id": 148353, "sort": 3, "station_id": 2879, "station_item_id": 148353 }, { "device_id": 346060, "item": "wind", "location_id": 2879, "location_item_id": 1131800, "sort": 9, "station_id": 2879, "station_item_id": 1131800 } ], "station_meta": { "elevation": 5.638800069689751, "share_with_wf": true, "share_with_wu": true }, "timezone": "America/New_York", "timezone_offset_minutes": -240 } ], "status": { "status_code": 0, "status_message": "SUCCESS" } }

From: "Jeef" @.> To: "home-assistant/core" @.> Cc: "KB8DOA" @.>, "Author" @.> Sent: Tuesday, June 4, 2024 12:08:56 PM Subject: Re: [home-assistant/core] WeatherFlowCloud "Unknown error occured" when adding Personal api token (Issue #118819)

Does this work with your token?

[ https://weatherflow.github.io/Tempest/api/swagger/ | https://weatherflow.github.io/Tempest/api/swagger/ ]

— Reply to this email directly, [ https://github.com/home-assistant/core/issues/118819#issuecomment-2147909782 | view it on GitHub ] , or [ https://github.com/notifications/unsubscribe-auth/AMGZVMQWPPTTDYAQ7OB5KZLZFXRBRAVCNFSM6AAAAABIY2JFKSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBXHEYDSNZYGI | unsubscribe ] . You are receiving this because you authored the thread. Message ID: @.***>

fstanley commented 5 months ago

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

craigwitter commented 5 months ago

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'

VikCyc commented 5 months ago

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_argparam(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 _decodegeneric(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'
craigwitter commented 5 months ago

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" } }

craigwitter commented 5 months ago

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

jeeftor commented 4 months ago

I'm going to run this data as a test case an get back to you

image

So at least I 100% am seeing what you are showing on the test data :)

craigwitter commented 4 months ago

A quick update - Oddly my weather station decided to die last Thursday. I ended up buying another (for a 50% discount), I installed it on Sunday and this one doesn't have the problem. I suspect the issue is completely due to their API. For reference this device would have been one of their first, as I got it through kickstarter.

Thanks for your hard work.

Craig

On Mon, Jul 29, 2024 at 9:04 AM Jeef @.***> wrote:

I'm going to run this data as a test case an get back to you

— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/118819#issuecomment-2255883465, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADDNYG6JCKECRKPUVXO7PR3ZOY4XFAVCNFSM6AAAAABIY2JFKSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJVHA4DGNBWGU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jeeftor commented 4 months ago

In that case ... I'll - just pretend this issue never happened and wait for somebody else to complain :)

(Also some of the sensors should show up in the next release of home assistant...) [no wind sensors because we couldn't agree on update rate and I need to do a separate PR for that]

sweatyeti commented 3 months ago

My sensors stopped working a week or so ago, finally started digging into this today. Removed the integration (was using the local UDP one which also stopped working even though the log was showing the UDP traffic being broadcast. (EDIT: I later re-added the local integration and it was working fine. I now just want to have the cloud as well for some of the extra stuff that's published there). I tried adding the cloud version and I also get "Unknown error occurred" when submitting the API key. Testing the Tempest swagger endpoint with my key also works fine. My tempest is a couple years old, with no plans of getting any new one any time soon unless this one bites the dust.

Below are the log entries from HASS that appear when adding the API key:

2024-08-15 12:09:21.420 ERROR (MainThread) [weatherflow4py] Unable to convert data || {"stations":[{"created_epoch":1592604822,"devices":[{"device_id":71929,"device_meta":{"agl":0.0,"environment":"indoor","name":"HB-00009002","wifi_network_name":""},"device_type":"HB","firmware_revision":"194","hardware_revision":"0","location_id":21530,"serial_number":"HB-00009002"},{"device_id":71930,"device_meta":{"agl":2.4384000301361084,"environment":"outdoor","name":"ST-00005685","wifi_network_name":""},"device_settings":{"show_precip_final":false},"device_type":"ST","firmware_revision":"176","hardware_revision":"1","location_id":21530,"serial_number":"ST-00009018"}],"is_local_mode":false,"last_modified_epoch":1656428823,"latitude":32.94673,"location_id":21530,"longitude":-96.94522,"name":"weatherflow","public_name":"Northeast Valley Ranch","station_id":21530,"station_items":[{"device_id":71930,"item":"air_temperature_humidity","location_id":21530,"location_item_id":176272,"sort":0,"station_id":21530,"station_item_id":176272},{"device_id":71930,"item":"barometric_pressure","location_id":21530,"location_item_id":176274,"sort":1,"station_id":21530,"station_item_id":176274},{"device_id":71929,"item":"diagnostics","location_id":21530,"location_item_id":185599,"station_id":21530,"station_item_id":185599},{"device_id":71930,"item":"diagnostics","location_id":21530,"location_item_id":185600,"sort":6,"station_id":21530,"station_item_id":185600},{"item":"forecast","location_id":21530,"location_item_id":185601,"sort":7,"station_id":21530,"station_item_id":185601},{"device_id":71930,"item":"light","location_id":21530,"location_item_id":176276,"sort":4,"station_id":21530,"station_item_id":176276},{"device_id":71930,"item":"lightning","location_id":21530,"location_item_id":176273,"sort":2,"station_id":21530,"station_item_id":176273},{"device_id":71930,"item":"rain","location_id":21530,"location_item_id":176275,"sort":5,"station_id":21530,"station_item_id":176275},{"device_id":71930,"item":"wind","location_id":21530,"location_item_id":176277,"sort":3,"station_id":21530,"station_item_id":176277}],"station_meta":{"elevation":133.3403930664062,"share_with_wf":true,"share_with_wu":true},"timezone":"America/Chicago","timezone_offset_minutes":-300}],"status":{"status_code":0,"status_message":"SUCCESS"}} || to || <class 'weatherflow4py.models.rest.stations.StationsResponseREST'> -- 'device_id'
2024-08-15 12:09:21.422 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_protocol.py", line 459, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_app.py", line 537, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/aiohttp/web_middlewares.py", line 114, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 92, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 83, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 26, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 85, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 242, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/headers.py", line 32, in headers_middleware
response = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/http.py", line 73, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/decorators.py", line 81, in with_admin
return await func(self, request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 222, in post
return await super().post(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 74, in wrapper
return await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 122, in post
result = await self._flow_mgr.async_configure(flow_id, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 366, in async_configure
result = await self._async_configure(flow_id, user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 413, in _async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 516, in _async_handle_step
result: _FlowResultT = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/weatherflow_cloud/config_flow.py", line 71, in async_step_user
errors = await _validate_api_token(api_token)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/weatherflow_cloud/config_flow.py", line 22, in _validate_api_token
await api.async_get_stations()
File "/usr/local/lib/python3.12/site-packages/weatherflow4py/api.py", line 70, in async_get_stations
ret = await self._make_request("stations", response_model=StationsResponseREST)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 <genexpr>
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 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 <genexpr>
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: 'device_id'
jeeftor commented 3 months ago

I have no idea if this is related my Tempest stopped doing anything with air pressure I put in the Support ticket and they said that there was a firmware update that broke some stuff and they needed to push a new one. I am not really a place where I can look at, so I'm just in the dark.

issue-triage-workflows[bot] commented 2 weeks ago

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.