This project is an attempt to make Python plugins for Xiaomi devices in Domoticz, using the python-miio library.
Plugin | Device compatibility |
---|---|
MiioAirPurifier | Xiaomi Mi Air Purifier |
MiioAirPurifierMiot | Xiaomi Mi Air Purifier 3H and 3C |
MiioChuangmiPlug | |
MiioPhilipsBulb | |
MiioPowerStrip |
Raspberry Pi/Ubuntu installation:
curl -L https://github.com/xiaoyao9184/DomoticzXiaomiPlugins/raw/master/install.sh | bash
NOTE: must updated domoticz to version 4.10 (now is beta version)
- Domoticz : https://github.com/domoticz/domoticz
- python-miio : https://github.com/rytilahti/python-miio
- Device[X].Update() crash domoticz if called whith implicit parameters. See domoticz/domoticz#2092
- Calling python-miio seems to freeze domoticz's plugin system. Don't know why but similar project faced the same issue. See https://github.com/mrin/domoticz-mirobot-plugin
- Data Push with
status
Type likeSelector Switch / Dimmer
device cant pushLevel
,Selector Switch / Dimmer
has 3 status for commandOn
is 1,Off
is 0,Set Level
is 2. If it have sharedOn
andOff
for multipleSelector Switch / Dimmer
devices, will cause confusion. LikeMiioPhilipsBulb
- Domoticz device types : https://github.com/domoticz/domoticz/blob/development/hardware/hardwaretypes.h