Create button with google assistant SDK

hi guys, i just installed my home assistant, i’ve been searching for almost 5 hour to find how to make button with google assistant sdk and still clueless.

i successfully create on off button but with 2 button, not single button
this is the parameter:
-action:

  • service: google_assistant_sdk.send_text_command
    data:
    command: fan on

thank you, sorry for my english.

https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16

Use a template button:

- button:
  - name: "Fan on"
    press:
      service: google_assistant_sdk.send_text_command
      data:
        command: fan on