Why iMac 2019 randomly comes out of sleep mode?

The task for those who are ready to rack our brains much and over complicated:

2019 iMac randomly comes out of sleep mode and did not go away. How to cure it?

Of course all the simple solutions have not worked such as:
1) Disable the exit from a dream at the request of the network
2) Check in the monitoring system a program to prevent sleep
3) Disable all USB device
4) Check the scheduler to schedule Wake-up
5) Disable the network device Bonjour (Zeroconf)
6) Conclusion from sleep Bluetooth devices are also turned off
7) Time Machine network is also disabled
8) Resetting the SMC on your Mac
9) reset the NVRAM

Already 3 month can't cure abnormal randomly exit sleep mode iMac. The logs do not give us exactly no useful information causes the exit (Wake reason) : Host (0x01) and RTC (Alarm) and XHC2 XHC1, that would not mean anything.

Set the system on the external SSD to verify, Catalina, OS, any programs did not put, only in uchetku (Apple ID) my went and disabled all USB devices, turned off wifi, turned off the exit from sleep mode when network activity, even physically pulled the LAN cable and .... still comes out of sleep in about 1-2 hours of sleep and not leaving him ever.

I do not know what to do, what else can I try to diagnose the problem? I have eliminated I think all possible factors of awakening.

An important addition in safe mode iMac randomly from sleep does not come out, that is, everything works as it should.
April 7th 20 at 15:34
1 answer
April 7th 20 at 15:36
There was a similar question on the 2014 English-speaking forum.

tl;dr
Disable discoveryd:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.discoveryd.plist

Enable mDNSResponder:
sudo launchctl load-w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist
I also could suggest that that's a problem if not experiment with disconnecting the network cable and wi-fi. - makenna.Lynch commented on April 7th 20 at 15:39
@Ophelia.Bechtelar, try the same command. By demon may be trying to do something without the cable, just because it's time. - Wyatt.Pauc commented on April 7th 20 at 15:42
@Laura_Stracke, made, now sleep mode is not transferred at all. Although there is not obtained a waiver, no right to disconnect. - makenna.Lynch commented on April 7th 20 at 15:45

Find more questions by tags iMacmacOS