I’ve noticed that data read from the Health App using the search health data action does return data that differs from the numbers shown in the Health App.
Any chance you have multiple steps sources? E.g. An iPhone and an Apple Watch.
Shortcuts would retrieve both sets whereas health app will try and give you the actual steps based on both sources, accounting for any double counting.
You can filter in the Find action to just one source.
Thank you! I guess that’s the reason at least for steps.
If I instead query the resting and activity-base energy expenditure I will also get different results.
I mean I have multiple activity sources, but they usually are not tracking simultaneously.
But according to the Health App for my resting energy expenditure there is only one source, my watch and even there the values queried via Shortcuts and the ones shown in the Health App differ. Not by much, but still.
Also there are some days the values are returned as “0”, despite the Health App clearly showing something.
My numbers in shortcuts were also off compared with the Health app, until I changed “Source is NOT Frank’s iPhone” in “Find Health Samples Where”. For some reason this fixed it.
Using start date picks up from a different point than the Health app.
Look at these resting energy related screenshots. Note the first entry on the 2nd & 3rd images from the health app are incorporating a reading from the 14th and the Shortcuts app starts with the first reading beginning on the 15th, not the first reading that overlaps with the 15th.