HealthKit sensors without any samples are registered and stay unavailable (iPhone without glucose/temperature data, iPad)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by locating the HealthKit sensor registration and sample availability handling in the iOS app; the issue does not name the files or tests. Check how supported HealthKit types are registered when they have no samples or read access, then decide which expected behavior fits the project. Done means types with no applicable data no longer appear as permanently unavailable, with relevant behavior covered by tests.
索引モデルが issue の本文から書いたものです。
説明
iOS device, version and app version
- iPhone (iPhone19,2), iOS 27.3, app 2026.11.0 (2026.3388)
- iPad Pro 12.9" (iPad8,11), iPadOS 27.3, app 2026.11.0 (2026.3388)
Home Assistant Core Version
2026.12.0b2
Describe the bug
The HealthKit sensors are registered for every supported type, also when the device has no samples of that type (or no Health data at all). Those sensors then stay unavailable forever:
- iPhone:
basal_body_temperature,body_temperature,blood_glucose(no device that measures these is paired, so HealthKit has no samples) - iPad: all 17 health sensors (
heart_rate,weight,vo2_max,blood_pressure_*,respiratory_rate,blood_oxygen,in_bed, …) — the iPad is not a health data source
unavailable is the state for "cannot reach the device", so these show the warning mark and end up in every "unavailable entities" list, next to real problems.
To Reproduce
- Install the app on an iPhone without, for example, a glucose meter, or on an iPad.
- Grant Health access (or not).
- The sensors for types without samples are created and stay
unavailable.
Expected behavior
One of:
- only register a HealthKit sensor once the type has at least one sample (and/or read access was granted), or
- report
unknowninstead ofunavailablewhen there is simply no sample yet.
Additional context
Related: #6293 (hinge/pose sensors registered on a non-foldable iPhone/iPad, same pattern). General discussion about "not applicable" vs "unavailable": home-assistant/feature-requests discussion #5752.
- 主要言語
- Swift
- スター
- 2.4k
- フォーク
- 583
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 82
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
home-assistant/iOS のほかの issue
-
bug mac
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
home-assistant/iOS#6328 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Custom widget "URL" tap action shows "<host> is not a valid path" instead of opening the web addressオープンbug ios
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
home-assistant/iOS#6246 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
The label displayed in Control Center appears to be inverted relative to the current cover state.オープンbug ios
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
home-assistant/iOS#5989 ·
メンテナーはふだん 1 日以内に返信
-
bug ios
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
home-assistant/iOS#5844 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
home-assistant/iOS#5570 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
home-assistant/iOS の issue をすべて見る
似ている issue
-
bug p3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rothgar/rabble.radio#283 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
robinebers/openusage#1744 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ZingerLittleBee/Heeler#919 ·
メンテナーはふだん 1 日以内に返信
-
platform: android
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ionic-team/capacitor-plugins#2647 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
chenasraf/OpenUpdater#45 ·