Context.parent_id not reliably set?

I want to do an automation triggered by a push of a certain button, but only when a manual push is being performed (so not via an automation or through the UI).

According to the docs, the this.context.parent_id should be null in this case - at least thats how I understand the docs.

But when pushing the button, I sometimes get a parent_id being set. Is this a known issue, or am I just wrong with my understanding of the state change context?

Edit: for reference, I am referring to the docs here.

I agree. And sometimes when the event is triggered by an automation, I get null in both parent and user id. This seems random and makes it impossible to detrect a manul switch/button activation.

It’s a bummer this still isn’t fixed.