How do I set triggers to be AND?

Hi,

I am testing some automations out and wanted to set my triggers to both a time setting and a temperature setting, but it treats them as this or that.

How do I define that both triggers must be hit?

Thanks!

Triggers are events. Two events can’t happen at exactly the same time.

Maybe you can explain more about how you want this to work. E.g.,

  • Trigger at a given time if the temperature is above or below a certain value.
  • Trigger when the temperature rises above or below a certain value if it’s currently before or after a certain time.
  • Trigger when it is both before or after a certain time and above or below a certain temperature.
  • …???

In general, though, there are two ways to do something like what ask. One is to create a template binary sensor that does the AND function, then use that as the trigger. Or use a template trigger.

1 Like

Keep your triggers as they are, then add an AND condition with the desired states of both the sensors.

2 Likes