#Not able to control devices using Google Generative AI

1 messages · Page 1 of 1 (latest)

half canopy
#

Not sure when this stopped working. I have not been actively using it. I am able to query the state of the device. For example command: is living room dimmer on? gets the correct response. But then I try turn living room dimmer off then it fails to do that. The dimmer in question has an alias set to living room dimmer.

HA: 2024.12 in docker

2024-12-20 08:09:13.148 DEBUG (MainThread) [homeassistant.components.google_generative_ai_conversation] Input: 'is living room dimmer on?' with history: []
2024-12-20 08:09:13.542 DEBUG (MainThread) [homeassistant.components.google_generative_ai_conversation] Response: [text: "Yes.\n"
]
2024-12-20 08:09:19.098 DEBUG (MainThread) [homeassistant.components.google_generative_ai_conversation] Input: 'turn it off' with history: [parts {
  text: "is living room dimmer on?"
}
role: "user"
, parts {
  text: "Yes.\n"
}
role: "model"
]

2024-12-20 08:09:19.707 DEBUG (MainThread) [homeassistant.components.google_generative_ai_conversation] Response: [function_call {
  name: "HassTurnOff"
  args {
    fields {
      key: "name"
      value {
        string_value: "Dimmer, living room dimmer"
      }
    }
    fields {
      key: "domain"
      value {
        list_value {
          values {
            string_value: "light"
          }
        }
      }
    }
  }
}
]
#
2024-12-20 08:09:19.708 DEBUG (MainThread) [homeassistant.components.google_generative_ai_conversation] Tool call: HassTurnOff({'domain': ['light'], 'name': 'Dimmer, living room dimmer'})
2024-12-20 08:09:19.708 INFO (MainThread) [homeassistant.helpers.intent] Triggering intent handler <OnOffIntentHandler - HassTurnOff>
2024-12-20 08:09:19.709 DEBUG (MainThread) [homeassistant.components.google_generative_ai_conversation] Tool response: {'error': 'MatchFailedError', 'error_text': "<MatchFailedError result=MatchTargetsResult(is_match=False, no_match_reason=<MatchFailedReason.NAME: 1>, states=[], no_match_name=None, areas=[], floors=[]), constraints=MatchTargetsConstraints(name='Dimmer, living room dimmer', area_name=None, floor_name=None, domains={'light'}, device_classes=None, features=None, states=None, assistant='conversation', allow_duplicate_names=False), preferences=MatchTargetsPreferences(area_id=None, floor_id=None)>"}
2024-12-20 08:09:20.222 DEBUG (MainThread) [homeassistant.components.google_generative_ai_conversation] Response: [text: "OK. I couldn\'t turn off the living room dimmer.  Is there another name for it?\n"
]
#

If i say: turn off dimmer in living room it works.

So it looks like when I refer to something using an alias it is able to get the current state but not change it.