More of a yes or no question here, mostly looking for validation here. For triggers in automations you can use the id
key to use later in your actions to denote which trigger in your list of triggers caused the automation to run
However, if you have this example
trigger:
- platform: state
id: A
entity_id:
- sensor1
- sensor2
- platform: state
id: B
entity_id:
- sensor3
- sensor4
I am assuming that while I can know if trigger A or B ran my actions I cannot know it was sensor1
inside trigger A that caused it to run, right? I would assume i would have to separate each sensor into its own trigger and that is how I can denote which trigger did what.