OpenVoiceOS / ovos-PHAL-plugin-homeassistant

HomeAssistant PHAL Plugin for OpenVoice OS
Apache License 2.0
10 stars 3 forks source link

[BUG] Entities are not prioritized over sensors in search #44

Open mikejgray opened 1 year ago

mikejgray commented 1 year ago

Per Matrix chat, the fuzzy search for a device does not prioritize a particular type over another. In this case a sensor has a similar name to an light, but the sensor was chosen instead for turn on.

Entity types should have an order of precedence depending on the action type to avoid scenarios like this.