#Google Generative AI issue

1 messages · Page 1 of 1 (latest)

oblique zinc
#

I have this script which I use control the Climate fan mode of my air conditioner and i have this script exposed to the LLM however while using it I am only able to set it to powerful fan moed trying to use assist to set it to any other fan modes gives out this error

Sorry, I had a problem talking to Google Generative AI: 500 An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting

I tried using assist debug do find where the issue was but that was of no help either

conversation_id: null
device_id: null
intent_output:
  response:
    speech:
      plain:
        speech: >-
          Sorry, I had a problem talking to Google Generative AI: 500 An
          internal error has occurred. Please retry or report in
          https://developers.generativeai.google/guide/troubleshooting
        extra_data: null
    card: {}
    language: "*"
    response_type: error
    data:
      code: unknown```

`script.yaml`
```yaml
alias: Set Daikin AC fan mode
sequence:
  - action: climate.set_fan_mode
    metadata: {}
    data:
      fan_mode: "{{ fan_mode }}"
    target:
      entity_id: climate.daikin_ac
variables:
  desired_position: "{{ daikin_ac_fan_mode }}"
description: >-
  Set the daikin AC (climate.daikin_ac) fan mode to a state mentioned, options
  (fan_modes - auto, night, low, lowMedium, medium, mediumHigh, high, powerful)
fields:
  fan_mode:
    selector:
      attribute:
        entity_id: climate.daikin_ac
    name: fan_mode
    description: sets the fan mode of the daikin ac
    required: false
    default: fan_modes
icon: mdi:snowflake
uneven pagoda
#

Make sure your modes exist on fan.
Try to set another mode last (in your description powerful is last, what happens if you shuffle that list?)