I have a couple of PVRs recording TV shows. They’re pretty reliable, but occasionally they will lock up, and TV shows fail to get recorded. Over the years I’ve learned that nothing will bring them back to life except a manual switch-off/switch-on. So I’ve written a script (that runs as cron job on an RPi 3) which pings the PVRs regularly and warns me if either of them is down, so that I can reset it – but obviously I can’t do that when I’m away from home.
So I’d like the Rpi to control the AC power to the PVRs, so that if the script detects a locked-up PVR, it can automatically turn the AC power off and on again, to force a reboot. I’d rather not have any wireless elements, nor anything requiring an internet connection (very flaky broadband in my isolated rural area). I’m confident I can handle any programming involved, and I’m a reasonably competent electrician - many decades living in old houses! - but I have only limited electronics experience.
Has anyone done a similar project?