AppleTV Remote

I want to create a card that will allow me to control the AppleTVs in my home.

I’m using this guide as a starting point: https://leonardosmarthomemakers.com/how-to-create-a-home-assistant-dashboard-media-edition/?fbclid=IwAR0O6v6lA2qjX4gccH1C78iJhb44ImhMWraP6DOiesAoClHo1FbkQSuMbeo

I am able to control an AppleTV that I specify in the code, but I want a drop down in the card and based on which AppleTV I choose, be able to control that device.

Here is my latest code: GitHub - jbeck22/HA-Media-Remote

Anyone have this or something similar working already?

I just added Apple TV support to my Firemote Card. I think that’s exactly what you are looking for.

Hi Doung I’m using your card for Apple TV but nothing seems to work, I’m running Home Assistant using a Raspberry Pi 5

Hello!

Can you provide any additional information for me? Do you see any error messages? Can you describe what you mean by “nothing seems to work?” Any details you can provide will be very helpful!

Thais for your attention, now it’s working, except for the Mute Button, I get the following message:

“mute-button”

Use a button override to program this button
GitHub - PRProd/HA-Firemote: Apple TV, Amazon Fire TV, Chromecast, Homatics, NVIDIA Shield, onn., Roku, Xiaomi Mi, and Android TV remote control card for Home Assistant

I added the following:

button_overrides:
mute-button:
script: receiver_mute_script

But now I get the following message:

Action script_receiver_mute_script not found

I will appreciate if you can tell me what am I missing. Thanks in advance

@MsCopernic ~

I’m glad to hear that you have it working! In regards to your question about the button override for the mute button, I want to clarify a few things to make sure that I’m communicating well.

I know that this forum has a habit of changing the indentation of text that you post, so I’m assuming that’s why the post you wrote shows inappropriate indentation with your YAML. If not, the proper indentation for that should look like this:

button_overrides:
  mute-button:
    script: receiver_mute_script

In reference to the error message you posted

Action script_receiver_mute_script not found

Are you sure you didn’t mean to post this instead?
Action script.receiver_mute_script not found.

If that is the case, then the reason this isn’t working is that you do not have a Home Assistant script named “receiver_mute_script”. If you create a script by that name, then pressing the mute button using this YAML configuration will execute that script.

Unfortunately, as you might have read in the FAQ section " Why won’t the volume, mute, and/or power buttons work from my Firemote card?", this is still true:

Due to the way the Apple TV Home Assistant integration is built, an Apple TV style Firemote cannot properly simulate a “Mute” button press. A Button Override will be required in this case.

If you are curious about why this is the case, it happens because the Home Assistant Apple TV integration does not have a command for “mute”, so Firemote is unable to use it. For more details on that subject, I suggest taking a look at the How Does Firemote Send commands to my devices? section in the Firemote Wiki.

I hope this helps. Please let me know if you have any more questions. I’m always happy to help!

-Doug

1 Like

Thank you very much for your time. Very appreciated

1 Like