CyBear-Jinni / cbj_integrations_controller

GNU Affero General Public License v3.0
2 stars 1 forks source link

Add support fo Xiaomi Mi devices #23

Open guyluz11 opened 2 years ago

guyluz11 commented 2 years ago

Xiaomi Mi is another big company in the smart home system. 9.8% of all Home Assistant users are using it.

image

Mi Home app have 10M+ downloads in the play store.

guyluz11 commented 2 years ago

Found the following existing packages to control Xiaomi Miio devices

guyluz11 commented 1 year ago

We will probably add this integration using the python packages (we are running native python code).

We need a python package to get the devices token

https://pypi.org/project/micloud/

And another package to control the devices using this token

https://pypi.org/project/python-miio/

guyluz11 commented 1 year ago

Added dart native support for mi_iot_token, waiting for the pr to get accepted.

After it will get support maybe we can implement it alongside miio package in order to make it work under Linux https://github.com/ctrysbita/miio.dart/issues/3. We will take the devices and token from the mi_iot_token package and then communicate with the devices using miio package.

guyluz11 commented 1 year ago

Here is guidance from the mi_iot_token package developer on how to control devices using Xiaomi api https://github.com/i2Echo/mi_iot_token/issues/5#issuecomment-1473533320