jekalmin / extended_openai_conversation

Home Assistant custom component of conversation agent. It uses OpenAI to control your devices.
909 stars 128 forks source link

oops.. I used the wrong apikey.. #117

Closed sdetweil closed 7 months ago

sdetweil commented 7 months ago

so I used an expired free apikey.. created another edited the intergration, delete the service.. added another, used the correct apikey

made sure to export the entities again (all)

now is the tv on say s

Oops, an error has occurred

restarted HA as well..

jekalmin commented 7 months ago

Thanks for reporting an issue.

Is there any error logs? Also, did you change to correct conversation agent from assistant?

sdetweil commented 7 months ago

where would I find the logs?

yes, I changed dialog manager to openai

and exposed all the entities.they have changed how you do that now.. after you save the changes to the assistant, on the top bar is Expose..

jekalmin commented 7 months ago

used the correct apikey

Does correct apikey mean paid apikey? The paid apikey is required to use this integration.

where would I find the logs?

It's stored in home-assistant.log. If it's hard to see, normally there's a better way to monitor logs depending on how you installed HA.

How many entities have you exposed? Try to expose small number of entities first to make sure tokens doesn't exceed limit.

sdetweil commented 7 months ago

yes paid apikey

exposed all, 115

then deleted all in the expose list (don't do that! lol)

added lights and switches back

says don't know about that.

I deleted the last line in the integration which said don't manage local entities..

no change

sdetweil commented 7 months ago

i see this in the config, nothing in the ha logs homeassistant.exposed_entities which contains

{
  "version": 1,
  "minor_version": 1,
  "key": "homeassistant.exposed_entities",
  "data": {
    "assistants": {},
    "exposed_entities": {
      "sun.sun": {
        "assistants": {
          "conversation": {
            "should_expose": true
          }
        }
      },
      "zone.home": {
        "assistants": {
          "conversation": {
            "should_expose": true
          }
        }
      }
    }
  }
}

Screenshot 2024-01-27 10 15 00 AM

Screenshot 2024-01-27 10 13 52 AM

Screenshot 2024-01-27 10 17 07 AM

jekalmin commented 7 months ago

Did you use OpenAI Conversation or Extended OpenAI Conversation? From the image of "with google" above, it uses OpenAI Conversation as conversation agent.

Could you also capture an image of dialog and options like below?

dialog options
스크린샷 2024-01-29 오전 1 06 54 스크린샷 2024-01-29 오전 1 10 13
sdetweil commented 7 months ago

i started over

i git cloned the repo in the the custom components folder sam@buildserver:~/dev/HASSio/homeassistant/config/custom_components/extended_openai_conversation$

i only see openai as integrations to add Screenshot 2024-01-28 2 34 57 PM

Screenshot 2024-01-28 2 37 35 PM

and only see openai as the conversation handler

Screenshot 2024-01-28 2 39 01 PM

jekalmin commented 7 months ago

If installed correctly, you should be able to see Extended OpenAI Conversation like below.

스크린샷 2024-01-29 오전 11 43 25
sdetweil commented 7 months ago

so, what did I do wrong? i put the repo folder in the custom folder and restarted ha.

jekalmin commented 7 months ago

You did nothing wrong. Do you see Extended OpenAI Conversation like https://github.com/jekalmin/extended_openai_conversation/issues/117#issuecomment-1913867774 when typed "extended" in search input?

I am just curious if integration is installed correctly.

sdetweil commented 7 months ago

no. do not see extended

jekalmin commented 7 months ago

Could you capture images of folder structure? It seems you did everything correctly, but this integration is not added.

It should look like below.

config
ㄴ custom_components
  ㄴ extended_openai_conversation
    ㄴ __init__.py
    ㄴ config_flow.py
    ...
sdetweil commented 7 months ago

no.. i cloned the repo into custom_components

the text of the readme said or copy the extended.... into custom components.. i didn't see a folder named that, except the repo name i didn't drill into the structure of the repo

Screenshot 2024-01-29 7 20 37 AM

sdetweil commented 7 months ago

is this more correct Screenshot 2024-01-29 7 28 01 AM

sdetweil commented 7 months ago

now it works.

so, install problem

change the readme

by copying custom_components/extended_openai_conversation folder from this repo into ha/config/custom_components folder
jekalmin commented 7 months ago

Glad to hear that! Sorry for lack of details in readme. Hope you enjoy this integration :D

sdetweil commented 7 months ago

thanks for your attention and patience..