I’m rewiring my house so have started installing Sonoff ZBMINIR2 on one in certain locations. My outlets are being put in boxes large enough for a pair of double outlets (total of four individual plugs) so making one switched is kinda easy. Just wired it up without any switch at all and stuffed it in the box. Just have to break the tab on the positive side and wire the unswitched outlet as usual. I then get three always on outlets and one zigbee switched outlet, I’m going to create a label for the face plate front to show the switched one and the back side had the breaker and branch location info so it will be easy to figure out later on if needed.
I tested a couple of the ZBMINIR2’s switched side and if you bring power and ground through the ZBMINIR2 the switched contacts are only about 6v dc. The only disadvantage I have seen so far is that when a switch is wired up and rapidly turned on and off it goes into pairing mode so kids flipping switches are a bad thing but it’s easy enough to pair back up if you have your phone handy when it happens.
I actually started using HomeAssistant on TrueNAS Core a few years ago. From my understanding the best way to do this now it’s to use the TrueNAS X86-64 ISO in a VM. The TrueNAS docker system seems to be integrated differently than a standard docker installation on an os like Debian.
If you really want to keep using docker on TrueNAS you should create users with unique ID’s in TrueNAS and give them permission to access the needed resources. Those ID’s also need to match the user in the Docker container.
I personally use HomeAssistant on an Odroid N2+ and haven’t made the switch to TrueNAS Scale so I can’t be much help beyond that.