This is only possibly related to THR.
My system randomly powers completely off. It only occurs when an iPhone (with THR installed) wanders into range (for the first time in a long time, i.e. 1+ hours). THR is not active (i.e. foreground app) at the time. It’s random but consistent – occurs 2 or 3+ times per day. If the phone stays in range of system it stays powered-up for extended periods of time. I’ve been unable to track down the issue to a singular cause (other than the phone coming into range). I’ve disabled HDMI-CEC controls on the TV (LG OLED from 2017), the Apple TV (newest 4K gen). I wrote the plugin used for the Anthem AVM60 and don’t see anything obviously wrong. Both the TV and Anthem power down when this happens.