Is rooting it worth it? I have one but I haven't bothered with rooting it yet. It would be worth it if I could start-stop it locally, as the app has to go through China and the latency is ~2 seconds, which is terrible.
Most Xiaomi smart-devices speak a protocol called miIO. There are several libraries/bindings for your favorite languages/tools as well as a nice CLI tool[0].
The only tricky part is getting the device token[1]. But once you have that it's smooth sailing.