![]() Please note that each platform has a slightly different naming convention (e.g., “up” for Apple TV is “DirectionUp” for the Harmony Hub). ![]() You can find supported Apple TV remote functions here. This is a horizontal-stack of 3×3 buttons. I also have a conditional Apple TV remote that appears when Apple TV is on. Type: custom:mini-media-player Drop-down of all sources (apps) in Apple TV Remote control Id: App1 #Use exact name from media_player sources image: /local/channels/app1.png #App icon Type: custom:mini-media-player Apple TV hide: Sony TV and Apple TV player controls Sony TV volume_stateless: true See the documentation for more information. Similarly, you could use this to switch HDMI inputs on your TV. As you can see in the Apple TV example, I am exposing a few favorite apps (sources) as quick shortcuts. The advantage of mini-media-player is that you can hide some control elements and create custom shortcuts. I am using the mini-media-player custom card, but you can achieve similar results with the default media player card. Next, I expose both Sony TV and Apple TV media players for additional information and TV controls. Type: conditional TV and Apple TV control This is a conditional card that only appears if something is playing. I want to have the ability to see what is currently playing on my device – either on the Home Assistant front page or on the media card. ![]() background-image: url('/local/buttons/background.png') # delete this if you don’t want to use background image I especially like the “ haptic:” element which provides haptic feedback on iPhones. Other than the custom design, it is a fairly easy code that calls the media_player.turn_on service. Here is the custom button-card code for my Turn On button. If you have multiple devices or devices that are not connected to Home Assistant, consider using the Logitech Harmony Hub as an IR blaster. In my case, Apple TV is able to send the HDMI CEC command to my TV, so I just need to communicate with my Apple TV. You will need to figure out which device can power on and power off your setup. You will have to customize this code to match your integrations, although most media_players in Home Assistant work in a similar manner. I will now walk through each panel I am using in my setup. Same as card-mod, it is not required, but allow you to do amazing things with your UI (see examples below). ![]()
0 Comments
Leave a Reply. |