Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 103050

How to resume status/playlist from media player

$
0
0

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 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 103050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>