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