Wear OS - Activity State high delay

Hello,
I have a Samsung Galaxy Watch4 with HA app Installed.
I’ve activated Activity state of Health Services sensor but in the morning the change between “asleep status” and “passive status” is catched from 10 to 30 minutes late after i wake up.

Is this delay normal?
Is there another sensor (or way to catch this information) that is most precise?

Thanks,
Federico

this all depends on your watch and how much data it allows to send. Did you check to see if HA app has background access permitted in the samsung companion app on your phone? That might be it.

yes our worker interval is set to 15 min but on Wear OS can be delayed up to an hour

maybe a more specific app like sleep as android?

Just wondering what

is? Do you mean the HA companion app?
The reason I ask is that on my Galaxy 5 watch my HA complication sensors only update when I am on wifi but not when on data plan.
thanks

samsung companion app on your phone has settings for watch apps

what URL did you register with? Wear OS does not offer URL switching so you should only use the external URL with the watch

Thanks for your reply!

Yes, HA has background access

If I understand correctly it’s not possible to reduce the timing under 15 minutes. Correct?

I’m testing SleepAsAndroid and it seems a good solution.

Thanks

no 15 min is the smallest interval but still subject to the system rate limiting it. You can however force an update but keep in mind activity state sensor pushes updates so it won’t make a difference.

https://companion.home-assistant.io/docs/wear-os/#notification-commands

Thanks! Tell me if I understand correctly the architecture, so I’ll make an example:

  • Minute 0: sensorworker (on watch) runs
  • Minute 2: activity state change from “asleep” to “passive”
  • Minute 15: sensorworker (on watch) runs, notices the status change and send a push notification to HA server using mobile phone network
  • Minute 15 (and some milliseconds): server receives change, logs and start automations

Am i wrong?

Thanks