I want to run automation whenever one of a list of cameras starts detecting motion and the object detected by that camera is a person.
So far I can set triggers for all the cameras I want and it works (because triggers work with an OR condition), but how do I check on each trigger for another entity (detected object) and just go on if that condition is met?
I guess I cannot use the conditions below because ALL cameras would need to be detecting persons (because conditions work with an AND condition).
On the conditions (after triggers) I will just check if a sensor I created (HOUSE IS ARMED) is on or not.
You can do an OR in the conditions. Like this from the documentation.
condition:
alias: "Paulus home OR temperature below 20"
condition: or
conditions:
- condition: state
entity_id: "device_tracker.paulus"
state: "home"
- condition: numeric_state
entity_id: "sensor.temperature"
below: 20