Updating the name of a phone does not update xxx in notify.mobile_app_xxx

This is a bug report. I am running Home Assistant Core 2022.6.7 with Home Assistant Supervisor 2022.06.dev2101.

I renamed my phone from “sm_g973f” to “ben_phone”. I restarted home assistant. To test, I created a simple automation with no triggers set to notify the group. To simplify, I put a single device in the group. It does not work.
Here is my group:

notify:
  - name: all_phones
    platform: group
    services:
      - service: mobile_app_ben_phone

and here is my automation

id: '1656108067799'
alias: New Automation
description: ''
trigger: []
condition: []
action:
  - service: notify.all_phones
    data:
      message: Test
mode: single

After running the automation I checked the logs and it said

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/core.py”, line 1651, in async_call
raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: Unable to find service notify.mobile_app_ben_phone

I then went back into the automation and checked the available dropdowns in the action section and it dows notify.mobile_app_sm_g973f

I updated my group yaml to

notify:
  - name: all_phones
    platform: group
    services:
      - service: mobile_app_sm_g973f

and it works now.

bug reports are to be on github only

you must rename from Configuration > Companion App > Device Name for the service call to change, did you do it on the integration page perhaps?

Just want to add a bit in case it helps someone else in the future:
As of 2023.01.25 I found the Device Name field to update in the Mobile App under Settings > Companion App > Device Name

1 Like