Home Assistant (HASS) with Homekit, Television Volume Control and Fire TV Stick connected to Sony Bravia
Basically it integrates and older Sony Bravia TV with Fire TV Stick on HDMI via Home Assistant in Apple Homekit with Siri Voice Control for Volume, Mute and Turning TV on and off.
- Voice control for television on, off, mute, set volume, play, pause
- Control for television on, off, mute, set volume and input (which app to start) in Home app
- Turn on TV light scene when TV starts playing
- iOS Remote Widget inputs are forwarded to media player & Android TV
- i couldnt turn tv on and off reliably until i send to both Fire TV and Bravia the commands, thats why i bundled it in scripts instead of just sending on and off to one of them
- while play and pause controls are related to firetv the volume is related to bravia, thus i decided to create a media player with universal plugin which wraps both media_players and queries the relevant subtype for specific attributes
- voice control for volume was not even possible with proper supported_features value thus i created a fake light which sends the proper commands to the media player
- connecting adb to firetv stick first made issues, restarting firetv helped
- publishing the tv together with the other accessories is not possible, thus i created two bridges, one for everything else and one for the tv (media_player.fernseher) accessory only
- when using a bulb or anything else to control the volume and utilize brightness or similar avoid to use "volume" or the respective word in native language in the device name since Homekit will try to do some magic when the device name contains keywords for charateristics
It took me a while to understand that the decimal number for supported_features is derived from the bitwise idicators which features are available for this media player / tv. This thread helped me a lot: https://community.home-assistant.io/t/how-to-read-interpret-supported-features/114152