Background:
I have an automation that alerts when someone turns on the thermostat when any exterior windows are open.
I have multiple sensors on most of my exterior doors for redundancy. In most cases there is a YoLink sensor and a Z-Wave sensor. The YoLink sensors are more reliable and need less frequent battery changes, but they depend on the cloud. The Z-wave sensors don’t need the cloud, but I find that between dead batteries and other issues, they just aren’t as reliable as the YoLink stuff overall.
The sensors are named like using this pattern:
binary_sensor.master_bedroom_window_z
binary_sensor.master_bedroom_window_yo
The automation includes this template as part of the notification: