Command_ringer_mode sometimes works, sometimes doesn't on Pixel 8

Up until a couple of months ago, changing the ringer mode on my Pixel 8 was working perfectly.
More recently though, it’s been pretty inconsistent. Sometimes it works fine, other times it doesn’t work for aaages, and then does without anything obvious having changed.

I’ve made my automations repeat sending silent or vibrate until it actually changes like this:

          - repeat:
              until:
                - condition: state
                  entity_id: sensor.pixel_8_ringer_mode
                  state:
                    - vibrate
              sequence:
                - action: script.notifications
                  metadata: {}
                  data:
                    icon: mdi:vibrate
                    type: Normal
                    title: Sending silent
                    message: Sending silent
                - action: notify.mobile_app_pixel_8
                  data:
                    message: command_ringer_mode
                    data:
                      command: vibrate
                - delay:
                    hours: 0
                    minutes: 0
                    seconds: 30
                    milliseconds: 0
                  enabled: true
          - action: script.notifications
            metadata: {}
            data:
              icon: mdi:vibrate
              type: Normal
              title: Ringer confirmed silent
              message: Ringer confirmed silent

Sometimes it changes on the first try, other times it sends it every 30 seconds for aaaages until it changes or it just never does.

I get the normal notifications through my script.notifications script every time they’re sent (I use this script to send notifications to various devices depending on where I am and what devices are on, but for this is boils down to just a notify.mobile_app_pixel_8).

Stopping and re-opening the companion app doesn’t seem to make any difference, neither does restarting the phone or switching between the mobile network and wifi.
I’ve cleared cache and data for the companion app but still find the same.

Is this something that anyone else has experienced, and/or does anyone have any suggestions to make them work consistently again please?