Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service notify.my_android_tv disappears when restarting home assistant #108296

Open
Valiceemo opened this issue Jan 18, 2024 · 18 comments · May be fixed by #128958
Open

service notify.my_android_tv disappears when restarting home assistant #108296

Valiceemo opened this issue Jan 18, 2024 · 18 comments · May be fixed by #128958

Comments

@Valiceemo
Copy link

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_
@home-assistant
Copy link

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)

@Aasikki
Copy link

Aasikki commented Jan 22, 2024

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.

@crafty35a
Copy link

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

@Valiceemo
Copy link
Author

Valiceemo commented Jan 24, 2024

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

@Danteba
Copy link

Danteba commented Feb 1, 2024

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

@gannas42
Copy link

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

@ColtonYYZ
Copy link

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
Copy link

ColtonYYZ commented Apr 19, 2024

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.

@sVnsation
Copy link
Contributor

sVnsation commented May 8, 2024

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

@sVnsation
Copy link
Contributor

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

@b2un0
Copy link

b2un0 commented Sep 25, 2024

same 4 me

@xbmcnut
Copy link

xbmcnut commented Sep 25, 2024

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.

@sVnsation
Copy link
Contributor

@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.

@ColtonYYZ
Copy link

@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.

@sVnsation
Copy link
Contributor

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

@ColtonYYZ
Copy link

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

@issue-triage-workflows
Copy link

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.

@felipecrs
Copy link
Contributor

Still valid and #128958 fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants