python_withings_api icon indicating copy to clipboard operation
python_withings_api copied to clipboard

Unsupported value

Open parberge opened this issue 2 years ago • 4 comments

I use home assistant integration for withings.

I first created the issue on that repo (https://github.com/home-assistant/core/issues/68545) but I guess this is the right place.

I get this warning and has for a long time:

2022-03-23 11:19:47 WARNING (SyncWorker_8) [python_withings_api] Unsupported <enum 'MeasureGetMeasGroupAttrib'> value 10. Replacing with UNKNOWN value MeasureGetMeasGroupAttrib.UNKNOWN. Please report this warning to the developer to ensure proper support.

Please let me know what I can do to help.

parberge avatar Mar 23 '22 10:03 parberge

I also found another unsupported warning, this time for SleepState.

Unsupported <enum 'SleepState'> value 5. Replacing with UNKNOWN value SleepState.UNKNOWN. Please report this warning to the developer to ensure proper support.

IgorMatias3 avatar Mar 31 '22 19:03 IgorMatias3

And this

Unsupported <enum 'MeasureGetMeasGroupAttrib'> value 10000. Replacing with UNKNOWN value MeasureGetMeasGroupAttrib.UNKNOWN. Please report this warning to the developer to ensure proper support.

IgorMatias3 avatar Mar 31 '22 19:03 IgorMatias3

Same here many times a day:

2023-04-09 15:47:43.647 WARNING (SyncWorker_1) [python_withings_api] Unsupported <enum 'MeasureType'> value 155. Replacing with UNKNOWN value MeasureType.UNKNOWN. Please report this warning to the developer to ensure proper support.

SteffenM-DE avatar Apr 09 '23 14:04 SteffenM-DE

Here are three from me:

2023-10-06 10:29:10.345 WARNING (SyncWorker_49) [python_withings_api] Unsupported <enum 'MeasureType'> value 155. Replacing with UNKNOWN value -999999. Please report this warning to the developer to ensure proper support.
2023-10-06 10:29:10.346 WARNING (SyncWorker_49) [python_withings_api] Unsupported <enum 'MeasureType'> value 167. Replacing with UNKNOWN value -999999. Please report this warning to the developer to ensure proper support.
2023-10-06 10:29:10.347 WARNING (SyncWorker_49) [python_withings_api] Unsupported <enum 'MeasureType'> value 170. Replacing with UNKNOWN value -999999. Please report this warning to the developer to ensure proper support.

Olen avatar Oct 06 '23 08:10 Olen

I am also getting some error messages for MeasureGetMeasGroupAttrib 10 and MeasureType 155.

I had a look at the Withings API which says:

  • 155 is "Vascular age"
  • 167 is "Nerve Health Score Conductance 2 electrodes Feet"
  • 170 is "Visceral Fat (without unity)"

Most likely these are newer types that didn't exist before, and need to be added to the plugin.

As for MeasureGetMeasGroupAttrib, from the response example in that same API reference page, it seems like it does return an measuregrps->attrib value in the JSON. And looking up MeasureGetMeasGroupAttrib in this repo I found it in common.py line 125. Seems like this is a value for valid data sources for the measurements, though it only goes to 8 in the current plugin code.

I was unable to find a list of the valid values in the Withings API, so I have no idea what the new value 10 (or 10000) is supposed to be. I doubt that this error in particular is of any consequence though, since I don't think the data source is saved or displayed in HA?

But the new measurement types would probably need to be added if anyone wants to track those values in their HA.

Mythrix avatar Apr 22 '24 17:04 Mythrix

Closing this since home assistant is using https://github.com/joostlek/python-withings instead

parberge avatar Apr 23 '24 06:04 parberge