first of all thanks for the many guides and answers available on this forum. It already helped me a lot.
I’m currently trying to create a dashboard working as a remote for my AppleTV. I found several tutos for I’m trying to do including some post on this forum. Unfortunately whatever I do, my AppleTV is not reacting to any action.
Do you see any way to debug that? Is there any log I could check to see what happen? I don’t know currently if my script is wrong or if it the appletv which does not take the actions in account.
What seems to be sure is that the link between home assistant and the appletv is somehow working because when a start something manually on the appletv I can pause it with the top media player integration.
Here are the scripts behind the different buttons:
bash-5.1# cat appletv.yaml
appletv_command:
alias: "Send command to appletv"
fields:
command:
description: "The command to send to the remote"
sequence:
- service: remote.send_command
target:
entity_id: remote.sejour
data:
command: "{{ command }}"
default: []
mode: single
appletv_wakeup:
alias: "WakeUp AppleTV"
sequence:
- service: script.appletv_command
data:
command: wakeup
mode: single
appletv_up:
alias: "Apple TV Arrow Up"
sequence:
- service: script.appletv_command
data:
command: up
mode: single
appletv_volumeup:
alias: "Apple TV Volume Up"
sequence:
- service: script.appletv_command
data:
command: volume_up
mode: single
appletv_left:
alias: "Apple TV Arrow Left"
sequence:
- service: script.appletv_command
data:
command: left
mode: single
appletv_ok:
alias: "Apple TV Arrow OK"
sequence:
- service: script.appletv_command
data:
command: select
mode: single
appletv_right:
alias: "Apple TV Arrow Right"
sequence:
- service: script.appletv_command
data:
command: right
mode: single
appletv_topmenu:
alias: "Apple TV Top menu"
sequence:
- service: script.appletv_command
data:
command: top_menu
mode: single
appletv_down:
alias: "Apple TV Arrow Down"
sequence:
- service: script.appletv_command
data:
command: down
mode: single
appletv_volumedown:
alias: "Apple TV Volume Down"
sequence:
- service: script.appletv_command
data:
command: volume_down
mode: single
Any idea on what could be wrong or where I could trace it is more than welcome.
so I searched during several hours and here several outputs:
My scripts integration in configuration.yaml was probably not working properly.
I adjusted it to get all yaml files from my folder scripts loaded
I saw some other posts advising to delete the integration and re-add it again
On second point I have now an issue. I run the delete which seems to have worked.
Now when I go in integration and run an Add Integration, the integration of the AppleTV fails with a message:
The configuration for this device is incomplete. please try adding it again
I want into .storage and check in core.config_entries and did not find any remaining entries for the appletv.
So I integrated the latest version of the component under /config/custom_components/apple_tv
I restarted Home Assistant and tried the integration import again. It still fails with the same error message.
So I activated the debug log. Here the output:
It will be part of the next release in beginning of February. Most parts are already merged, it’s bug squashing and improvements to the experience that is happening now.