Enhancing Smart Lighting Automation with Entity Exclusions

As I continue to refine my home automation setup, I’ve encountered an interesting challenge that I’d like to share and explore with the community. The issue revolves around automating smart lights while excluding certain devices from the automation process.

Here’s the scenario: I’ve set up an automation that turns off all lights in a specific area using the light.turn_off service call with entity_id: all. This worked seamlessly until I integrated a Bond fan into my system, which only supports toggle functionality. The problem arises when the fan, being treated as a light entity, gets toggled unintentionally during the automation process. This is particularly frustrating as it disrupts the smooth operation of my smart home setup.

My initial thought was to create a group that excludes the fan from the lights. While this is a viable workaround, it feels a bit cumbersome. I believe a cleaner solution would be the ability to exclude specific entity IDs when using the all selector in automation service calls. This feature would not only address my current issue but also open up possibilities for other scenarios, such as turning off all interior lights while excluding exterior ones or specific rooms like the front hall or bathroom.

I’ve noticed that similar filtering capabilities exist in other parts of Home Assistant, such as the recorder integration and blueprint selectors. This makes me hopeful that such a feature could be extended to the automation service calls as well. Would love to see this enhancement implemented in future updates!

In the meantime, if anyone has alternative solutions or workarounds for excluding specific devices from entity_id: all service calls, I’d be grateful to hear your insights. Let’s collaborate to make our smart home setups even smarter!

Cheers,
[Your Name]