Espresense template sensor

Hi all,

Looking for help with configuration code.

I have multiple espresense sensors in my yard. Due to layout, overlap, absorption values, etc., this seems to be the most reliable tracking method. Right now I have automations triggering on multiple “or” inputs for when a tracker switches states away from any one of the sensors. I would like to create a template sensor to combine all the espresense sensors into one.

Example: I have backyard1, backyard2, and backyard3 espresense sensors. Would like to combine these into one “combined_backyard” sensor so that if a tracker device changes state away from any one of those, it will trigger an automation.

I figured this would be a more common solution, but after a couple days of searching I have not found anything that works.

Thanks.

Group - Home Assistant may work