# Automation Türklingel

**URL:** <https://community-smarthome.com/t/automation-tuerklingel/6582>\
**Category:** Blueprints\
**Created:** [2. Juni 2025 um 15:59 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582 "2025-06-02T15:59:08Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![MiKon38](https://community-smarthome.com/user_avatar/community-smarthome.com/mikon38/32/14215_2.png) [@MiKon38](https://community-smarthome.com/u/MiKon38)\
**Post date:** [2. Juni 2025 um 15:59 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/1 "2025-06-02T15:59:08Z")

</div>

Hallöchen an alle,  
ich hätte eine Frage: ich experimentiere gerade mit HA ein wenig herum. Ich habe mir eine Homematic IP Klingel bestellt,die ich über eine Automation einbinden möchte. Wenn jemand auf die Klingel drückt,soll auf unserem Nesthub WZ und auf meinem Soundtouch eine Stimme sagen: es klingelt an der Tür,danach ein Klingelton abgespielt werden. Ich denke das bekomme ich soweit hin (hoffe ich zumindest 😉). Hab mit Text to speech schon herumprobiert,auf meinem Bose Soundtouch hat die Sprachausgabe funktioniert. Dabei ist mir aber etwas aufgefallen. Auf dem Soundtouch lief ein Web-Radiosender ,als die Stimme dann den Text sagt,war natürlich das Radio aus - wie kann ich das einstellen,das das Radio danach weiter spielt? Das gleiche Problem werde ich wohl auf dem Nesthub auch haben,da werden meine Fotos angezeigt (im 30s Wechsel),ich befürchte das der Nesthub in einem bestimmten Modus verbleibt. Wie kann ich „automatisieren“, das der zuvor eingestellte  
Zustand wieder aktiviert wird??

---

<div class="post-metadata">

**Author:** ![41564](https://community-smarthome.com/letter_avatar_proxy/v4/letter/4/c4cdca/32.png) [@41564](https://community-smarthome.com/u/41564)\
**Post date:** [3. Juni 2025 um 08:41 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/2 "2025-06-03T08:41:38Z")

</div>

Ich habe das Bild der Blink Kamera bei Klingeln auf dem Echo Show. Habe dann in der Automation eine wait time von 2 Minuten und danach geht der Show wieder zum Startbildschirm über. Radio kann man auch ei stellen aber dann läuft das Radio immer auch wenn s aus war vorher. Da bin ich noch nicht dahinter gestiegen, das man den eigentlichen Zustand davor wieder hinbekommt. Daher nur der Startbildschirm ei einem Echo, der nur für die Bilder genutzt wird und kein Radio abspielt bei mir.

---

<div class="post-metadata">

**Author:** ![MiKon38](https://community-smarthome.com/user_avatar/community-smarthome.com/mikon38/32/14215_2.png) [@MiKon38](https://community-smarthome.com/u/MiKon38)\
**Post date:** [3. Juni 2025 um 09:40 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/3 "2025-06-03T09:40:22Z")

</div>

Vielen Dank schon mal dafür 😊 wenn der Nesthub dann wieder Bilder anzeigt, wäre ich schon zufrieden. Radio läuft meistens früh morgens, da klingelt noch keiner.  
Heute kommt der smarte Klingeltaster - dann gehts ans ausprobieren. Werde hier auch berichten.

---

<div class="post-metadata">

**Author:** ![MiKon38](https://community-smarthome.com/user_avatar/community-smarthome.com/mikon38/32/14215_2.png) [@MiKon38](https://community-smarthome.com/u/MiKon38)\
**Post date:** [3. Juni 2025 um 19:06 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/4 "2025-06-03T19:06:24Z")

</div>

Erste Ernüchterung stellt sich ein: ich bekomme in Home Assistent keine Aktion vom Taster angezeigt. Ich vermute das der Taster den Tastendruck nicht an die Cloud weiter gibt. Hat einer eine Idee wie ich das erreichen kann??

---

<div class="post-metadata">

**Author:** ![jayjojayson](https://community-smarthome.com/user_avatar/community-smarthome.com/jayjojayson/32/639_2.png) [@jayjojayson](https://community-smarthome.com/u/jayjojayson)\
**Post date:** [3. Juni 2025 um 21:10 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/5 "2025-06-03T21:10:20Z")

</div>

Hi, wie das Leben so spielt, ich habe mir gestern auch den Homematic Klingeltaster für den zweiten Eingang gekauft. Ich werde den aber lokal und nicht über cloud einbinden (wie alle Geräte bei mir), dann sollte der Tastendruck korrekt in HA ankommen.

Zu deiner Frage mit dem Weiterspielen nachdem geklingelt wurde. Dafür müsstest du dir einen Sensor anlegen, der den letzten Radio Sender speichert, sobald die Klingel betätigt wurde. Dann kann nach dem Klingeln der Sensor genutzt werden, um wieder den letzten Radiosender abzuspielen.

Ich habe bei mir einen Sensor der das zuletzt genutzte Echo Gerät anzeigt und der sieht dann so aus:

```yaml
sensor
  - platform: template
    sensors:
      last_alexa:
        unique_id: letzter Alexa input
        value_template: >
            {%- for group in states.media_player | groupby('state') -%}
              {%- for entity in group.list -%}
                {%- if is_state_attr(entity.entity_id, 'last_called', true) %}
                  {{ entity.entity_id }}
                {%- endif -%}
              {%- endfor -%}
            {%- endfor -%}

```

---

<div class="post-metadata">

**Author:** ![MiKon38](https://community-smarthome.com/user_avatar/community-smarthome.com/mikon38/32/14215_2.png) [@MiKon38](https://community-smarthome.com/u/MiKon38)\
**Post date:** [4. Juni 2025 um 06:21 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/6 "2025-06-04T06:21:02Z")

</div>

Dann werde ich mich mal mit der Homematic IP local Installation beschäftigen.

---

<div class="post-metadata">

**Author:** ![tukane](https://community-smarthome.com/user_avatar/community-smarthome.com/tukane/32/640_2.png) [@tukane](https://community-smarthome.com/u/tukane)\
**Post date:** [4. Juni 2025 um 09:00 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/7 "2025-06-04T09:00:09Z")

</div>

Du kannst Zustände von Entitäten speichern. Das wird z.B. hier beschrieben: [Zustand einer Entität speichern und wiederherstellen in Home Assistant | Smart Home & Home Assistant Blog](https://smart-live.net/zustand-einer-entitat-speichern-und-wiederherstellen-in-home-assistant/)  
Somit kannst Du beim Auslösen der Klingel vor dem Abspielen der Nachricht die Zustände der beiden Geräte speichern und danach wieder herstellen.

---

<div class="post-metadata">

**Author:** ![MiKon38](https://community-smarthome.com/user_avatar/community-smarthome.com/mikon38/32/14215_2.png) [@MiKon38](https://community-smarthome.com/u/MiKon38)\
**Post date:** [6. Juni 2025 um 10:27 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/8 "2025-06-06T10:27:22Z")

</div>

Hab jetzt ein wenig ausprobiert mit „Entität speichern“ - irgendwie funktioniert das nicht. Wenn ich die Szene aktiviere (ausführen) , ist das Radio aus (lief vorher). Egal was ich mache, es bleibt aus nachdem die Textansage kam..

---

<div class="post-metadata">

**Author:** ![maxe](https://community-smarthome.com/user_avatar/community-smarthome.com/maxe/32/658_2.png) [@maxe](https://community-smarthome.com/u/maxe)\
**Post date:** [6. Juni 2025 um 10:47 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/9 "2025-06-06T10:47:39Z")

</div>

Ich hatte das damals für meinen Nest Hub mit solch einem Skript für meine Klingel gemacht

```auto
alias: TTS Doors ring
variables:
  media_entity: media_player.xy
  temp_media_ContentId: media-source://media_source/local/doorbell-rings.mp3
  temp_volume: 0.4
  temp_duration_seconds: 7
  mediaplayer_State: "{{ states(media_entity) }}"
  mediaplayer_volume_level: "{{ state_attr(media_entity,'volume_level') }}"
  mediaplayer_media_content_id: "{{ state_attr(media_entity,'media_content_id') }}"
sequence:
  - data:
      entity_id: "{{ media_entity }}"
      volume_level: "{{ temp_volume }}"
    action: media_player.volume_set
  - data:
      entity_id: "{{ media_entity }}"
      media_content_id: "{{ temp_media_ContentId }}"
      media_content_type: music
    action: media_player.play_media
  - delay:
      hours: 0
      minutes: 0
      seconds: "{{ temp_duration_seconds }}"
      milliseconds: 0
  - if:
      - condition: template
        value_template: "{{ mediaplayer_State == 'playing' }}"
    then:
      - data:
          entity_id: "{{ media_entity }}"
          volume_level: "{{ mediaplayer_volume_level }}"
        action: media_player.volume_set
      - data:
          entity_id: "{{ media_entity }}"
          media_content_id: "{{ mediaplayer_media_content_id }}"
          media_content_type: music
        action: media_player.play_media
    else:
      - data:
          entity_id: "{{ media_entity }}"
        action: media_player.media_pause
mode: single
description: ""

```

Du brauchst quasi nur die ersten beiden variables ändern

> media\_entity: media\_player.xy  
> temp\_media\_ContentId: media-source://media\_source/local/doorbell-rings.mp3

---

<div class="post-metadata">

**Author:** ![MiKon38](https://community-smarthome.com/user_avatar/community-smarthome.com/mikon38/32/14215_2.png) [@MiKon38](https://community-smarthome.com/u/MiKon38)\
**Post date:** [6. Juni 2025 um 11:33 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/10 "2025-06-06T11:33:56Z")

</div>

Kommt folgender Fehler:Message malformed: extra keys not allowed @ data[‚actions‘][0][‚sequence‘]

---

<div class="post-metadata">

**Author:** ![maxe](https://community-smarthome.com/user_avatar/community-smarthome.com/maxe/32/658_2.png) [@maxe](https://community-smarthome.com/u/maxe)\
**Post date:** [6. Juni 2025 um 13:36 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/11 "2025-06-06T13:36:25Z")

</div>

Du hast es aber als Skipt (nicht als Automation) angelegt?  
Sonst musst du es natürlich abändern.

---

<div class="post-metadata">

**Author:** ![MiKon38](https://community-smarthome.com/user_avatar/community-smarthome.com/mikon38/32/14215_2.png) [@MiKon38](https://community-smarthome.com/u/MiKon38)\
**Post date:** [7. Juni 2025 um 08:43 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/12 "2025-06-07T08:43:21Z")

</div>

Nach der Programmierung meiner Alarmanlage auf dem RaspberryMatic geht’s mit der Klingel weiter.  
@maxe : also unter Scripte anlegen,dann bei dem Klingeltaster eine Automation anlegen. Auslöser ist der Tastendruck,dann Script ausführen???

---

<div class="post-metadata">

**Author:** ![maxe](https://community-smarthome.com/user_avatar/community-smarthome.com/maxe/32/658_2.png) [@maxe](https://community-smarthome.com/u/maxe)\
**Post date:** [7. Juni 2025 um 10:17 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/13 "2025-06-07T10:17:28Z")

</div>

Wie du das verarbeitest ist vollkommen dir überlassen. Aber ja, so könntest du es versuchen.

---

<div class="post-metadata">

**Author:** ![MiKon38](https://community-smarthome.com/user_avatar/community-smarthome.com/mikon38/32/14215_2.png) [@MiKon38](https://community-smarthome.com/u/MiKon38)\
**Post date:** [7. Juni 2025 um 13:53 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/14 "2025-06-07T13:53:12Z")

</div>

@maxe : habe ein Script erstellt und die beiden Variablen angepasst. Wenn ich das Script starte - es läuft ein Radiosender - unterbricht das Script den Sender, es klingelt - er kehrt aber nicht zum Radio zurück. Wo liegt der Fehler??

---

<div class="post-metadata">

**Author:** ![Dreckfresse](https://community-smarthome.com/user_avatar/community-smarthome.com/dreckfresse/32/2467_2.png) [@Dreckfresse](https://community-smarthome.com/u/Dreckfresse)\
**Post date:** [7. Juni 2025 um 14:46 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/15 "2025-06-07T14:46:56Z")

</div>

Hatte das auch sehr lange Zeit,  
aber mit der Einführung von MusicAssistant ging das dann ohne Probleme

---

<div class="post-metadata">

**Author:** ![maxe](https://community-smarthome.com/user_avatar/community-smarthome.com/maxe/32/658_2.png) [@maxe](https://community-smarthome.com/u/maxe)\
**Post date:** [7. Juni 2025 um 14:51 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/16 "2025-06-07T14:51:47Z")

</div>

> [@MiKon38](#):
>
> Wo liegt der Fehler??

Kann ich dir nicht sagen.  
Hast du die temp\_duration\_seconds abgewartet bzw. mal mit den Sekunden gespielt?

---

<div class="post-metadata">

**Author:** ![MiKon38](https://community-smarthome.com/user_avatar/community-smarthome.com/mikon38/32/14215_2.png) [@MiKon38](https://community-smarthome.com/u/MiKon38)\
**Post date:** [7. Juni 2025 um 14:55 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/17 "2025-06-07T14:55:53Z")

</div>

@maxe : Dieser Fehler kommt:  
Die Aktion script/tts\_doors\_ring konnte nicht ausgeführt werden. string value is None for dictionary value @ data[‚media\_content\_id‘]

---

<div class="post-metadata">

**Author:** ![maxe](https://community-smarthome.com/user_avatar/community-smarthome.com/maxe/32/658_2.png) [@maxe](https://community-smarthome.com/u/maxe)\
**Post date:** [7. Juni 2025 um 14:59 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/18 "2025-06-07T14:59:34Z")

</div>

> [@MiKon38](#):
>
> media\_content\_id

Dann stimmt wohl der Pfad zur Datei nicht

---

<div class="post-metadata">

**Author:** ![MiKon38](https://community-smarthome.com/user_avatar/community-smarthome.com/mikon38/32/14215_2.png) [@MiKon38](https://community-smarthome.com/u/MiKon38)\
**Post date:** [7. Juni 2025 um 15:05 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/19 "2025-06-07T15:05:43Z")

</div>

@maxe : aber er spielt die Datei ab…es klingelt

---

<div class="post-metadata">

**Author:** ![maxe](https://community-smarthome.com/user_avatar/community-smarthome.com/maxe/32/658_2.png) [@maxe](https://community-smarthome.com/u/maxe)\
**Post date:** [7. Juni 2025 um 17:07 UTC](https://community-smarthome.com/t/automation-tuerklingel/6582/20 "2025-06-07T17:07:10Z")

</div>

Hab leider momentan keine Idee mehr.

[Nächste Seite](https://community-smarthome.com/t/automation-tuerklingel/6582.md?page=2)
