Core: Requested entity was not found.

Created on 4 Jul 2020  Â·  17Comments  Â·  Source: home-assistant/core

The problem


After the most recent update, I've noticed the message "Requested entity was not found." in my logs. It's related to components.mobile_app.notify.

Environment

  • Home Assistant Core release with the issue: 0.112.1
  • Last working Home Assistant Core release (if known): Previous (always kept up to date)
  • Operating environment (OS/Container/Supervised/Core): Venv install on Ubuntu
  • Integration causing this issue: components.mobile_app.notify
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/mobile_app

Problem-relevant configuration.yaml


Traceback/Error logs

```Logger: homeassistant.components.mobile_app.notify
Source: components/mobile_app/notify.py:153
Integration: Mobile App (documentation, issues)
First occurred: July 2, 2020, 7:46:57 PM (5 occurrences)
Last logged: July 3, 2020, 8:54:21 PM

Requested entity was not found

```

Additional information

All my mobile entities are alive and well so I don't understand why this message shows up. Notifications are also working fine.

edit correction: I have been missing mobile notifications here and there after inspecting the logbook.

mobile_app

All 17 comments

Hey there @robbiet480, mind taking a look at this issue as its been labeled with an integration (mobile_app) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

This is a problem for me as well, but not for my partner. At the moment I cannot receive any notifications at all.

Just noticed I have been having this problem as well. Can't say exactly when it started. Only noticed it because I couldn't figure out why a new automation I tried to make wasn't working and realized that I have not been receiving notifications for some time.

Thanks!

Logger: homeassistant.components.mobile_app.notify
Source: components/mobile_app/notify.py:153
Integration: Mobile App (documentation, issues)
First occurred: July 8, 2020, 10:29:13 AM (9 occurrences)
Last logged: 1:04:32 PM

Requested entity was not found.

arch | x86_64
-- | --
chassis | desktop
dev | false
docker | true
docker_version | 19.03.5-ce
hassio | true
host_os | Manjaro Linux
installation_type | Home Assistant Supervised
os_name | Linux
os_version | 5.4.18-1-MANJARO
python_version | 3.7.7
supervisor | 228
timezone | America/New_York
version | 0.112.2
virtualenv | false

The error message Requested entity was not found is coming back from the API call to send the push notification through Firebase, which is erroring because the push token is invalid.

I believe this is a result of the critical alerts entitlement being lost in 2020.3 but fixed in 2020.3.1. I'm guessing the push token changes when the critical alerts allowed status changes. I believe you can fix this by:

  1. Upgrade the iOS app to 2020.3.1
  2. Launch the app
  3. Restart the server

The launching part should update the token, and the restart will update the in-memory reference to it. The push token associated with the notify for the device isn't updated until the server restarts.

If this _doesn't_ fix it, it might mean that the token being retrieved from APNS/Firebase is invalid for the current critical alert status. If that is the case, please report back. It's possible that you'll need to delete the app and reinstall it, but it is possible we can work around this in the app somehow, too.

Thank you for your reply @zacwest. I have tried the suggested fix (a few times to be sure) without any success. Please advice what we should try next. Thank you again.

Just faced similar issue (sudden no push notification were received).

  • Tried: resetting push token and reset. No effect.
  • Tried: removing and reinstalling the app. No effect.
  • Tried: renaming phone name in phone. Didn't see the new name appearing in notify.newname, only notify.oldname was visible. No effect
  • Tried removing the IOS integration and reinstalling in config->integrations in frontend. Helped. New phonename was visible and pushes were able to be send. (old phonename also appeared).

Having this issue also for a while now..

I actually got it working again. Looked like I had two entities for my iPhone listed under the webhooks section. I deleted the stale one. Then I reset the identifier or whatever from the app. I restarted home assistant and it’s been working for me.

On Tue, Jul 14, 2020, at 7:45 AM, ADX88 wrote:

Having this issue also for a while now..

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/37462#issuecomment-658133738, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMXQZUVLXDQKM4YP42VJQITR3RAMJANCNFSM4OQLO7FQ.

i have the same issue, tried to remove integration restarted and all possible tries that i can come up with.

I was the same. But after changing the app setting, I succeeded in notifying it. I did as follows.

Excute Companian app
App Configuration - Notifications
PUSHID - Click Reset

I was the same. But after changing the app setting, I succeeded in notifying it. I did as follows.

Companian app

App Configuration
Notification
Click Reset

I had the same issue. The above method fixed it for me aswell.

Same issue here (on 0.113.1). Can make it work by resetting Push-ID in iOS App, but that only lasts for a couple of minutes. Tried several restarts of both HA and iPhone and upgraded to latest iOS-version without any luck.

Logginformation (ERROR)
Logger: homeassistant.components.mobile_app.notify
Source: components/mobile_app/notify.py:153
Integration: Mobile App (documentation, issues)
First occurred: 20:13:42 (16 occurrences)
Last logged: 22:23:20

Request contains an invalid argument.
Requested entity was not found.

Wasn’t aware this was opened. Closing in favor of https://github.com/home-assistant/iOS/issues/850 where I am providing frequent updates.

Same issue here (on 0.113.1). Can make it work by resetting Push-ID in iOS App, but that only lasts for a couple of minutes. Tried several restarts of both HA and iPhone and upgraded to latest iOS-version without any luck.

Logginformation (ERROR)
Logger: homeassistant.components.mobile_app.notify
Source: components/mobile_app/notify.py:153
Integration: Mobile App (documentation, issues)
First occurred: 20:13:42 (16 occurrences)
Last logged: 22:23:20

Request contains an invalid argument.
Requested entity was not found.

I got the same issue.

Same issue here. Is there any solution ?

Same problem here recently it was working but not anymore.

Having this same issue but on Android.

Was this page helpful?
0 / 5 - 0 ratings