Is there a way to define a binary sensor that evaluates to a set of conditions, ideally using the same UI as the conditions section for automations?
For example, I want to define a binary sensor which is true whenever (A || B) && !C. And then just use that binary sensor changing states as the trigger for an automation, for example.