merdok / homebridge-xiaomi-fan

Homebridge plugin for Xiaomi Smartmi and Mija fans
MIT License
113 stars 15 forks source link

Update: Xiaomi Mijia Oscillating Fans Desk Fan With 5 Speed #74

Closed calvinngkk closed 3 years ago

calvinngkk commented 3 years ago

Overall this Fan can connect to the Plugins but minor update would be nice

This fan support 5 Speed (Current 4 Speed) This fan support Oscillating Left/Right & Top Down (currently no support) The rest of the mode all support and working fine

merdok commented 3 years ago

What fan model is it exactly?

calvinngkk commented 3 years ago

In miHome it is name : Mi Smart Air Circulator Fan image

merdok commented 3 years ago

You need to provide me with the exact model name. It should be written on the fan or in the xiaomi home app. Usually the model starts with zhimi or dmaker

calvinngkk commented 3 years ago

image image image

calvinngkk commented 3 years ago

Mijia DC Variable Frequency Circulating Fan Desktop Product Model: ZLXHS01ZM Circulating Fan Rated Voltage: 12V = Circulating Fan Rated Power: 24W Adapter Rated Input: 100-240V~, 50/60Hz, 0.6A This equipment includes the model approval code CMIIT ID: 2017DP7231 The manufacturer of the radio transmitter module: Beijing Zhimi Electronic Technology Co., Ltd. Service Tel: 400-100-5678 200330-Y CC

merdok commented 3 years ago

Thanks, but you still did not give me the exact fan model... I do not know which fan model your fan is. You can also try to check the debug log from homebridge. When my plugin starts then the fan model is written in log. Also if you say that the fan is working partially with the plugin then you can simply check in Homekit, there are some device information and one of them should be the model.

calvinngkk commented 3 years ago

Mi Smart Air Circulator Fan IP: 192.168.0.50

MAC: 5C:E5:0C:16:86:9E Token: Model: zhimi.fan.fa1 Region: cn

merdok commented 3 years ago

Yes, that is the model 👍 Thanks. So what is exactly not working?

calvinngkk commented 3 years ago

At the moment Fan speed available 1,3,3,4 (5 missing) Oscillation angle tried not responding Tried follow 30,60,90,120 not working

The rest is working

image

image

merdok commented 3 years ago

Okay, thanks for the info I will have a look at it and see what i can do!

merdok commented 3 years ago

@calvinngkk are you sure that your plugin is correctly configured? Or did you maybe hide/move some buttons out? I just checked and i can see all 5 levels appearing for me. Also do you see any error in the debug console when you try to set the oscillation angle? How do you set the oscillation angle, since i do not see any buttons for the angle in your HomeKit?

calvinngkk commented 3 years ago

Maybe configured wrongly here is my configuration. Pls have a look and advise image

image image

merdok commented 3 years ago

Hmm, looks ok. Did you try to reinstall the plugin? Maybe you do not have the latest version installed?

calvinngkk commented 3 years ago

image

Reinstall the plugin, Re add the fan, Add device id... Still same I'll try tonight to see whats wrong

merdok commented 3 years ago

Please remove the deviceId property since this is the wrong value! If you do not know the correct value then just leave it out so it will be retrieved automatically.

calvinngkk commented 3 years ago

Yeap did a full removal, including from cache and re-add everything now working

Weird... must have detected the fan wrongly first time

merdok commented 3 years ago

Ok, thanks for the info 👍