Apple TV turning on randomly after addition of discovery

This is starting to happen again for me. Anyone else?

Me too. I have apple_tv ignored in discovery and I removed the component altogether and it is still happening -

strange, since 2 days also here the problem of wake up, even with discovery off and turn_off true.

1 Like

I am receiving a message along the lines of “you must have iOS version blah blah to supoort AirPlay” or something similar. I’ll capture it next time it happens but it seems to be related to the random wake ups.

You should check the logs to see if the Apple TV is loaded, e.g. “grep media_player.apple_tv homeassistant.log”. If it’s not loaded then it’s something else waking it up. I think I have seen posts about random wake ups in other places (not Home Assistant related) after upgrading to tvOS 10.2.

I read elsewhere that with the 10.2 changes some routers or devices simply scanning the network may cause it. I don’t use Airplay so I just disabled it but I would love to understand what the root cause is.

Sounds reasonable. Does it happen even if Home Assiatant is not on? Also, do you use the nmap device tracker?

Yep I am getting this as well. I do use Airplay so am reluctant to disable it. Any solutions?

With a total restart of my network it was solved

I am still suffering from this. I wake up in the morning and my TV and Apple TV are on for no reason! Becoming a real pain now. I can only assume HA is turning the ATV on and in turn via HDMI turns my TV on as well.

Any other suggestions to fix this?

Thanks

If it happens often, it would be best to leave home Assistant off and see if it continues to happen. Just to rule it out. You don’t happen to use kodi? It seems people are having this issue with kodi because it scans the network for airplay devices.

No kodi here. I use Plex on my ATV, not much else apart from the odd airplay video.

Does the ATV wake up with the airplay issue introduced in tvOS 10.2? Or is it just to the main screen?

Seems most of the time it’s the airplay issue.

Do you have any automations that plays something with airplay? The Apple TV component will only do anything remotely related to airplay when media_play service is used. Otherwise it might be a good idea to use tcpdump or wireshark and try to see which device is sending data to port 7000 on your Apple TV.

I only use airplay when watching video streams via my iphone. OK will try and do some investigation.