Auto sleep tracking start only when charging

Hi
I want to start to auto sleep tracking when charging.
But I can’t find this option in setting.

Is there any way?

you could trigger it externally with tasker or something maybe