Fix TTS google_translate→google_ai_tts, robust garage automation

- Replace broken media_player.play_media/google_translate TTS with tts.speak/google_ai_tts
  in doerklokke_for.yaml (4x), doerklokke_bag2.yaml (3x), doorbell.yaml (1x)
- Garage automation: add GPS debounce, dual trigger (phone+car), cover.toggle,
  post-delay re-check, last_changed guard against false opens
- Remove duplicate doerklokke_bag.yaml (replaced by doerklokke_bag2.yaml)
This commit is contained in:
2026-04-19 18:40:14 +02:00
parent fcb290a1aa
commit d39e0051db
5 changed files with 590 additions and 1153 deletions
+91 -121
View File
@@ -8,39 +8,69 @@
doorbell:
alias: Dørklokke
sequence:
- service: notify.mobile_app_claus_iphone_15pro
data:
message: '{{ tekst }}'
- service: notify.mobile_app_annes_iphone_14_pro
data:
message: '{{ tekst }}'
- choose:
- conditions:
- condition: time
after: '20:00:00'
before: 06:00:00
weekday:
- mon
- tue
- wed
- thu
- fri
- sat
- sun
sequence:
- parallel:
- sequence:
- choose:
- conditions:
- condition: time
after: '20:00:00'
before: '06:00:00'
sequence:
- service: media_player.volume_set
data:
volume_level: "{{ volumennat }}"
target:
entity_id: media_player.lille_badevaerelse
- service: media_player.play_media
target:
entity_id: media_player.lille_badevaerelse
data:
media_content_id: media-source://media_source/local/doorbell-shortened-100308.mp3
media_content_type: audio/mpeg
metadata:
title: doorbell-shortened-100308.mp3
thumbnail:
media_class: music
children_media_class:
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
default:
- service: media_player.volume_set
data:
volume_level: "{{ volumendag }}"
target:
entity_id: media_player.lille_badevaerelse
- service: media_player.play_media
target:
entity_id: media_player.lille_badevaerelse
data:
media_content_id: media-source://media_source/local/doorbell.mp3
media_content_type: audio/mpeg
metadata:
title: doorbell.mp3
thumbnail:
media_class: music
children_media_class:
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
- sequence:
- service: media_player.volume_set
data:
volume_level: "{{ volumennat }}"
volume_level: "{{ volumendag }}"
target:
entity_id: media_player.lille_badevaerelse
entity_id: media_player.andreas
- service: media_player.play_media
target:
entity_id: media_player.lille_badevaerelse
entity_id: media_player.andreas
data:
media_content_id: media-source://media_source/local/doorbell-shortened-100308.mp3
media_content_id: media-source://media_source/local/doorbell.mp3
media_content_type: audio/mpeg
metadata:
title: doorbell-shortened-100308.mp3
title: doorbell.mp3
thumbnail:
media_class: music
children_media_class:
@@ -48,6 +78,42 @@ doorbell:
- {}
- media_content_type: app
media_content_id: media-source://media_source
- sequence:
- service: media_player.volume_set
data:
volume_level: "{{ volumendag }}"
target:
entity_id: media_player.daniel
- service: media_player.play_media
target:
entity_id: media_player.daniel
data:
media_content_id: media-source://media_source/local/doorbell.mp3
media_content_type: audio/mpeg
metadata:
title: doorbell.mp3
thumbnail:
media_class: music
children_media_class:
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
- sequence:
- service: tts.speak
target:
entity_id: tts.google_ai_tts
data:
media_player_entity_id: media_player.alrum
message: "Der er nogen der ringer på bagdøren"
- sequence:
- service: notify.mobile_app_claus_iphone_15pro
data:
message: '{{ tekst }}'
- service: notify.mobile_app_annes_iphone_14_pro
data:
message: '{{ tekst }}'
- sequence:
- service: scene.create
data:
scene_id: before
@@ -62,102 +128,6 @@ doorbell:
- delay: 2
- service: scene.turn_on
entity_id: scene.before
default:
- service: media_player.volume_set
data:
volume_level: "{{ volumendag }}"
target:
entity_id: media_player.lille_badevaerelse
- service: media_player.play_media
target:
entity_id: media_player.lille_badevaerelse
data:
media_content_id: media-source://media_source/local/doorbell.mp3
media_content_type: audio/mpeg
metadata:
title: doorbell.mp3
thumbnail:
media_class: music
children_media_class:
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
- service: media_player.volume_set
data:
volume_level: "{{ volumendag }}"
target:
entity_id: media_player.andreas
- service: media_player.play_media
target:
entity_id: media_player.andreas
data:
media_content_id: media-source://media_source/local/doorbell.mp3
media_content_type: audio/mpeg
metadata:
title: doorbell.mp3
thumbnail:
media_class: music
children_media_class:
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
- service: media_player.volume_set
data:
volume_level: "{{ volumendag }}"
target:
entity_id: media_player.daniel
- service: media_player.play_media
target:
entity_id: media_player.daniel
data:
media_content_id: media-source://media_source/local/doorbell.mp3
media_content_type: audio/mpeg
metadata:
title: doorbell.mp3
thumbnail:
media_class: music
children_media_class:
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://media_source
- service: media_player.play_media
target:
entity_id: media_player.alrum
data:
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
media_content_type: provider
metadata:
title: 'der er nogen der ringer på bagdøren
'
thumbnail: https://brands.home-assistant.io/_/google_translate/logo.png
media_class: app
children_media_class:
navigateIds:
- {}
- media_content_type: app
media_content_id: media-source://tts
- media_content_type: provider
media_content_id: media-source://tts/google_translate?message=der+er+nogen+der+ringer+p%C3%A5%0A
- service: scene.create
data:
scene_id: before
snapshot_entities:
- light.pendle1
- service: light.turn_on
data:
entity_id: light.pendle1
brightness: 255
rgb_color: [255, 0, 0]
flash: long
- delay: 2
- service: scene.turn_on
entity_id: scene.before
- service: media_player.volume_set
data:
volume_level: "{{ volumennat }}"