Conditions as group (binary sensor)

Is it possible to combine several conditions in a binary sensor?
I have several automations which make use of the same set of conditions. And if all of them are true the automation should trigger.

Yes this is possible using a template binary sensor.

If they are simple state conditions and the entities are all binary sensors you may even be able to use a group instead of a template binary sensor.

Share the conditions you want to be true.

1 Like

Thanks!
I now used the template.

{{ states('sensor.openweathermap_temperature') | float > 16.00 and is_state('binary_sensor.regensensor_water_leak', 'off') and is_state('binary_sensor.helligkeitdersonne', 'on') and states('sensor.openweathermap_wind_speed') | float < 28 }}

I guess group will not work here right?

groups are best for when the underlying entities are the same type. you have a mix of floats and binary. and even your binary don’t have the same desired state (one’s on and one’s off).

so in that case template is a good choice vs group