extended_openai_conversation icon indicating copy to clipboard operation
extended_openai_conversation copied to clipboard

Something went wrong service sensor.read not found

Open pop-vapor opened this issue 9 months ago • 2 comments

I am trying to read data from the entity sensor.test_feed

Which has entries that look like this:

- title: News title
  link: https://somelink.com/story
- title: Another title
  link: https://www.nytimes.com/2024/05/13/nyregion/mercer-county-threats-white-people.html

I ensured that the entity is exposed to the voice assistant, but with the extended_openai_conversation agent selected if I ask "please read me one title from the test feed" it returns:

"Something went wrong: Service sensor.read not found"

It's able to access other entities like my zigbee lights, so not sure what the problem is here.

pop-vapor avatar May 14 '24 03:05 pop-vapor

For any that have this issue in the future, Iwas able to fix by adding the following to functions:

- spec:
    name: get_attributes
    description: Get attributes of any home assistant entity
    parameters:
      type: object
      properties:
        entity_id:
          type: string
          description: entity_id
      required:
      - entity_id
  function:
    type: template
    value_template: "{{states[entity_id]}}"

pop-vapor avatar May 14 '24 03:05 pop-vapor

"Something went wrong: Service sensor.read not found"

ChatGPT mixed up service and entity here. I have a similar issue with area and floor. I noticed that GPT3.5 became more "stupid".

jleinenbach avatar May 14 '24 11:05 jleinenbach