A lot of the codes come from https://github.com/jon1012/mihome
-
Turn on developer mode on aqara(xiaomi) gateway. (from android app)
-
modified the ini file.
-
run it. it will publish info to mqtt server on xiaomi/# by default
-
to issue on/off command, send ON or OFF to the mqtt channel the script subscribes to (xiaomi/blah..blah /command)