Prerequisites:
I want to have aliases for my devices, that can repeat in every room (e.g. "Fan", "Top light", "Mood light", "Purifier" etc.
Then i could use simple phrases on my voice satellites to turn them on/off.
HassTurnOn has name_area type of call. So i extended it like this:
HassTurnOn:
data:
- sentences:
- "<turn> on [the] <name>"
- "<turn> [the] <name> on"
slots:
domain: "light"
requires_context:
area:
slot: true
This works perfectly fine for cases i made.
However, because in this case the sentence is the same as for name only, it basically discards the calls to every other device. So i can't turn on anything that isn't in same area that my satellite is in. Same commands from phone or web are working good, since they don't have area.
So i believe HassTurnOn intent script itself should be changed to respect optional area, when only name was called, and there are duplicates.