Megabytemb / dialogflow_conversation

Use Dialogflow as a conversation agent in Home Assistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dialogflow_Conversation

GitHub Release GitHub Activity License

hacs

Discord Community Forum

The Dialogflow Conversation integration is a custom component for Home Assistant, providing a seamless bridge between your Home Assistant setup and the Dialogflow conversational AI platform by Google​​. It leverages the capabilities of Dialogflow to make your home smart devices more interactive and responsive to natural language commands.

This integration will set up the following platforms.

Platform Description
conversation Used to connect the Home Assistant Assist pipeline to Dialogflow.
intent Intent recognition after dialogflow response.

Installation

Installation through HACS

  1. Go to the HACS page on your Home Assistant instance.
  2. Click on "Integrations".
  3. Click on the three dots in the top right corner and select "Custom repositories".
  4. Add https://github.com/Megabytemb/dialogflow_conversation as a custom repository and select "Integration" as the category.
  5. Click "Add".
  6. The dialogflow_conversation integration will now be available for installation in HACS.

Manual installation

  1. Using the tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml).
  2. If you do not have a custom_components directory (folder) there, you need to create it.
  3. In the custom_components directory (folder) create a new folder called dialogflow_conversation.
  4. Download all the files from the custom_components/dialogflow_conversation/ directory (folder) in this repository.
  5. Place the files you downloaded in the new directory (folder) you created.
  6. Restart Home Assistant
  7. In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "Dialogflow_Conversation"

Configuration is done in the UI

In addition to the UI configuration, you can also customize which entities are synced to Dialogflow by defining filters in your configuration.yaml file. This can be done using the filter configuration option under the dialogflow_conversation domain.

Here is an example of how to configure a filter:

dialogflow_conversation:
  filter:
    include_domains:
      - input_boolean

Please note that the filter configuration uses the same format as Home Assistant's entity filter configuration. You can include or exclude entities by domain, entity_id, or even by using glob patterns. For more details on the filter configuration, you can refer to the Homekit integration documentation on the Home Assistant website.

Contributions are welcome!

If you want to contribute to this please read the Contribution guidelines


About

Use Dialogflow as a conversation agent in Home Assistant

License:MIT License


Languages

Language:Python 94.6%Language:Shell 5.4%