Nabu Casa and Android notifications

HI all. I user nabu casa as my external access to home assistant. I have been using it for a number of years.

I wanted to get some clarification on some things.
Firstly. I am in Australia, but when I look up my nabu casa address it is in the Singapore AWS datacenter.
This means sometimes there is some latency. I have a morning announcement of the weather on a google nest speaker, sometimes after I hear it connect to the speaker (ping noise), it can take up to 10 seconds for it to actual message to start. Other times it only about 2-3 seconds

Another thing is when I get notification on my android whilst away from my home. Sometimes it’s only about 4-5 seconds from when the automation is triggered to it appearing on my phone, whilst others it is 10-15 seconds. (I have the ttl:0 and priority: high) I know other factors for notification will be a factor (Cell network strength, phone capacity)

I did ask in the discord for cloud if it is possible to change the location of your Nabu Casa server, but they said it wasn’t.

So, I am wondering if I just have to live with some delays with anything sent via the nabu casa cloud, or if there is anything I can fine tune I will keep using it as I want to support the project…

P.S: Another thing I just remembered; I have the speed test integration running. and sometimes my pings responses are around 600ms. Not sure if that is maybe a factor. However, my download/upload speed are exactly at what I have signed up for 100/20mb

image

notifications on android using the critical format should show up immediately, please share the YAML example to see if it was formatted properly. One other thing to remember for notifications, your server is reaching google firebase and not nabu casa to send you that. The delay can be elsewhere, are you sure its not from your server end? Those ping latencies sound high.

HI. Thanks for the follow up.
Speaking of the server, I had been planning to migrate to new hardware, so I did that yesterday. Looking at the ping times, they seem to be better, but still not super-fast. I might change my network cable next to see if it makes any difference

Below is my code

title: Next Trains
  data:
    notification_icon: mdi:train
    channel: Notification
    color: >-
      {% set state = states('sensor.train_delay_in_minutes') %}  {% if
      is_number(state) | float > 5 %} red {% else %}   green {% endif %}
    sticky: true
    ttl: 0
    priority: high

I did some more testing and noticed another alert still took about 10 seconds to come to my phone.
However here is a strange thing, even though I am on my home Wi-Fi, it wasn’t using local push notifications, it was still using FCM, I have noticed this before, it still uses FCM even on my local Wi-Fi.

I have the persistent connections set to “On home Wi-Fi Only” However after a reboot of my phone. It starts connecting to the webhooks.

I am wondering if it my phone (Samsung S23). I just checked and there is a setting under data saver called “apps that can always use data” I checked, and Home Assistant wasn’t turn on for it, So I just turned it on. Let see if that helps. I know Samsung have a lot of extra places to “save” data.

I guess I will monitor it a few days to see how I go.

Thanks again