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

10 is an unsupported value for <enum 'MeasurementAttribution'> #86

Open
SteffenM-DE opened this issue Nov 2, 2023 · 24 comments
Open

10 is an unsupported value for <enum 'MeasurementAttribution'> #86

SteffenM-DE opened this issue Nov 2, 2023 · 24 comments
Labels
no-stale This issue or PR is exempted from the stable bot.

Comments

@SteffenM-DE
Copy link

Problem/Motivation

Everytime I see Warnings of values.

Expected behavior

No warnings and handel all values.

Actual behavior

[aiowithings] 10 is an unsupported value for <enum 'MeasurementAttribution'>, please report this at https://github.com/joostlek/python-withings/issues

Steps to reproduce

Restart Home Assistant and look in the home-assistant.log

@joostlek
Copy link
Owner

joostlek commented Nov 4, 2023

Thanks for creating this issue. Can you maybe explain a bit more on what kind of measurements this is?

Withings marks every measurement with an attribution to say how measurements are attributed to the user. For example, someone stood on the scale and withings can't really recognize if you are the one on the scale or someone else. There's also a different value for measurements that are not 100% sure but got confirmed in the app.

So if you can maybe tell a bit more about how this can be reproduced, I can also try.

Last time I checked the API docs, this value wasn't there. I will double check later.

@joostlek
Copy link
Owner

joostlek commented Nov 4, 2023

The withings API docs aren't updated yet, so I think I can't really fix this until I certainly know what this value means.Screenshot_20231104-194209.png

@Villa-Buenavista
Copy link

I found this in my logs:

Protokolldetails (WARNUNG)

Logger: aiowithings
Source: components/withings/coordinator.py:96
First occurred: 16:50:02 (1 occurrences)
Last logged: 16:50:02
10 is an unsupported value for <enum 'MeasurementAttribution'>, please report this at https://github.com/joostlek/python-withings/issues
280485469-c706669a-2eed-466b-abed-7f1b9968f8b2

I will try to restart to see if I can find out more.

@joostlek joostlek changed the title Unsupported Value Warnings if using Home Assistant Withings Integration 10 is an unsupported value for <enum 'MeasurementAttribution'> Nov 4, 2023
@Villa-Buenavista
Copy link

Yes, I receive this message at every restart:

Logger: aiowithings
Source: components/withings/coordinator.py:96
First occurred: 20:05:59 (1 occurrences)
Last logged: 20:05:59

10 is an unsupported value for <enum 'MeasurementAttribution'>, please report this at https://github.com/joostlek/python-withings/issues

This below is the diagnostic information of the integration. I switched on the debugging logging and will report tomorrow.

{
"home_assistant": {
"installation_type": "Home Assistant OS",
"version": "2023.11.1",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.11.6",
"docker": true,
"arch": "aarch64",
"timezone": "Europe/Berlin",
"os_name": "Linux",
"os_version": "6.1.59",
"supervisor": "2023.10.1",
"host_os": "Home Assistant OS 11.1",
"docker_version": "24.0.6",
"chassis": "embedded",
"run_as_root": true
},
"custom_components": {},
"integration_manifest": {
"domain": "withings",
"name": "Withings",
"after_dependencies": [
"cloud"
],
"codeowners": [
"@joostlek"
],
"config_flow": true,
"dependencies": [
"application_credentials",
"http",
"webhook"
],
"documentation": "https://www.home-assistant.io/integrations/withings",
"iot_class": "cloud_push",
"loggers": [
"aiowithings"
],
"quality_scale": "platinum",
"requirements": [
"aiowithings==1.0.2"
],
"is_built_in": true
},
"data": {
"has_valid_external_webhook_url": true,
"has_cloudhooks": true,
"webhooks_connected": true,
"received_measurements": [
139,
91,
155,
11,
1,
8,
76,
77,
88,
6,
5
],
"received_sleep_data": false,
"received_workout_data": true,
"received_activity_data": false
}
}

@joostlek
Copy link
Owner

joostlek commented Nov 4, 2023

Yes yes, I know this is happening, but can you maybe tell about how this measurement got added to withings? What device do you use? Did you have to do anything special?

@NorbertHD
Copy link

The measuregrp attrib 10 comes with the meastype 91 = "Pulse Wave Velocity".

@manderss99
Copy link

I have a Body Cardio C2 scale and a sleep mat and get same error message in log.
the scale has a pulse wave measurement, I see that the sensor sensor.withings_pulse_wave_velocity_home_assistant has a value which seem to be correct.

Copy link

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Dec 22, 2023
@joostlek
Copy link
Owner

Oh whoops, let me mark it with no-stale

@joostlek joostlek added no-stale This issue or PR is exempted from the stable bot. and removed stale There has not been activity on this issue or PR for quite some time. labels Dec 22, 2023
@djalexnl
Copy link

Also have the same issue, Sleep Analyzer and Body Cardio scale.

@joostlek
Copy link
Owner

Oh amazing, Withings updated their documentation:
afbeelding

Except they added attribution 15 and not 10 🤦🏻‍♂️

@djalexnl
Copy link

Well you found it, thats what matters ;-) Thanks for looking into it..

@joostlek
Copy link
Owner

no I did not find it haha, I need to know what 10 means, but they don't update their docs on time

