Uriziel01 / home-assistant-intents-pl

Common workspace for polish group contributing into home assistant intents
3 stars 1 forks source link

Turning on/off individual lights by name #7

Open yawor opened 11 months ago

yawor commented 11 months ago

I don't know if this is correct repository to report this, or maybe I should report it to the HA intents repo.

I've been reading through Polish intents and it seems there're no intents to turn on/off a single light by its name. It can only be done for whole areas. I see it is possible to change brightness or color of individual lights though.

Is there some issue regarding adding ability to control individual lights? I've checked English intents and they have ability to turn on/off individual lights there.

---edit---

To be more precise, there's no intent to turn on/off the light in the specified area. For example, I have multiple lights called "Główne", but they are all in different areas. So to turn only one of them, I'd need to say: "Zapal główne światło w salonie".

Uriziel01 commented 11 months ago

Hmmm, I'm not even sure how we've missed that but... you are right 😄 We are missing intent for single light toggle.

yawor commented 11 months ago

For now I've found a workaround. I'm using Hass On/Off intent and I've added aliases to each light. For example a light named "Główne" in a living room has "Główne światło w salonie" as one of its aliases, so saying "włącz główne światło w salonie" works. It's not ideal but it works on current release without any other changes.

Uriziel01 commented 11 months ago

I'll create a PR to fix this, but even after merging this will take some time to be deployed in the new version of HA.