jseidl / hass-magic_areas

Areas with batteries included for Home Assistant
MIT License
273 stars 28 forks source link

Bug: light group secondary states - entity restricted to a single state for activation #253

Closed maxfield-allison closed 2 years ago

maxfield-allison commented 2 years ago

Describe the bug Previous versions of MA allowed for the use of pipes "|" to include more than one state to be evaluated for dark, task, accent etc. lights. To Reproduce Steps to reproduce the behavior: Create an area configuration with light groups, Assign an entity with multiple states, e.g. media player, to one of the light groups Assign multiple states separated by pipes

image

Expected behavior the accent state should be applied to an area with any of the accent entity states active

Additional context I updated from one of the 3.0 betas and noticed this behavior. I wiped and reconfigured MA but the issue persists.

jseidl commented 2 years ago

Previous versions of MA allowed for the use of pipes "|"

That wasn't intentional. That was probably side-effect of some internal Home Assistant logic/expansion that I'm not aware.

Solution for your case would involve using a template binary sensor. You can open a feature request for this if you'd like.