Logbook infos - Source of action

For some events, the logbook records who triggered them (e.g. automation by changing an entity value). For other events, however, it does not.
Both marked actions were triggered by the same automation. However, when opening, it always says that it was the automation. When closing, however, it does not. (I think I have seen this before, though.)
How do I make this generally available?

Thanks for an advice.