Giter Club home page Giter Club logo

chatgpt-homeassistant-plugin's Introduction

Home Assistant ChatGPT Plugin

A Home Assistant Plugin for managing lights and switches in your home, using OpenAI's ChatGPT. You can turn lights and switches on and off, and change the color of lights.

Example

Installation and Setup

  1. Install the required packages: Run the following command to install required packages:
pip install -r requirements.txt
  1. Configure the plugin:
  • Copy the example config file:
cp config.py.example config.py
  • Fill in your Home Assistant URL and Bearer Token
headers = {
    "Authorization": "Bearer YOUR_HOME_ASSISTANT_TOKEN",
    "Content-Type": "application/json",
}
home_assistant_url = "http://YOUR_HOME_ASSISTANT_IP:PORT"
  1. Run the plugin: Start the local server by running the following command:
python main.py

Plugin Installation in OpenAI Chat

  1. Navigate to https://chat.openai.com.
  2. In the Model drop down, select "Plugins" (note, if you don't see it there, you don't have access yet).
  3. Select "Plugin store"
  4. Select "Develop your own plugin"
  5. Enter localhost:5003 as the URL the server is running on locally, then click "Find manifest file".

The Home Assistant ChatGPT Plugin should now be installed and enabled!

Usage Examples

You can interact with the plugin by sending commands such as:

  • Please give me the status of the lights
  • Please turn on light called "XXX"

Getting help

If you run into issues or have questions building a plugin, please join our Developer community forum.

chatgpt-homeassistant-plugin's People

Contributors

lombax85 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.