Page 1 of 1
Xiaomi stand fan X1
Posted: Saturday 22 June 2019 18:28
by bubi
Hi,
I bought a xiaomi fan x1 with wifi, but i cant find how to add it to domoticz, im find only plugin for homeasistant... bellow
https://github.com/syssi/xiaomi_fan/
https://github.com/wzpan/dingdang-smart-mi-fan
maybe someone has already tried to add devices

Re: Xiaomi stand fan X1
Posted: Wednesday 26 June 2019 9:17
by rutek024
I join the topic, I am also looking for a solution to connect this fan to domoticz.
Re: Xiaomi stand fan X1
Posted: Wednesday 26 June 2019 15:10
by rutek024
I connect this pedestal fan using python-miio library:
https://github.com/rytilahti/python-miio
delay_off Set delay off minutes.
info Get miIO protocol information from the device.
off Power off.
on Power on.
raw_command Send a raw command to the device.
set_angle Set the oscillation angle.
set_buzzer Set buzzer on/off.
set_child_lock Set child lock on/off.
set_led Turn led on/off.
set_mode Set mode.
set_oscillate Set oscillate on/off.
set_rotate Rotate the fan by -5/+5 degrees left/right.
set_speed Set speed.
status Retrieve properties.
miiocli fanp5 --ip x.x.x.x --token xxxx status
Re: Xiaomi stand fan X1
Posted: Thursday 27 June 2019 9:26
by bubi
Code: Select all
miiocli fanp5 --ip 192.168.xx.x --token xxxxxxxxxxxxxxxxxxxxxxx status
Power: off
Operation mode: OperationMode.Normal
Speed: 100
Oscillate: True
Angle: 30
LED: True
Buzzer: False
Child lock: False
Power-off time: 0
Thanks, but how can i addition to domoticz? i cannot find solution :/