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:
@@ -16,46 +16,70 @@
|
||||
- condition: template
|
||||
value_template: '{{ trigger.payload_json.event == "S" }}'
|
||||
sequence:
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: Det ringer på fordøren
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
data:
|
||||
message: Det ringer på fordøren
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: '20:00:00'
|
||||
before: 06:00:00
|
||||
weekday:
|
||||
- mon
|
||||
- tue
|
||||
- wed
|
||||
- thu
|
||||
- fri
|
||||
- sat
|
||||
- sun
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.5
|
||||
- parallel:
|
||||
- sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: '20:00:00'
|
||||
before: '06:00:00'
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.5
|
||||
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/Halloween-doorbell.mp3
|
||||
media_content_type: audio/mpeg
|
||||
metadata:
|
||||
title: Halloween-doorbell.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: 0.8
|
||||
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: tts.speak
|
||||
target:
|
||||
entity_id: media_player.lille_badevaerelse
|
||||
- service: media_player.play_media
|
||||
target:
|
||||
entity_id: media_player.lille_badevaerelse
|
||||
entity_id: tts.google_ai_tts
|
||||
data:
|
||||
media_content_id: media-source://media_source/local/Halloween-doorbell.mp3
|
||||
media_content_type: audio/mpeg
|
||||
metadata:
|
||||
title: Halloween-doorbell.mp3
|
||||
thumbnail:
|
||||
media_class: music
|
||||
children_media_class:
|
||||
navigateIds:
|
||||
- {}
|
||||
- media_content_type: app
|
||||
media_content_id: media-source://media_source
|
||||
media_player_entity_id: media_player.alrum
|
||||
message: "Der er nogen der ringer på fordøren"
|
||||
- sequence:
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: Det ringer på fordøren
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
data:
|
||||
message: Det ringer på fordøren
|
||||
- sequence:
|
||||
- service: scene.create
|
||||
data:
|
||||
scene_id: before
|
||||
@@ -70,320 +94,210 @@
|
||||
- delay: 2
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.before
|
||||
|
||||
default:
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.8
|
||||
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.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å
|
||||
|
||||
'
|
||||
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
|
||||
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: '{{ trigger.payload_json.event == "SS" }}'
|
||||
sequence:
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: Det ringer på fordøren - doublepress
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
data:
|
||||
message: Det ringer på fordøren - doublepress
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: '20:00:00'
|
||||
before: 06:00:00
|
||||
weekday:
|
||||
- mon
|
||||
- tue
|
||||
- wed
|
||||
- thu
|
||||
- fri
|
||||
- sat
|
||||
- sun
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.5
|
||||
- parallel:
|
||||
- sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: '20:00:00'
|
||||
before: '06:00:00'
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.5
|
||||
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/german-shephard.mp3
|
||||
media_content_type: audio/mpeg
|
||||
metadata:
|
||||
title: german-shephard.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: 0.8
|
||||
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/german-shephard.mp3
|
||||
media_content_type: audio/mpeg
|
||||
metadata:
|
||||
title: german-shephard.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: media_player.lille_badevaerelse
|
||||
- service: media_player.play_media
|
||||
target:
|
||||
entity_id: media_player.lille_badevaerelse
|
||||
entity_id: tts.google_ai_tts
|
||||
data:
|
||||
media_content_id: media-source://media_source/local/german-shephard.mp3
|
||||
media_content_type: audio/mpeg
|
||||
metadata:
|
||||
title: german-shephard.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: 0.8
|
||||
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/german-shephard.mp3
|
||||
media_content_type: audio/mpeg
|
||||
metadata:
|
||||
title: german-shephard.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å
|
||||
|
||||
'
|
||||
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
|
||||
media_player_entity_id: media_player.alrum
|
||||
message: "Der er nogen der ringer på fordøren"
|
||||
- sequence:
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: Det ringer på fordøren - doublepress
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
data:
|
||||
message: Det ringer på fordøren - doublepress
|
||||
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: '{{ trigger.payload_json.event == "SSS" }}'
|
||||
sequence:
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: Det ringer på fordøren - triple-press
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
data:
|
||||
message: Det ringer på fordøren - triple-press
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: '20:00:00'
|
||||
before: 06:00:00
|
||||
weekday:
|
||||
- mon
|
||||
- tue
|
||||
- wed
|
||||
- thu
|
||||
- fri
|
||||
- sat
|
||||
- sun
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.5
|
||||
- parallel:
|
||||
- sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: '20:00:00'
|
||||
before: '06:00:00'
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.5
|
||||
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/dog-barking-2-bullmastiff.mp3
|
||||
media_content_type: audio/mpeg
|
||||
metadata:
|
||||
title: dog-barking-2-bullmastiff.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: 0.8
|
||||
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/dog-barking-2-bullmastiff.mp3
|
||||
media_content_type: audio/mpeg
|
||||
metadata:
|
||||
title: dog-barking-2-bullmastiff.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: media_player.lille_badevaerelse
|
||||
- service: media_player.play_media
|
||||
target:
|
||||
entity_id: media_player.lille_badevaerelse
|
||||
entity_id: tts.google_ai_tts
|
||||
data:
|
||||
media_content_id: media-source://media_source/local/dog-barking-2-bullmastiff.mp3
|
||||
media_content_type: audio/mpeg
|
||||
metadata:
|
||||
title: dog-barking-2-bullmastiff.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: 0.8
|
||||
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/dog-barking-2-bullmastiff.mp3
|
||||
media_content_type: audio/mpeg
|
||||
metadata:
|
||||
title: dog-barking-2-bullmastiff.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å
|
||||
|
||||
'
|
||||
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
|
||||
media_player_entity_id: media_player.alrum
|
||||
message: "Der er nogen der ringer på fordøren"
|
||||
- sequence:
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: Det ringer på fordøren - triple-press
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
data:
|
||||
message: Det ringer på fordøren - triple-press
|
||||
|
||||
- conditions:
|
||||
- condition: template
|
||||
value_template: '{{ trigger.payload_json.event == "L" }}'
|
||||
sequence:
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: Det ringer på fordøren - long-press
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
data:
|
||||
message: Det ringer på fordøren - long-press
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: '20:00:00'
|
||||
before: 06:00:00
|
||||
weekday:
|
||||
- mon
|
||||
- tue
|
||||
- wed
|
||||
- thu
|
||||
- fri
|
||||
- sat
|
||||
- sun
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.5
|
||||
- parallel:
|
||||
- sequence:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: time
|
||||
after: '20:00:00'
|
||||
before: '06:00:00'
|
||||
sequence:
|
||||
- service: media_player.volume_set
|
||||
data:
|
||||
volume_level: 0.5
|
||||
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/two-tone-chime.mp3
|
||||
media_content_type: audio/mpeg
|
||||
metadata:
|
||||
title: two-tone-chime.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: 0.8
|
||||
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/two-tone-chime.mp3
|
||||
media_content_type: audio/mpeg
|
||||
metadata:
|
||||
title: two-tone-chime.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: media_player.lille_badevaerelse
|
||||
- service: media_player.play_media
|
||||
target:
|
||||
entity_id: media_player.lille_badevaerelse
|
||||
entity_id: tts.google_ai_tts
|
||||
data:
|
||||
media_content_id: media-source://media_source/local/two-tone-chime.mp3
|
||||
media_content_type: audio/mpeg
|
||||
metadata:
|
||||
title: two-tone-chime.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: 0.8
|
||||
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/two-tone-chime.mp3
|
||||
media_content_type: audio/mpeg
|
||||
metadata:
|
||||
title: two-tone-chime.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å
|
||||
|
||||
'
|
||||
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
|
||||
media_player_entity_id: media_player.alrum
|
||||
message: "Der er nogen der ringer på fordøren"
|
||||
- sequence:
|
||||
- service: notify.mobile_app_claus_iphone_15pro
|
||||
data:
|
||||
message: Det ringer på fordøren - long-press
|
||||
- service: notify.mobile_app_annes_iphone_14_pro
|
||||
data:
|
||||
message: Det ringer på fordøren - long-press
|
||||
|
||||
mode: single
|
||||
trigger_variables:
|
||||
|
||||
Reference in New Issue
Block a user