I'm trying to use Chime TTS to make an announce ment, but not stop the media playing

Hi,
I’m trying to use Sonoff door sensors to notify via ChimeTTS that a door has been opened / closed. I have it working, it announces door open / door closed, but it stops the currently playing media. On the screens it shows a new media player has been used to run the TTS output essentially stopping whatever was being used before this. The media player then stays on the screen for a while (many minutes) before going back to default i.e. nothing running / screen saver.

I’m sending the announcement to 2 google home screens.

I’m using the GUI method to set this up as pretty much brand new to YAML and HA. The YAML is this if it helps:

alias: Front door open
description: “”
triggers:

  • type: opened
    device_id: door id
    entity_id: ID of that
    domain: binary_sensor
    trigger: device
    conditions:
    actions:
  • action: chime_tts.say
    metadata: {}
    data:
    message: Front door is open
    cache: true
    tts_platform: cloud
    chime_path: bells
    offset: 100
    volume_level: 0.6
    announce: true
    enabled: true
    target:
    device_id:
    - ID 1
    - ID 2
    mode: single

Could anyone help me with what is required to get this automation to not stop the currently playing media and just dip the volume, make the announcement and carry on?

The setting ‘announce’ according to AI guides should make this work. In reality, it seems the new media player opening to make the TTS cancels the previous action of what was playing.

Thanks,

James

1 Like

Hi James, welcome to the forum!

Please use the </> button in the toolbar under the :gear: symbol to format your code properly as mentioned in this topic.

Is that the whole automation for this situation?