@Feedy88 it can be done easy by flipping the GPIO detection.
I use crontab with simple command. During the specified night time my MM does not turn on the screen. In morning the sensor starts to work again. If that’s what you are trying to achieve let me know and I can share details.
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.