home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.35k stars 29.89k forks source link

Slot key and sentence mismatch #118063

Closed mooneydude closed 3 months ago

mooneydude commented 3 months ago

The problem

See following sentence results from developer_assist:

{
  "results": [
    {
      "sentence": "Turn on master bedroom fan",
      "language": "en",
      "result": {
        "intent": {
          "name": "HassTurnOn"
        },
        "slots": {
          "area": "master bedroom",
          "domain": "fan",
          "name": "all"
        },
        "details": {
          "area": {
            "name": "area",
            "value": "master_bedroom",
            "text": "master bedroom"
          },
          "domain": {
            "name": "domain",
            "value": "fan",
            "text": ""
          },
          "name": {
            "name": "name",
            "value": "all",
            "text": ""
          }
        },
        "targets": {},
        "match": true,
        "sentence_template": "<turn> on <area> fan[s]",
        "unmatched_slots": {},
        "source": "builtin"
      }
    },
    {
      "sentence": "Turn off master bedroom fan",
      "language": "en",
      "result": {
        "intent": {
          "name": "HassTurnOff"
        },
        "slots": {
          "name": "master bedroom fan"
        },
        "details": {
          "name": {
            "name": "name",
            "value": "Master bedroom fan",
            "text": "master bedroom fan"
          }
        },
        "targets": {
          "switch.master_bedroom_ceiling_fan": {
            "matched": true
          }
        },
        "match": true,
        "sentence_template": "<turn> off (<area> <name>|<name> [in <area>])",
        "unmatched_slots": {},
        "source": "builtin"
      }
    }
  ]
}

What version of Home Assistant Core has the issue?

core-2024.5.2

What was the last working version of Home Assistant Core?

ore-2024.5.2

What type of installation are you running?

Home Assistant Core

Integration causing the issue

HassTurnOn

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

mooneydude commented 3 months ago

Screenshot_20240509_161206_Home Assistant

mooneydude commented 3 months ago

this was due to a lutron caseta light switch being connected to the fan. Changed 'Show switch as' and selected 'Fan' under settings and now working.