I’m working on creating a GPT to control Home Assistant using API calls. If I set the schema to use API’s just to turn on lights it works. If I set it to just turn off lights it works. As soon as I set the schema to have twos actions for turning off and on, It can do one of the actions. For the other action it gives a vague error, and I see no traffic indicating it tried to send the API request. The API for Home Assistant is pretty basic, so I know it’s not that, and I’ve checked that it’s at least saying its sending the entity_id each time.
Is anyone else seeing this kind of behavior setting up multiple actions?
Here’s a redacted copy of the schema I’m using. Do you all see anything wrong, or could this just be an issue with the model at the moment.
Thanks!!!
{
"openapi": "3.1.0",
"info": {
"title": "Home Assistant Light Control",
"description": "Used to control lights via Home Assistant API. Entity ID is important for specifying which light to control.",
"version": "v0.0.1"
},
"servers": [
{
"url": "https://hass.example.com"
}
],
"paths": {
"/api/services/light/turn_on": {
"post": {
"description": "Turns on the specified light entity within Home Assistant.",
"operationId": "turnOnLight",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LightControlRequestSchema"
}
}
},
"required": true
},
"security": [
{
"apiKey": []
}
]
}
},
"/api/services/light/turn_off": {
"post": {
"description": "Turns off the specified light entity within Home Assistant.",
"operationId": "turnOffLight",
"parameters": [],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LightControlRequestSchema"
}
}
},
"required": true
},
"security": [
{
"apiKey": []
}
]
}
}
},
"components": {
"schemas": {
"LightControlRequestSchema": {
"properties": {
"entity_id": {
"type": "string",
"title": "entity_id",
"description": "The unique identifier for the light entity to be controlled."
}
},
"type": "object",
"required": [
"entity_id"
],
"title": "LightControlRequestSchema"
}
},
"securitySchemes": {
"apiKey": {
"type": "apiKey"
}
}
}
}