Skip to content

Commit

Permalink
Initial support for xiaomi gateway devices (#470)
Browse files Browse the repository at this point in the history
* WIP: gateway support thanks to dgi (dustcloud fame) and javascript miio lib

* add set_gateway_volume, slight fixes

* port over to the new cli api, remove MessageNet which was supposed only for testing

* Added more light controls for gateway (#624)

* added color and brightness functionality

* added command to set both color and brightness

* linting fixes

* Fully finish the GatewayAlarm class and fix style issues (#633)

* add new line

* remove To Do comment

Since this does not have to do with the gateway (I think)

* Fully finish the GatewayAlarm class

* black fix styles

* fix hound issue

* flake8 was wrong, black is wright

* ignore flake8 E203 error since black handles that

* Turning --> Turn

Co-Authored-By: Teemu R. <tpr@iki.fi>

* Turning --> Turn

Co-Authored-By: Teemu R. <tpr@iki.fi>

* add type return

Co-Authored-By: Teemu R. <tpr@iki.fi>

* add flake8 exception for single line

* remove global flake8 ignore

* add extra space

* add return types

* fix return types

* datatime.datetime is unknown type

* remove print()

* Reorganize classes

* Use parent and improve init

* Add Xiaomi Aqara Gateway to readme

Co-authored-by: Teemu R. <tpr@iki.fi>

* Cleanup gateway for initial release

* fix import sorting

Co-authored-by: Maksim Melnikov <approximatenumber@gmail.com>
Co-authored-by: starkillerOG <starkiller.og@gmail.com>
  • Loading branch information
3 people authored Mar 16, 2020
1 parent 5f8aa72 commit 83f2ea1
Show file tree
Hide file tree
Showing 4 changed files with 534 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Supported devices
- Xiaomi Mi Home Air Conditioner Companion
- Xiaomi Mi Air Purifier
- Xiaomi Aqara Camera
- Xiaomi Aqara Gateway (basic implementation, alarm, lights)
- Xiaomi Mijia 360 1080p
- Xiaomi Mijia STYJ02YM (Viomi)
- Xiaomi Mi Smart WiFi Socket
Expand Down Expand Up @@ -43,6 +44,7 @@ Supported devices
- Smartmi Radiant Heater Smart Version (ZA1 version)
- Xiaomi Mi Smart Space Heater


*Feel free to create a pull request to add support for new devices as
well as additional features for supported devices.*

Expand All @@ -69,6 +71,7 @@ Home Assistant support
- `Xiaomi Smart WiFi Socket and Smart Power Strip <https://home-assistant.io/components/switch.xiaomi_miio/>`__
- `Xiaomi Universal IR Remote Controller <https://home-assistant.io/components/remote.xiaomi_miio/>`__
- `Xiaomi Mi Air Quality Monitor (PM2.5) <https://home-assistant.io/components/sensor.xiaomi_miio/>`__
- `Xiaomi Aqara Gateway Alarm <https://home-assistant.io/components/alarm_control_panel.xiaomi_miio/>`__
- `Xiaomi Mi Home Air Conditioner Companion <https://github.com/syssi/xiaomi_airconditioningcompanion>`__
- `Xiaomi Mi WiFi Repeater 2 <https://www.home-assistant.io/components/device_tracker.xiaomi_miio/>`__
- `Xiaomi Mi Smart Pedestal Fan <https://github.com/syssi/xiaomi_fan>`__
Expand Down
1 change: 1 addition & 0 deletions miio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from miio.device import Device
from miio.exceptions import DeviceError, DeviceException
from miio.fan import Fan, FanP5, FanSA1, FanV2, FanZA1, FanZA4
from miio.gateway import Gateway
from miio.heater import Heater
from miio.philips_bulb import PhilipsBulb, PhilipsWhiteBulb
from miio.philips_eyecare import PhilipsEyecare
Expand Down
Loading

0 comments on commit 83f2ea1

Please sign in to comment.