You have the documentation for it here:
Mute is not supported as the Apple TV does not support it.
You have the documentation for it here:
Mute is not supported as the Apple TV does not support it.
thank you
Sorry for the noob question but when pressing/holding the power button on the physical AppleTV remote (ATV 4K 2nd Gen) it puts the Apple TV into a ‘standby’ state (as visible from states in developer tools). I’m trying to execute an automation (turn off TV) based on the standby state of the AppleTV but “standby” is not an option under triggers. Is this a bug or am I thinking about this incorrectly?
You can try using the ‘State’ trigger.
platform: state
entity_id:
- media_player.apple_tv_4k
to: Standby
Then the action would be to turn off the TV.
Thanks! That worked. (though just remember that it has to be all lowercase e.g ‘standby’).
Cheers
Is it required to use host networking if running this in a docker container?
Hello,
I have a hostapd addon (192.168.99.X) which allows me to connect my LIFX and HomePod to HA (192.168.1.X).
I am able to add HomePods if they are on the 1.X network, but it is impossible if they are on the 99.X network.
How to configure this integration’s network so it is able to see 99.X devices please ?
Note : the LIFX integration sees without issues 99.X lights
Thanks
I built a raspberry pi media display to show and control my media with the universal media player and this works fine for most apps as they show a thumbnail and movie information. However, some other apps (NOW, Amazon Prime, Youtube) show the video title, but no thumbnail. Is it possible for the media player part of this integration to pull the app icon if the app doesn’t show a video thumbnail?
hi, are you the developer of the apple Tv integration?
i found a bug or a problem, when i playing Netflix on my AppleTV the title / icon works well, when i now change the movie to another he still says “neflix” but no title or Icon is there anymore.
i found when i reload the integration, it works well, but until i change the movie or Episode.
i can get it to work with this code as well, but only until a movie change
service: homeassistant.reload_config_entry
data: {}
target:
entity_id: media_player.wohnzimmer
i haveTvOs 16.2 Installed, and HA 2022.12.8
Does this integration show different states when playing / pausing content in apps like Netflix/Prime/Disney/ YouTube?
I want to dim lights when playing content and while pausing turn up brightness.
My Samsung TV is only able to show in Home Assistant the app that is running but doesn’t support playing/paused/idle states. So I’m considering buying a Apple TV, or should I choose a different media player?
Yes. I have it configured in a universal media player with an automation that does just that. Works perfectly.
It is likely a problem with Netflix, I see the same thing in iOS. Usually the first movie or show works, but when switching to a new movie or episode, metadata stops working completely. Please compare result in Home Assistant with what you see in iOS and report back.
its not only netflix, its the change from one app to another, for example from netflix to amazon video, than the title and artwork is empty.
i opened a issue on github, with a debug log there can you see what happens, when i start the “reload_config_entry” the title and artwork comes back. i dont make anything on the appletv only start the service with the command.
Ok, thank you for reporting that! I will have a look when I have some time over.
no problem here is the link
and another question the progress of the duration doesnt update frequently, is it possible to change that ? actually i reload the integration every 5 minutes for my progress bar, but i think that is not the best way to do this.
Hello,
I recently discovered hass ATV beta,and it looks awesome to get the control on the aTV via home assistant.
I did the installation and was able to control my aTV.
However after a shutoff, and new starting up,I don’t have anymore the control. Looks like the aTV IS disconnected/depaired from HA.
I have to remove the integration and re-install it to make it working again.
Any Idea of the root cause of this issue?
Thanks you very much for your support!
@Gil68 as I understand it, the latest releases of Home Assistant include a more recent Apple TV integration than the ATV beta on github.
That said, I have a similar problem with an Apple TV 4K 3rd gen (128 GB version with Ethernet), now on tvOS 16.3.3. When it gets in this state, Hass sometimes highlights the ATV integration in red and indicates it needs to be reconfigured. However, reloading the automation fixes things until after the next sleep/wake.
Another possibly related problem is that the power button on the Hass media control won’t wake up the Apple TV, and the reported power state is usually inaccurate. Although the power button on the media player does successfully put the ATV to sleep when the integration is working.
pyatv on my laptop works great, on the other hand – via airplay credentials, it can turn the Apple TV on and off, read its power state, and doesn’t seem to fail even after several sleep/wake cycles. A bit puzzling, as I assume that the ATV integration has pyatv under the hood? Maybe @postlund has an idea what’s going on? I’d be happy to contribute some code fixes once I know where to look.
Integration broken after Home Assistant 2023.5.0 update?
Logger: homeassistant.setup
Source: setup.py:206
First occurred: 4:09:12 PM (1 occurrences)
Last logged: 4:09:12 PMSetup failed for custom integration apple_tv: Requirements for apple_tv not found: [‘pyatv==0.10.0’].
Same for me… log file floaded with this error since update to 2023.5. Integration does not start. Following errors sequence (full dump of error group repeating every milisecond, whole sequence apperas every ~10 minutes):
2023-05-04 08:37:50.150 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 845, in async_init
flow, result = await task
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 863, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 962, in async_create_flow
await _load_integration(self.hass, handler_key, self._hass_config)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2026, in _load_integration
await async_process_deps_reqs(hass, hass_config, integration)
File "/usr/src/homeassistant/homeassistant/setup.py", line 389, in async_process_deps_reqs
await requirements.async_get_integration_with_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 52, in async_get_integration_with_requirements
return await manager.async_get_integration_with_requirements(domain)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 171, in async_get_integration_with_requirements
await self._async_process_integration(integration, done)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 186, in _async_process_integration
await self.async_process_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 246, in async_process_requirements
self._raise_for_failed_requirements(name, missing)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 275, in _raise_for_failed_requirements
raise RequirementsNotFound(integration, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for apple_tv not found: ['pyatv==0.10.0'].
2023-05-04 08:37:50.151 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 845, in async_init
flow, result = await task
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 863, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 962, in async_create_flow
await _load_integration(self.hass, handler_key, self._hass_config)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2026, in _load_integration
await async_process_deps_reqs(hass, hass_config, integration)
File "/usr/src/homeassistant/homeassistant/setup.py", line 389, in async_process_deps_reqs
await requirements.async_get_integration_with_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 52, in async_get_integration_with_requirements
return await manager.async_get_integration_with_requirements(domain)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 171, in async_get_integration_with_requirements
await self._async_process_integration(integration, done)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 186, in _async_process_integration
await self.async_process_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 246, in async_process_requirements
self._raise_for_failed_requirements(name, missing)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 275, in _raise_for_failed_requirements
raise RequirementsNotFound(integration, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for apple_tv not found: ['pyatv==0.10.0'].
2023-05-04 08:37:50.152 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 845, in async_init
flow, result = await task
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 863, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 962, in async_create_flow
await _load_integration(self.hass, handler_key, self._hass_config)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2026, in _load_integration
await async_process_deps_reqs(hass, hass_config, integration)
File "/usr/src/homeassistant/homeassistant/setup.py", line 389, in async_process_deps_reqs
await requirements.async_get_integration_with_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 52, in async_get_integration_with_requirements
return await manager.async_get_integration_with_requirements(domain)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 171, in async_get_integration_with_requirements
await self._async_process_integration(integration, done)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 186, in _async_process_integration
await self.async_process_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 246, in async_process_requirements
self._raise_for_failed_requirements(name, missing)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 275, in _raise_for_failed_requirements
raise RequirementsNotFound(integration, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for apple_tv not found: ['pyatv==0.10.0'].
2023-05-04 08:37:50.153 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 845, in async_init
flow, result = await task
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 863, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 962, in async_create_flow
await _load_integration(self.hass, handler_key, self._hass_config)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2026, in _load_integration
await async_process_deps_reqs(hass, hass_config, integration)
File "/usr/src/homeassistant/homeassistant/setup.py", line 389, in async_process_deps_reqs
await requirements.async_get_integration_with_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 52, in async_get_integration_with_requirements
return await manager.async_get_integration_with_requirements(domain)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 171, in async_get_integration_with_requirements
await self._async_process_integration(integration, done)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 186, in _async_process_integration
await self.async_process_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 246, in async_process_requirements
self._raise_for_failed_requirements(name, missing)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 275, in _raise_for_failed_requirements
raise RequirementsNotFound(integration, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for apple_tv not found: ['pyatv==0.10.0'].
2023-05-04 08:37:50.154 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 845, in async_init
flow, result = await task
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 863, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 962, in async_create_flow
await _load_integration(self.hass, handler_key, self._hass_config)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2026, in _load_integration
await async_process_deps_reqs(hass, hass_config, integration)
File "/usr/src/homeassistant/homeassistant/setup.py", line 389, in async_process_deps_reqs
await requirements.async_get_integration_with_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 52, in async_get_integration_with_requirements
return await manager.async_get_integration_with_requirements(domain)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 171, in async_get_integration_with_requirements
await self._async_process_integration(integration, done)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 186, in _async_process_integration
await self.async_process_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 246, in async_process_requirements
self._raise_for_failed_requirements(name, missing)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 275, in _raise_for_failed_requirements
raise RequirementsNotFound(integration, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for apple_tv not found: ['pyatv==0.10.0'].
2023-05-04 08:37:50.155 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 845, in async_init
flow, result = await task
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 863, in _async_init
flow = await self.async_create_flow(handler, context=context, data=data)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 962, in async_create_flow
await _load_integration(self.hass, handler_key, self._hass_config)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2026, in _load_integration
await async_process_deps_reqs(hass, hass_config, integration)
File "/usr/src/homeassistant/homeassistant/setup.py", line 389, in async_process_deps_reqs
await requirements.async_get_integration_with_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 52, in async_get_integration_with_requirements
return await manager.async_get_integration_with_requirements(domain)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 171, in async_get_integration_with_requirements
await self._async_process_integration(integration, done)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 186, in _async_process_integration
await self.async_process_requirements(
File "/usr/src/homeassistant/homeassistant/requirements.py", line 246, in async_process_requirements
self._raise_for_failed_requirements(name, missing)
File "/usr/src/homeassistant/homeassistant/requirements.py", line 275, in _raise_for_failed_requirements
raise RequirementsNotFound(integration, [req])
homeassistant.requirements.RequirementsNotFound: Requirements for apple_tv not found: ['pyatv==0.10.0'].