How to resume status/playlist from media player

Hi, I am new to home assistant and trying to use a automation for my doorbell.

My doorbell is just a zigbee button/switch and my squeezebox is playing a “ding dong” sound when the button is pressed. Its working fine, but when i am already listening to some music i want to resume it after the “ding dong”. Can anybody help me to figure out how to do this?

This is my automation at the moment:

alias: Türklingel
description: ''
trigger:
  - device_id: a03da7b831dae19002c390362ddb0233
    domain: deconz
    platform: device
    type: remote_button_short_press
    subtype: turn_on
  - device_id: a03da7b831dae19002c390362ddb0233
    domain: deconz
    platform: device
    type: remote_button_short_press
    subtype: turn_off
condition: []
action:
  - service: media_player.volume_set
    data:
      volume_level: 0.8
    target:
      entity_id: media_player.squeezebox_radio
  - service: media_player.play_media
    target:
      entity_id: media_player.squeezebox_radio
    data:
      media_content_id: >-
        media-source://media_source/local/salamisound-5172286-klingel-ding-dong.mp3
      media_content_type: audio/mpeg
    metadata:
      title: salamisound-5172286-klingel-ding-dong.mp3
      thumbnail: null
      media_class: music
      children_media_class: null
      navigateIds:
        - {}
        - media_content_type: app
          media_content_id: media-source://media_source
  - delay:
      hours: 0
      minutes: 0
      seconds: 2
      milliseconds: 0
  - service: media_player.turn_off
    data: {}
    target:
      entity_id: media_player.squeezebox_radio
  - service: notify.mobile_app_jans_iphone
    data:
      message: Ding Dong
      title: Es hat geklingelt!
      data:
        push:
          sound:
            name: default
            critical: 1
            volume: 1
mode: single

1 Like

No one any idea?

If you do some (exhaustive) searching around, you will notice that this issue is not new, and there are a number of fixes that remain often generically un-usable or extremely complicated to implement (especially if - like me, you are not quite yet a HAS buff!!).

I STRONGLY suggest - (as I did) - that you consider posting a note in the Home Assistant feature request area of the forum. Hopefully with enough people requesting assistance with this 8ssue - some kind expert will MAKE A global SOLUTION!

Let’s hope so!

If anyone else has found something that works… PLEASE MAKE A FUSS ABOUT IT!!!

Cheers from Cape Town :south_africa: