Tracking the last user who changed state of an input_boolean helper state?

I successfully configured a home security alarm with Home Assistant. I built all the automations around the an input_boolean tracking the status of the alarm (activated or not). To enrich this subsystem, I would like to store the last user who changed the state of the input_boolean entity. Is there a method to achieve this within Home Assistant?

State Object: Context

1 Like