I use truenas 25.x and I ask if there are prerequirements perhaps in the direction of HW to use /usr/bin/midclt call system.reboot cronjob for rebooting the system in the morning automatically via cronjob.
The shoutdown /usr/bin/midclt call system.shutdown cronjob works perfectly.