Play audio file for door announcement

Mostly just need some guidance…
My end goal is to have the home assistant (HASSIO) with speakers attached to the headphone jack to announce what door was opened.

Equipment on hand:
Zwave door senors already setup
Alexa dots or google mini if needed
Speakers hooked up the RPI running HASSIO
can record “front door” as sound file if needed

I can’t seem to find a media player for HASSIO, is there a addon out there?

ended up adding mopidy
and google tts

config for mopidy

media_player:
  - platform: mpd
    name: 'Ras Speaker'
    arguments: 'alsa-audio-device=hw:0,0'
    host: 192.168.xx.xx
    port: 6600

code for the google mini, but you could use the above media player too
alias: door announce
trigger:

  • entity_id: sensor.door_sensor_access_control
    from: ‘23’
    platform: state
    to: ‘24’
    condition: []
    action:
  • service: tts.google_say
    entity_id: media_player.graveyard_mini
    data:
    message: ‘Back door was opened’

as i add more sensors I should be able to go to an if statement
if there is a better way please correct me :slight_smile:

service: tts.google_say
data_template:
entity_id: media_player.graveyard_mini
message: >
{% if is_state(‘sensor.door_sensor_access_control’, ‘24’) %}
Back door was opened
{% endif %}
{% if is_state(‘sensor.door_sensor_access_control2’, ‘24’) %}
front door was opened
{% endif %}