Android DND sensor: does not trigger "off" state properly

On a Pixel 8 Pro, the DND sensor properly triggers when DND is “on”, but when DND is “off”, the trigger is never immediate and sometimes not at all. The “off” state only gets triggered consistently when I launch the Android HA app, then the related action is triggered immediately.

Based on the description, DND is supposed to be triggered immediately.

Has anyone seen this problem? Thanks.