BobbyHirst / HomeAssistantGPT

MIT License
32 stars 3 forks source link

Home Assistant GPT Integration

Overview

Home Assistant GPT is a custom GPT assistant that interfaces with the Home Assistant API, allowing you to control and query various home devices with ease. This integration leverages the power of GPT-4 to provide an intuitive and responsive experience for managing your home automation setup.

Pre-requisites

Features

Example in action

Here's an example of the GPT calling an automation to turn on the TV in my house.

TV Time

You can see on the data shared that it determined the correct automation to run, just from the name.

Data sent

Setup Instructions

  1. GPT Initialization:

    • Create a new GPT named 'Home Assistant'.
    • Use the following prompt, updating it with your entity list: Prompt Link
  2. Action Integration:

    • Add Actions using the provided OpenAPI Spec. Ensure to replace the URL with your public address: API Spec Link
  3. Authentication:

    • Add an API Bearer Token for authentication. This token should be a long-lived token generated from your user page in the Home Assistant API.
  4. Finalizing GPT Setup:

    • In your GPT settings, turn off "Use conversation data in your GPT to improve our models" for privacy.
    • Test the setup in the preview.
  5. Publication:

    • When ready, publish the GPT. It's recommended to set it as Private for security.

Entity Interaction

Future Enhancements

Contributing

Contributions are welcome! This project is in its early stages and open to ideas, improvements, and creative enhancements.

Disclaimer

This integration is not officially affiliated with OpenAI or Home Assistant.


“Hey HomeAssistant, can you please lock up and let me know if the windows are all closed?” Just the beginning of what's possible with Home Assistant GPT.