Notify TTS also for Airplay (privacy first!)

WTH! It would be great if it would be possible to Notify TTS to my Airplay devices. So I can shout messages to my Airplay loudspeakers around the house.

I only have 1 Sony Chromecast device, but that doesn’t work because it needs to “see” Google for some spy reason and my firewall prohibits that due privacy first. But Airplay does work on that Sony and everywhere without needing internet!

An alternative would be mini-Jack out (from my RPi400 running HA) to this speaker.

Integration: Notify using TTS - Home Assistant

Hi there, you can add Airplay devices through the Apple TV integration and use the TTS through the media_player entity. I just tested this with my AirPlay 1 enabled Onkyo Receiver.

1 Like

Geeeze I was skeptic but you’re right! It isn’t mentioned in the AppleTV integration but it works. It even passed the “pincode” thing (which is not possible to input due it’s a speaker Sony SRS-88) The only thing that doesn’t work is the service: notify. So I need to figure out how to send speech to the device other then call-service notify I used until now for some tablets…
Thanks. Hope this keeps working in the future…

You can try the Chime TTS integration’s notify feature

I see that it works with service: tts.speak instead of notify.

service: tts.speak
target:
  entity_id: tts.google_nl_nl
data:
  cache: true
  media_player_entity_id: media_player.srs_x88
  language: en
  message: bla bla bla
1 Like

Glad to help! I think it should continue to work. This GitHub Pull Request has links to a few other PRs/Issues where the devs talked about issues with auto-discovery discovering some devices that already had a better protocol, like Sonos speakers. They deemed that there should be filters so users don’t get duplicate devices. There was also talk of renaming the Apple TV integration, but that didn’t move ahead.

Yep that’s the one I was using.

Hi! I don’t think I’m understanding how you can add the airplay device through the apple tv integration? I have a device that I can use as a speaker via Airplay from the Apple TV, but I’m not seeing it as a media player in home assistant.

Are you saying that you end up having the onkyo receiver as a media_player somehow? Thanks!

Hi Sterlinm, yes I have my Onkyo receiver appear as an Apple TV media_player. I just double checked and it’s all still working.

It won’t be automatically discovered, instead it has to be added manually:

  • Either click this link, or navigate to Settings > Devices and Services > Add Integration > Apple > Apple TV.
  • Enter the IP address of your AirPlay device (you may need to get that from your router, and ideally it should be a static/DHCP reserved IP address).
  • Follow any further prompts (I can’t remember if I had to enter any additional pairing codes)

It should now appear in Home Assistant with a media player and remote entity.