I do experience a similar issue:
So in the simplest way these should turn on every entity with domain light in the given area:
"Licht Küche ein"
"Lampe Küche ein"
"Beleuchtung Küche ein"
I’m getting the correct result for Lampe
and Beleuchtung
. But for some reason Licht
won’t work. I don’t know why this might result in domain: scene
. Here are the results from developer-tools/assist
:
{
"results": [
{
"sentence": "Licht Küche ein",
"language": "de",
"result": {
"intent": {
"name": "HassTurnOn"
},
"slots": {
"name": "Licht",
"area": "Küche",
"domain": "scene"
},
"details": {
"name": {
"name": "name",
"value": "Licht",
"text": "Licht"
},
"area": {
"name": "area",
"value": "Küche",
"text": "Küche"
},
"domain": {
"name": "domain",
"value": "scene",
"text": ""
}
},
"targets": {},
"match": true,
"sentence_template": "[<szene> ]<name> <area>[ (<aktivieren>|<ausfuehren>|<an>)]",
"unmatched_slots": {},
"source": "builtin"
}
},
{
"sentence": "Lampe Küche ein",
"language": "de",
"result": {
"intent": {
"name": "HassTurnOn"
},
"slots": {
"area": "Küche",
"domain": "light"
},
"details": {
"area": {
"name": "area",
"value": "Küche",
"text": "Küche"
},
"domain": {
"name": "domain",
"value": "light",
"text": ""
}
},
"targets": {
"light.ku_lampen_alle": {
"matched": true
},
"light.ku_lampe_decke": {
"matched": true
}
},
"match": true,
"sentence_template": "(<licht>|<lichter>|<alle_lichter>) <area> <an>[<schalten>]",
"unmatched_slots": {},
"source": "builtin"
}
},
{
"sentence": "Beleuchtung Küche ein",
"language": "de",
"result": {
"intent": {
"name": "HassTurnOn"
},
"slots": {
"area": "Küche",
"domain": "light"
},
"details": {
"area": {
"name": "area",
"value": "Küche",
"text": "Küche"
},
"domain": {
"name": "domain",
"value": "light",
"text": ""
}
},
"targets": {
"light.ku_lampen_alle": {
"matched": true
},
"light.ku_lampe_decke": {
"matched": true
}
},
"match": true,
"sentence_template": "(<licht>|<lichter>|<alle_lichter>) <area> <an>[<schalten>]",
"unmatched_slots": {},
"source": "builtin"
}
},
Edit: I guess the question is, how intents matching multiple patterns are handled.
Edit 2: Well, I guess they aren’t intents/tests/de/_test_failures.yaml at 5f1e567f073664643e465047b71bc9517c833e36 · home-assistant/intents · GitHub So if my so isn’t willing to change the phrases she uses, I guess I’ll have to add an “Licht” alias to every exposed light. Is there a way to do this in yaml or do I have to click like 50 times
?