I had automations monitor ‘from no_motion to motion’ changes on each sensor. Whenever that event happened for a given sensor, each sensor’s automation would store the name of its sensor into the same common input_select box. Another automation would check the input_select box to read the name of the latest sensor that went off.