Add "for:" option to automation trigger for a "from:" transition

Right now the “for:” option is only available in a state trigger (maybe others as well) when used with a “to:” transition but it isn’t available when using a “from:” transition.

use case:

trigger:
  platform: state
  entity_id: person.me
  from: some_zone
  for: '00:10:00'

Does this work with attribute?

So trigger then the attribute is from a value to a different random value?

If it does not work for entity states it work for an attribute state of an entity either.