Huawei important notifications do not come through

I can´t figure it out how to get an Huawei Android Telephone to push an important alarm notification to get even through Android Do-Not-Disturb.
Everything i try only gets me an regular notification.

My intension is to build an node-red flow to push a doorbell notification.

Maybe someone of you built just that and can post an example?
Thanks a lot.

I thought Huawei didn’t do android any more?

Could try this. This setup works for my partners Samsung though with DND which is the first script. I don’t actually use DND on my huawei phone, which is the second script. I think I added the delay because it was taking a moment to disable DND.
They are from the companion app docs

Delay

emergency_alert_roberta:
  alias: Emergency Alert - Roberta Phone
  sequence:
  - service: notify.mobile_app_sm_n960f
    data:
      title: 'off'
      message: command_dnd
  - service: notify.mobile_app_sm_n960f
    data:
      message: command_ringer_mode
      title: normal
  - delay:
      hours: 0
      minutes: 0
      seconds: 0
      milliseconds: 500
  - service: notify.mobile_app_sm_n960f
    data:
      title: '{{ volume|default("16", true) }}'
      message: command_volume_level
      data:
        channel: alarm_stream
  - service: notify.mobile_app_sm_n960f
    data:
      title: '{{ title|default("Ring", true) }}'
      message: '{{ message|default("Ring", true) }}'
      data:
        channel: alarm_stream
        priority: high
        ttl: 0
        tag: '{{ tag }}'
        group: '{{ group }}'
        actions:
        - action: alarm-arm-silence
          title: Silence
        - action: alarm-arm-disarm
          title: Disarm
  mode: parallel
  description: Sends an emergency alert to phones even on DND with appropriate Volume
  fields:
    volume:
      description: Volume on the device
      example: 6
    title:
      description: Title of the android alert
      example: Default Title
    message:
      description: Message of the android alert
      example: Default Message
  max: 3
  icon: mdi:phone-alert-outline

No Delay

emergency_alert_bob:
  alias: Emergency Alert - bob Phone
  sequence:
  - service: notify.mobile_app_phone_model
    data:
      title: 'off'
      message: command_dnd
  - service: notify.mobile_app_phone_model
    data:
      title: '{{ volume|default("18", true) }}'
      message: command_volume_level
      data:
        channel: alarm_stream
  - service: notify.mobile_app_phone_model
    data:
      title: '{{ title|default("Ring", true) }}'
      message: '{{ message|default("Ring", true) }}'
      data:
        channel: alarm_stream
        priority: high
        ttl: 0
        tag: '{{ tag }}'
        group: '{{ group }}'
        actions:
        - action: alarm-arm-silence
          title: Silence
        - action: alarm-arm-disarm
          title: Disarm
  mode: parallel
  description: Sends an emergency alert to phones even on DND with appropriate Volume
  fields:
    volume:
      description: Volume on the device
      example: 6
    title:
      description: Title of the android alert
      example: Default Title
    message:
      description: Message of the android alert
      example: Default Message
  max: 3
  icon: mdi:phone-alert-outline
1 Like

Thanks a lot. I rebuild you automation on my system but the Huawei device is still not reacting to important/priority messages. Seems to be a problem with android.

make sure the app has proper permission to run in the background and any other power saving setting that the device uses. Every device is different so you may need to dig into settings. You need to make sure to follow the critical notification format:

Won’t work because of: Integration of Huawei Push notifications · Issue #1371 · home-assistant/android · GitHub