I too have a bunch of cheap android phones of diverse vintage lying around.
Some are bought with US carrier locks - never activated or unlocked. Any chance they can be unlocked with today's tools and not dumped into ewaste.
There are a few simple projects for home automation i have in mind but the rooting felt like a daunting task.
For home automation, just build an app that does what your need. No big reason to root it.