Automation without trigger, just onditions

I need to take an action if on or other boolean become true.
So no trigeer part, just condion.

somting like
if (person.caron | person.vorms){
sensor.presence = true

I don’t know how to write this in yaml language.

Many thanks for your help.

Best regards


Not possible, see the automation docs. What you described is an automation with two triggers and no conditions.

Try using the automation editor.
But please bear in mind what Tinkerer has said, it’s true