Well I am not sure about it but if you couldn't find anything - create routine notification received from macrodroid (choose phrase for it).
Then create macro that will display notification with this phrase in macrodroid (and clear this notification shortly after).
This way routine app on your S23 will enable/disable light mode using macrodroid's triggers since modes/routines app can enable/disable it