core icon indicating copy to clipboard operation
core copied to clipboard

service notify.my_android_tv disappears when restarting home assistant

Open Valiceemo opened this issue 1 year ago • 10 comments

The problem

Upon restarting HA, the service notify.my_android_tv disappears Resulting in an error and a repair notification:

The automation "Ring Motion Detected Notify on TV" (automation.ring_motion_detected_notify_on_tv) has an action that calls an unknown service: notify.lounge_tv.

Only 'fix' is to uninstall the integration, and reinstall

What version of Home Assistant Core has the issue?

2024.1.3

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Notifications for Android TV / Fire TV

Link to integration documentation on our website

https://www.home-assistant.io/integrations/nfandroidtv

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

Not sure this is the relevant log dump, but the only thing showing immediately after a restart

2024-01-18 13:43:06.320 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/discovery_flow.py", line 96, in _async_start
await gather_with_limited_concurrency(
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 188, in gather_with_limited_concurrency
return await gather(
^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/async_.py", line 186, in sem_task
return await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 888, in async_init
flow, result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 916, in _async_init
result = await self._async_handle_step(flow, flow.init_step, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 423, in _async_handle_step
if result.get("preview") is not None:
^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'


### Additional information

_No response_

Valiceemo avatar Jan 18 '24 14:01 Valiceemo

Hey there @tkdrob, mind taking a look at this issue as it has been labeled with an integration (nfandroidtv) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of nfandroidtv can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign nfandroidtv Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


nfandroidtv documentation nfandroidtv source (message by IssueLinks)

home-assistant[bot] avatar Jan 18 '24 14:01 home-assistant[bot]

I'm having the same issue, but opening the app on my Chromecast with google tv before reloading the integration makes it work again.

Very annoying, as all automations using this to send notifications will fail when the integration isn't loaded.

Aasikki avatar Jan 22 '24 12:01 Aasikki

I am seeing the same behavior, the integration fails to load unless I first launch the app (on Nvidia Shield in my case)

crafty35a avatar Jan 22 '24 14:01 crafty35a

Doesn't look like like this integration is being actively maintained unfortunately, so I doubt we will see a fix

Valiceemo avatar Jan 24 '24 19:01 Valiceemo

I receive the same error, every time I reboot Home Assistant. But the service is working fine on my Philips Android TV.

Danteba avatar Feb 01 '24 12:02 Danteba

I am seeing the same behavior and HA sent me repair notices because the automations I have which consume the service are now broken.

gannas42 avatar Feb 20 '24 03:02 gannas42

I have the same error....

"The automation "Doorbell Snapshot" (automation.doorbell_snapshot) has an action that calls an unknown service: notify.android_tv_fire_tv."

I hope the creator will see these messages and fix the error. :(

ColtonYYZ avatar Apr 17 '24 18:04 ColtonYYZ

Note: I was able to get it working again. I removed the entry in Notifications for Android TV/Fire Stick integration, restarted HAss, and then re-added the entry. Then restarted HAss and it works again. I didn't remove the integration, just the entry - just to clarify. So now it's working again for me!

Edit: Simply disconnecting the WiFi on my Firestick and reconnecting to my WFi allows me to reload the integration successfully, so no need to remove the integration. Just disconnect and reconnect to your wifi and reload the integration fixes it until next reboot of HAss.

ColtonYYZ avatar Apr 19 '24 19:04 ColtonYYZ

Same here. Upon restarting HA, the service notify.android_tv becomes State missing until the TV is switched on.

sVnsation avatar May 08 '24 21:05 sVnsation

@tkdrob would you like to take a look at this?

sVnsation avatar Sep 20 '24 08:09 sVnsation

same 4 me

b2un0 avatar Sep 25 '24 07:09 b2un0

For what's it worth, I have two TVs; a Sony with built-in CC & a Samsung with an external Google TV dongle. For me, it's always only the Sony that's goes offline even though I have all of the power saving off.

xbmcnut avatar Sep 25 '24 09:09 xbmcnut

@xbmcnut @b2un0 @ColtonYYZ @gannas42 @Danteba @crafty35a @Aasikki @Valiceemo @LewisSpring @asgraf @wernerhp @MihaiKrieger @JonasGe @Skinah @EF01 please vote for pull request #128958 if you want to see this issue fixed.

In the meantime, you can use the code from the pull request and create a custom_component to test the fix locally.

sVnsation avatar Oct 23 '24 15:10 sVnsation

@sVnsation, stupid question but how do I vote? I'm not overly verse using github. I'm sorry. :( Happy to do it, just neeed to know how.

ColtonYYZ avatar Oct 26 '24 06:10 ColtonYYZ

@ColtonYYZ Press the "Thumb up" icon of the first message in the pull request and/or write a message with "+1"

sVnsation avatar Oct 26 '24 12:10 sVnsation

@sVnsation Thanks! I was looking for something like that but guess I was too tired to see it. LOL

ColtonYYZ avatar Oct 26 '24 13:10 ColtonYYZ

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Still valid and https://github.com/home-assistant/core/pull/128958 fixes it.

felipecrs avatar Mar 11 '25 17:03 felipecrs

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Still valid and https://github.com/home-assistant/core/pull/128958 fixes it.

felipecrs avatar Jun 09 '25 18:06 felipecrs

many of them have already been resolved

@tkdrob the robot accidentally tried to close this before you looked at it

disconn3ct avatar Jun 12 '25 11:06 disconn3ct