Skip to content

Vitals: actual readings on screen and in Health Connect, skin temperature syncs again - #64

Merged
sayed0am merged 6 commits into
developfrom
fix/vitals-actual-values
Nov 11, 2026
Merged

sayed0am merged 6 commits into
developfrom
fix/vitals-actual-values

Conversation

@sayed0am

Copy link
Copy Markdown
Owner

Two pieces of user feedback started this: breathing rate stopped reaching Health Connect, and skin temperature and daytime blood oxygen went missing in 3.0.4.

Health Connect

  • Breathing rate, VO2 max and strap workouts are exported. Adds the WRITE_RESPIRATORY_RATE and WRITE_VO2_MAX permissions.
  • Blood oxygen is exported one record per reading, as Zepp 10.10.5 does, not as an average.

Sync

  • Skin temperature (history type 46) is asked for again. The Zepp-parity job list dropped it in 3.0.3. It runs after everything of Zepp's, and is a deliberate exception to matching Zepp's traffic.
  • Blood oxygen readings outside 80 to 100 are dropped before storing and on export, as Zepp does.

Display

  • Blood oxygen and stress lead with the day's latest reading on Today, Recovery and their pages. The time shows on cards and rows only once the reading is over an hour old, and always on the detail page.
  • Blood oxygen is marked "Daytime", "While asleep" or "Night average". Its day chart has a fixed 80 to 100 scale with the sleep hours shaded.
  • Stress is judged by the level of the reading shown (relaxed, normal, medium, high, Zepp's bands). The tag and rim show only when high. The day's average against your usual stays as the sentence on the stress page.
  • The latest heart rate has no tag or rim. The old tag judged the day's average, not the number beside it.
  • Skin temperature leads with the measured value. The change from normal sits inside the gauge and under the number.
  • HRV, resting heart rate and heart rate show one number on every screen.
  • List rows keep their second line beside the tag.

Checked

  • Unit tests, lint and detekt pass.
  • Today, Recovery, Sleep and the stress, blood oxygen, skin temperature and heart rate pages were checked on the emulator with a copy of real data.

Not checked

  • Health Connect export and the type 46 sync on a real strap.
  • The short "Daytime" and "While asleep" lines on cards and rows, which only show on screens the app hides today.
  • A stress card below the high level, and the Activity tab heart rate card (unit tests only).
  • The Chinese strings by a native reader.

🤖 Generated with Claude Code

sayed0am and others added 4 commits November 11, 2026 08:57
… blood oxygen reading

Zepp writes breathing rate, blood oxygen and VO2 max to Health Connect one record per strap
sample. unstrap left breathing rate and VO2 max out, and dropped blood oxygen below 80 at sync.

- Breathing rate goes out as one record per stored sample.
- Blood oxygen is kept and exported from 1 to 100, not 80 to 100.
- The strap's own VO2 max goes out per workout. unstrap's estimates are not sent.
- Workouts the strap recorded go out as sessions, except one a phone workout overlaps.
- The two new permissions are optional, as the calorie ones are.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- Heart rate's lowest and highest come from the stored minutes, the high from the strap's
  daily maximum when higher, not from the chart's 5-minute averages. The night's lowest too.
- A resting heart rate unstrap estimated says so, and its sheet no longer says the strap
  always works it out.
- HRV is one figure everywhere: the sleep readings from 5 to 200 ms, averaged and rounded.
  Week, Month, Year and the normal use the nights, not the whole day.
- Today's stress card says its number is the latest reading. The body signals row says
  day average.
- Skin temperature leads with its change from your normal on All metrics and its day detail.
- Blood oxygen is a whole percent on the Recovery line.
- A held chart point says it is an average, a moved sleep's score says adjusted, and the
  breathing sheet no longer says one value a night.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…p does

The Zepp-parity job list dropped history type 46, so skin temperature
stopped arriving in 3.0.3. It is asked for again, after everything of
Zepp's. Blood oxygen readings outside 80..100 are dropped before storing
and on export, as Zepp 10.10.5 does.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…what it shows

Blood oxygen and stress show the day's latest reading on Today, Recovery
and their pages, with the time only once it is over an hour old. Blood
oxygen is marked daytime, while asleep or night average, on a fixed 80 to
100 chart with the sleep hours shaded. Stress is judged by the level of
the reading shown (relaxed, normal, medium, high), with a tag and rim only
when high. The latest heart rate has no tag or rim.

Skin temperature leads with the measured value, its change from normal
inside the gauge and under the number. List rows keep their line beside
the tag.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@sayed0am
sayed0am changed the base branch from main to develop November 11, 2026 17:05
sayed0am and others added 2 commits November 11, 2026 21:11
Brings in the state machine fixes (#63). Health Connect keeps develop's
rule that only the needed permissions decide, with the optional ones now
calories, breathing rate and VO2 max, offered again from the Health
Connect page. Strap workouts are dropped under the same write lock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…long comment

The German-locale run writes 0,7 for 0.7. Detekt's line length caught the
Health Connect actions comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sayed0am
sayed0am merged commit 189ef61 into develop Nov 11, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant