Hello,
I have created buttons in HA that are associated to a MQTT platform for the activation of a pool filtration pump.
button:
- platform: mqtt
name: "Pump activation"
command_topic: "CMD/PUMP"
qos: 0
retain: false
payload_press: "ON"
I have also completed the integration of Google Home in HA.
Then I have created an automation in Google Home that can successfully activate the pump with a voice command because Google home recognizes my HA buttons as actionable actions.
I would like now to create a button that could send sensor information through a voice message on Google assistant and that could be triggered by an incoming voice message recognized by my Google assistant.
I first tried with a button card on the GUI.
type: button
icon: mdi:gesture-tap-button
show_state: true
name: Test
hold_action:
action: none
tap_action:
action: call-service
service: tts.google_translate_say
service_data:
entity_id: media_player.chromecast_de_beatrice
message: >-
Le niveau de CO2 est {{ states('sensor.netatmo_maison_nancras_indoor_co2')
}} ppm ! La température extérieure est de {{
states('sensor.netatmo_maison_nancras_indoor_exterieur_temperature') }}
degré'Bonsoir: ceci est un nouvel essai..'
language: fr
target: {}
The button is working fine from HA GUI but is not recognized by home assistant as an action.
I have also tried also to declare a button inside the configuration file but didn’t find the correct syntax.
How can I declare in the configuration.yaml file, a button similar to my “MQTT” button but associated to the service “google_translate_say” and not to a MQTT topic ?
1 post - 1 participant