rytilahti / python-miio

Python library & console tool for controlling Xiaomi smart appliances
https://python-miio.readthedocs.io
GNU General Public License v3.0
3.67k stars 552 forks source link

New device: yeelink.bhf_light.v2 #702

Open fcarsana opened 4 years ago

fcarsana commented 4 years ago

I have a Yeelight Smart Bath Heater (YLYB01YL). Is there a way to integrate that, please?

I performed some network traffic captures via Wireshark and analized the traffic using the miio tool. In attachment my findings.

Please let me know if that is possible and if you need more captures.

Thank you.

fan_on_off.log fan_mid_high_low.log dry_on_off.log airchange_on_off.log heater_on_off.log light_brightness.log light_night_on_off.log light_on_off.log

valek1011 commented 4 years ago

Мне тоже хотелось бы узнать ответ

rytilahti commented 4 years ago

I think that the necessary information for at least basic support is there in the logs, it will just need someone to write some code to make it happen. Alas, I don't have currently much time to contribute here, so that's why I tagged it as help wanted :-)

fanthos commented 3 years ago

Some summary from the captured files:

Bath heater mode: set_bh_mode(*bh_mode) stop_bath_heater()

fan speed: set_gears_idx(*fan_speed_idx): one of 0, 1, 2

light power and mode: set_power(*power[, trans, delay, lightmode])

light bright: set_bright(*bright, trans, delay)

lightmode: *light_mode 5: nightlight 1: daylight

list of *bh_mode: bh_off, coolwind, drying, venting, warmwind

list of *power: on, off

realbright: *bright or *nl_br

fanthos commented 3 years ago

There also another Yeelink fan ( kitchen ceiling fan ) has a community integration. The two devices has simular api for fan control, like bh_mode, set_gears_dx but has some different. id: yeelink.ven_fan.vf1 https://github.com/fineemb/Yeelink-ven-fan

andreasg73 commented 3 years ago

https://github.com/al-one/hass-miio-yeelink Works fine

fcarsana commented 3 years ago

I can confirm the following is working:

https://github.com/al-one/hass-miio-yeelink