MiJia lights API project
This is the source code and instructions to control Xiaomi Mi home devices using a PlayStation4 Controller.
index.jsthe Node.js server code
ps.pyPython controller button mapping with Node.js endpoints
While this doesn't have any practical value, it was a fun project! Beside the sense of achievement when I used the controller to switch off the light was amazing.
Aside from being my first Raspberry Pi project, this is purely to demonstrate how different technologies can work together.
You might also have a look at the MiJia IO library used to control Mi home devices