System Health details
Environment:
- Home Assistant: [your version]
- Garmin Connect integration: [integration version]
- Installation: HACS
Issue:
Occasionally the Body Battery sensor records a single incorrect value before immediately returning to the correct value.
Example:
07:30:49
100% -> 33% -> 100%
Garmin Connect itself does not show this dip. The Body Battery graph in the Garmin app is smooth.
Home Assistant History records the incorrect state, so the sensor itself is changing rather than the graph rendering incorrectly.
At almost the same time, the integration logs repeated Garmin API failures:
502 Server Error
503 Server Error
API call _get_user_summary_raw failed after 3 retries
This suggests the integration may be updating entities with incomplete or invalid data after an API failure instead of retaining the previous valid state.
Expected behaviour:
If the Garmin API request fails or returns incomplete data, the integration should keep the previous Body Battery value (or mark the entity unavailable) rather than publishing an incorrect value.
Checklist
Describe the issue
Environment:
- Home Assistant: [your version]
- Garmin Connect integration: [integration version]
- Installation: HACS
Issue:
Occasionally the Body Battery sensor records a single incorrect value before immediately returning to the correct value.
Example:
07:30:49
100% -> 33% -> 100%
Garmin Connect itself does not show this dip. The Body Battery graph in the Garmin app is smooth.
Home Assistant History records the incorrect state, so the sensor itself is changing rather than the graph rendering incorrectly.
At almost the same time, the integration logs repeated Garmin API failures:
502 Server Error
503 Server Error
API call _get_user_summary_raw failed after 3 retries
This suggests the integration may be updating entities with incomplete or invalid data after an API failure instead of retaining the previous valid state.
Expected behaviour:
If the Garmin API request fails or returns incomplete data, the integration should keep the previous Body Battery value (or mark the entity unavailable) rather than publishing an incorrect value.
Reproduction steps
...
Debug logs
Diagnostics dump
No response
System Health details
Environment:
Issue:
Occasionally the Body Battery sensor records a single incorrect value before immediately returning to the correct value.
Example:
07:30:49
100% -> 33% -> 100%
Garmin Connect itself does not show this dip. The Body Battery graph in the Garmin app is smooth.
Home Assistant History records the incorrect state, so the sensor itself is changing rather than the graph rendering incorrectly.
At almost the same time, the integration logs repeated Garmin API failures:
502 Server Error
503 Server Error
API call _get_user_summary_raw failed after 3 retries
This suggests the integration may be updating entities with incomplete or invalid data after an API failure instead of retaining the previous valid state.
Expected behaviour:
If the Garmin API request fails or returns incomplete data, the integration should keep the previous Body Battery value (or mark the entity unavailable) rather than publishing an incorrect value.
Checklist
Describe the issue
Environment:
Issue:
Occasionally the Body Battery sensor records a single incorrect value before immediately returning to the correct value.
Example:
07:30:49
100% -> 33% -> 100%
Garmin Connect itself does not show this dip. The Body Battery graph in the Garmin app is smooth.
Home Assistant History records the incorrect state, so the sensor itself is changing rather than the graph rendering incorrectly.
At almost the same time, the integration logs repeated Garmin API failures:
502 Server Error
503 Server Error
API call _get_user_summary_raw failed after 3 retries
This suggests the integration may be updating entities with incomplete or invalid data after an API failure instead of retaining the previous valid state.
Expected behaviour:
If the Garmin API request fails or returns incomplete data, the integration should keep the previous Body Battery value (or mark the entity unavailable) rather than publishing an incorrect value.
Reproduction steps
...
Debug logs
Diagnostics dump
No response