home-assistant-garmin_connect icon indicating copy to clipboard operation
home-assistant-garmin_connect copied to clipboard

Entities showing unknown values

Open motionist opened this issue 1 year ago • 10 comments

Since update to core 2023.7.3 I've been unable to read entity called for entity Next Alarm Time (used as trigger in automations

Quit a few other entities are displaying unknown as well.

motionist avatar Aug 03 '23 03:08 motionist

Hello, same here, all sensors display 'unknown' unfortunately

otorikateo avatar Aug 10 '23 23:08 otorikateo

The integration does not work with core 2023.8.1 version. All entities are unavailable.

Logger: homeassistant.config_entries Source: custom_components/garmin_connect/init.py:40 Integration: Garmin Connect (documentation, issues) First occurred: 11:31:38 (1 occurrences) Last logged: 11:31:38

Error setting up entry for garmin_connect Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 388, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/garmin_connect/init.py", line 40, in async_setup_entry hass.config_entries.async_setup_platforms(entry, PLATFORMS) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'

GalchenkoAlexander avatar Aug 12 '23 08:08 GalchenkoAlexander

I've noticed for individual alarms, the sensor does work, however when next alarm is a recurring alarm it does not.

motionist avatar Aug 18 '23 06:08 motionist

Here too, I can only see the riding distance from my bikes. All other data from my Fenix watch are "unknown"

MarioBerger avatar Oct 29 '23 09:10 MarioBerger

@motionist @MarioBerger can you retry with latest integration- and HA version? (if you still want to use it)

cyberjunky avatar Jan 02 '24 17:01 cyberjunky

I have the same problem, (HA 2024.1 and last version of Garmin Addon) For me it seems that the values go to unknown on midnight: image

kruemelro avatar Jan 09 '24 10:01 kruemelro

I'm having the same issues as @kruemelro . All sensors seem to reset at midnight when they reset to 0. In place of showing the 0 Value, they go to Unavailable until they change to something else (I've tested with steps). I then walk for a bit, open the Garmin Connect app and sync with my smartwatch and then, bam, i can see new values again in HA. Same with everything else.

Xanimun avatar Jan 10 '24 18:01 Xanimun

Hi folks! I actually had the same issue in HA starting from version 2023* i think, in old versions of HA this integration was working fine with my garmin vivosmart HR+. And the issue was on both HA instances in different countries... So, it looked like the issue is not in this HA integration... The solution that solved my issue was - reinstall garmin connect on my phone, and delete the garmin vivosmart hr+ in the app of the phone. After a new "pair" of the device in the phone's app i've got everything working again as in the past in my last version of HA :))

ddt4ever avatar Feb 03 '24 10:02 ddt4ever

I don't think thats the problem cause i have this issue with the garmin index scale, which doesn't sync over the app at all, it syncs directly to garmin connect over a wifi connection. Also i have this issue with 2 seperate Garmin accounts. @cyberjunky could i help you in any way to solve this issue? Providing logs and such things,

kruemelro avatar Feb 17 '24 05:02 kruemelro

I've found the problem and created a pull request #157 with a workaround for the body data. Stress and Sleep Data still getting unknown.

The problem is the api greps these data only for today, and returns unknown if there are no data for today. Thats the reason why the sensors are getting to unknown state on midnight.

I think a real fix this would to check the values and don't return them if there is so data. But i don't know how to implement this

kruemelro avatar Apr 03 '24 06:04 kruemelro