Probably not anything more complicated than running some kind of signal receiver while clicking each button on the remote and then capturing/replaying it. I highly doubt there's much if any security around the fan remote signals lol.
FYI those Firefox containers have little to nothing to do with organizing tabs spatially, it just lets you have different 'profiles' to open tabs in that can all have separate cookies and so lets you be logged into different accounts on the same website for one example/use case.