Notifications stopped working on my iPhone

Hello,

I am not sure when, but a few days ago, my notifications stopped working. I did not change anything. I have multiple notifications configured and none of them work.
Here is the example of one of my notifications. Can someone help me with this?

  alias: 'Notification: Coffee Maker was turned on'
  description: ''
  trigger:
  - entity_id: switch.coffee_maker_s31
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - service: notify.notify
    data:
      message: Coffee Maker is ON
      title: Home Assistant Notification!
  mode: single

Should be “notify.yourphone”
Look at HA services for your phone

Also you can verify notifications are enabled in app>>settings>>companion app>>notifications or iOS settings for HA app. These ate both the same

Thank you for your reply. Where did you see notify.yourphone? I set it up a long time ago using this article:
Home Assistant: Notifications.

I checked, and notifications are allowed in the settings for the Companion App.

HA>> developer tools >> services

Just scroll through the list and you should see a notify service related to your phone

Ios>> settings>> general >> about >> name

HA app uses you phone name. If your phone is names joes phone the service will be created like notify.joes_phone

I found the notify service and changed it. It did not help.

  alias: 'Notification: Coffee Maker was turned on'
  description: ''
  trigger:
  - entity_id: switch.coffee_maker_s31
    from: 'off'
    platform: state
    to: 'on'
  condition: []
  action:
  - service: notify.mobile_app_calz_iphone
    data:
      message: Coffee Maker is ON
      title: Home Assistant Notification!
  mode: single
alias: 'Notification: Coffee Maker was turned on'
description: ''
trigger:
  - entity_id: switch.coffee_maker_s31
    from: 'off'
    platform: state
    to: 'on'
condition: []
action:
  - service: notify.mobile_app_calz_iphone
    data:
      message: Coffee Maker is ON
      title: Home Assistant Notification!
mode: single

Try spacing like above

Thank you for the suggestion, but I have the same spacing. For some reason, it did not copy correctly here.

I am beginning to think that it is not the code. I have two phones that used to receive notifications, and it stopped on both of them. I cannot even trigger notification from the Developer Tools → Services section.

At the same time, I know that the problem is not with our phones. I have another HA, and notifications from that device arrive on our phones. Both my HAs have the same updates.

Are webhooks enabled

HAUI>> settings>> HA Cloud

My HA Cloud is not enabled, and I do not have anything there. I have never had it enabled and it worked previously, and it still works from my second HA.

Hi everyone,

I have the same issue as onlize mentioned. My automations.yaml looks very similar to above.

  alias: Occupancy Test
  description: Detect motion and notify
  trigger:
    - platform: state
      entity_id: binary_sensor.staircase_zooz_sensor_2_home_security_motion_detection
      from: "off"
      to: "on"
    - platform: state
      entity_id: binary_sensor.staircase_zooz_sensor_upper_home_security_motion_detection
      from: "off"
      to: "on"
  condition:
    - condition: time
      after: "21:30:00"
      before: 03:00
  action:
    - service: notify.mobile_app_NAME_OF_MY_IPHONE
      data:
        message: Motion Detected
  mode: single

(Just to confirm, I was testing this after 21:30 and tested it again with the time condition disabled.)

It was working fine for more than a year. I upgraded my iPhone to iOS16 and updated the home assistant to the latest version (as of Nov 26, 2022). All notifications for HA are turned on in HA’s companion app and in iPhone settings > Notifications > Home Assistant

Happy and willing to provide more details if this is a bug with HA version or with iOS 16

UPDATE: I think I got it working!
Here were the steps to get it working:

  1. Uninstalled the Home Assistant app from the iPhone.
  2. iPhone Settings > General > About > Name . Changed it from “FIRSTNAME’s iPhone” to “FIRSTNAME”
  3. Restarted Home Assistant
  4. Reinstalled the Home Assistant app from App Store. Gave all the app permissions after first launch
  5. On Home Assistant > Developer Tools > Services send a “notify.mobile_app_FIRSTNAME” with a test message and voila notification received!

It helped, thank you!