Why are purpose specific triggers not using 'source'

ever since the introduction of the purpose specific triggers, I had some sense of incompatibility with the used terminology and my way of looking at representation of the actual triggers.
they are supposed to be more ‘human’ and yet it didnt click

reading Petro’s post elsewhere now just made me realize what that is

its the use of target

this is how I see that, visually:
-----> target
source ------>

none of these triggers are ‘targeted’ at any entity. they are caused by these entities, or sourced from, whatever. its the complete opposite direction of how my mind sees these… could be me, obviously. please dont go there… :wink:

but seriously, isnt this naming a bit odd (of course I understand where it comes from, and being legacy always is tricky. breaking etc etc,
it would be a very simple fix though…)

just see how this works much better:

trigger: occupancy.detected
source:
  entity_id: binary_sensor.deck_motion_sensor_occupancy

could even be shorter

trigger: occupancy.detected
trigger_entity_id: binary_sensor.deck_motion_sensor_occupancy

but that might be too technical for the matter we’re dealing with here…

purpose specific triggers are a new concept, so it would fit a new key name. no reason to cling to the old

instead of:

Consistency. Target has been used for actions for a long time, it’s now available for conditions and triggers.

Its not a root key because it’s easier to validate data that’s a dictionary without string concatenation or explicit made keys. Also, you may not realize it but it’s better for users as a dictionary too.

yeah but that is all backend stuff.
Purpose specific triggers are hailed as the new user oriented way of looking at things, so user should not be bothered with that legacy.

this I dont follow. how would a key name make a difference there?

guess a way to translate those new triggers then is by thinking of it as

check the Kitchen area occupancy

in which the area would actually be a ‘target’ of sorts, but still feels weird to me

Because there’s nothing to remember. It’s the same key used everywhere. You don’t need to run to the docs to remeber the yaml

It also makes yaml anchors more consistent

well, if that is going to be reason the world is lost…

btw, Arent we supposed to not even look at yaml… and those that do will read the docs. or at least are supposed to.

no that cant be a reason to not make things better
I hope

And by that logic, this conversation is a moot point