@Ramias1
Copy link

Ramias1 commented Jan 3, 2024

I'll join the party... Getting these on reboot:
173 is an unsupported value for <enum 'MeasurementType'>, please report this at https://github.com/joostlek/python-withings/issues
226 is an unsupported value for <enum 'MeasurementType'>, please report this at https://github.com/joostlek/python-withings/issues

I have multiple scales, including the newest one with the ECG, both blood pressure cuffs, the pulse Ox sensor and thermometer. Scale is the only one I use with any frequency.

I turned on debug logging and reloaded and see this:
2024-01-03 18:32:08.134 DEBUG (MainThread) [homeassistant.components.withings] Finished fetching Withings measurements data in 0.431 seconds (success: True)
2024-01-03 18:32:08.336 DEBUG (MainThread) [homeassistant.components.withings] Finished fetching Withings workout data in 0.202 seconds (success: True)
2024-01-03 18:32:08.502 DEBUG (MainThread) [homeassistant.components.withings] Finished fetching Withings goals data in 0.164 seconds (success: True)
2024-01-03 18:32:08.791 DEBUG (MainThread) [homeassistant.components.withings] Finished fetching Withings activity data in 0.289 seconds (success: True)
2024-01-03 18:32:08.945 DEBUG (MainThread) [homeassistant.components.withings] Finished fetching Withings sleep data in 0.154 seconds (success: True)
2024-01-03 18:32:08.946 DEBUG (MainThread) [homeassistant.components.withings] Finished fetching Withings bed presence data in 0.000 seconds (success: True)

@joostlek
Copy link
Owner

joostlek commented Jan 3, 2024

Oh but those are different, can you open a new issue? Also include what measurements you see in the app.

@somansch
Copy link

somansch commented Apr 6, 2024

no I did not find it haha, I need to know what 10 means, but they don't update their docs on time

@joostlek , I have the same issue with "10 is an unsupported value". Withings has updated their API docu and "10" is now listed as "Systolic Blodd Pressure": https://developer.withings.com/api-reference/#tag/measure/operation/measure-getmeas

@joostlek
Copy link
Owner

joostlek commented Apr 6, 2024

Sadly not, this is about the attributions found in the 200 response.

image image

@JussiSavola
Copy link

I just installed the withings integration to HA. I can see the following in the log:

Logger: aiowithings
Source: components/withings/coordinator.py:101
First occurred: 12:33:35 (9 occurrences)
Last logged: 12:33:35

10 is an unsupported value for <enum 'MeasurementAttribution'>, please report this at https://github.com/joostlek/python-withings/issues
226 is an unsupported value for <enum 'MeasurementType'>, please report this at https://github.com/joostlek/python-withings/issues

I have Body Cardio (sw version 2231) and Body Smart (1071) scales.

I understand the problem was raised by BodyCardio scale as I have not taken measurements with Body Smart when having the integration active.

@joostlek
Copy link
Owner

Finally found some time to send an email to Withings. Will follow up.

@NorbertHD
Copy link

Finally found some time to send an email to Withings.

Did you get an answer?

@joostlek
Copy link
Owner

Haven't seen any :/

@NeilCrosby
Copy link

As of this morning I am also seeing "226 is an unsupported value for <enum 'MeasurementType'>", using a Body Smart device. These errors started showing up at approximately 0830 BST, having been using the device for months.

@joostlek
Copy link
Owner

joostlek commented Sep 2, 2024

That's a different issue, is already fixed

@mgasparel
Copy link

Getting 4 copies of this error every 10 minutes in the logs. Enabled debug logging to capture whatever additional details I could:

2024-09-10 16:45:19.855 DEBUG (MainThread) [homeassistant.components.withings] Finished fetching Withings 23133307 sleep data in 0.504 seconds (success: True)
2024-09-10 16:45:20.518 DEBUG (MainThread) [homeassistant.components.withings] Finished fetching Withings 23133307 workout data in 0.184 seconds (success: True)
2024-09-10 16:45:20.723 DEBUG (MainThread) [homeassistant.components.withings] Finished fetching Withings 23133307 activity data in 0.198 seconds (success: True)
2024-09-10 16:45:20.741 WARNING (MainThread) [aiowithings] 10 is an unsupported value for <enum 'MeasurementAttribution'>, please report this at https://github.com/joostlek/python-withings/issues
2024-09-10 16:45:20.741 WARNING (MainThread) [aiowithings] 10 is an unsupported value for <enum 'MeasurementAttribution'>, please report this at https://github.com/joostlek/python-withings/issues
2024-09-10 16:45:20.741 WARNING (MainThread) [aiowithings] 10 is an unsupported value for <enum 'MeasurementAttribution'>, please report this at https://github.com/joostlek/python-withings/issues
2024-09-10 16:45:20.741 WARNING (MainThread) [aiowithings] 10 is an unsupported value for <enum 'MeasurementAttribution'>, please report this at https://github.com/joostlek/python-withings/issues
2024-09-10 16:45:20.742 DEBUG (MainThread) [homeassistant.components.withings] Finished fetching Withings 23133307 measurements data in 0.377 seconds (success: True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-stale This issue or PR is exempted from the stable bot.
Projects
None yet
Development

No branches or pull requests