#Binary sensor based on conditions?

1 messages · Page 1 of 1 (latest)

manic hatch
#

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.

halcyon wagon
#

With a template binary_sensor, sure