aholstenson / miio

Control Mi Home devices, such as Mi Robot Vacuums, Mi Air Purifiers, Mi Smart Home Gateway (Aqara) and more
MIT License
1.86k stars 354 forks source link

Xiaomi PHILIPS Zhirui Bedside Lamp #179

Open vooba opened 5 years ago

vooba commented 5 years ago

Hi, first off all, thanks for this good library. I'm currently adding the Xiaomi PHILIPS Zhirui Lamp to your library. The good news is, that the basic things like turn on/off, set brightness and set color by rgb and temperature is already working.

But now I don't know, how to implement following commands:

Can you provide me any help? Are there already capabilities for this functions? Have to be the capabilities first added in the abstract-things library?

Thanks

TeoTN commented 3 years ago

It'd be great to see this being supported, in particular the BLE gateway in that lamp. I have the device and know how to code ;) where should I start? @aholstenson

 INFO  Attempting to inspect 192.168.0.103

Device ID: 87XXX131
Model info: philips.light.moonlight
Address: 192.168.0.103
Token: XXX via stored token
Support: At least generic

Type info: miio
Capabilities:

Firmware version: 2.0.2
Hardware version: MTK7697
MCU firmware version: 0038