Bonjour,
J’ai créé l’automation ci-dessous mais aucun son ne sort de mes google home.
Ma config frigate est fonctionnelle niveau MQTT.
Je souhaite que lorsque frigate detect quelques choses (MQTT donc), il notifie mes google home.
Je débute sur HA, il y a surement un problème dans le YAML mais quoi ?
Pouvez vous me le corriger ?
alias: Frigate TTS
description: ""
triggers:
- trigger: mqtt
topic: frigate/events
payload: doorbell_camera
value_template: "{{ value_json['after']['camera'] }}"
variables:
camera: "{{ trigger.payload_json['after']['camera'] }}"
id: "{{ trigger.payload_json['after']['id'] }}"
label: "{{ trigger.payload_json['after']['label'] }}"
score: "{{ trigger.payload_json['after']['score'] }}"
time_clip_start: "{{ trigger.payload_json['after']['start_time'] - 10.0 }}"
messageTTS: >-
{{ label }} détecté au portail | replace("_", " ") | replace("person",
"personne") | replace("dog", "chien") | replace("cat", "chat") |
replace("bicycle", "vélo") | replace("motorcycle", "vélo") |
replace("cat", "chat") | replace("car","voiture") | title }}
conditions:
- condition: template
value_template: "{{ trigger.payload_json['type'] == 'new' }}"
enabled: true
actions:
- action: tts.speak
metadata: {}
data:
cache: true
media_player_entity_id: media_player.google_home_cuisine
message: "{{ messageTTS }}"
language: fr
target:
entity_id: tts.google_translate_fr_fr
- action: tts.speak
metadata: {}
data:
cache: true
media_player_entity_id: media_player.google_home_sdb
message: "{{ messageTTS }}"
language: fr
target:
entity_id: tts.google_translate_fr_fr
enabled: true
mode: single