yinhangcode / homebridge-mi-fan Goto Github PK
View Code? Open in Web Editor NEWXiaoMi fan plugins for HomeBridge.
XiaoMi fan plugins for HomeBridge.
This, sold as the Smartmi Fan 2, seems to be yet another version of the Xiaomi fan. Any change we may see support for it in a future version?
设备:小米直流变频落地扇
看报错是相应超时,但看上去插件把小米电扇当做智米电扇了,我去除了type字段还是一样。
配置:
"platforms": [
{
"platform": "MiFanPlatform",
"deviceCfgs": [{
"type": "MiDCVariableFrequencyFan",
"ip": "192.168.11.11",
"token": "XXXXXXXXXXXXXXXXXXXXXXXX",
"fanName": "room fan",
"fanDisable": false,
"temperatureName": "room temperature",
"temperatureDisable": true,
"humidityName": "room humidity",
"humidityDisable": true,
"buzzerSwitchName": "fan buzzer switch",
"buzzerSwitchDisable": true,
"ledBulbName": "fan led switch",
"ledBulbDisable": true
}]
}
]
报错信息:
[7/14/2018, 3:07:44 PM] [MiFanPlatform] [MiFanPlatform][ERROR]ZhiMiFanFanAccessory - RotationDirection - getRotationDirection Error: Error: Call to device timed out
[7/14/2018, 3:07:44 PM] [MiFanPlatform] [MiFanPlatform][ERROR]ZhiMiFanFanAccessory - LockPhysicalControls - getLockPhysicalControls Error: Error: Call to device timed out
[7/14/2018, 3:07:44 PM] [MiFanPlatform] [MiFanPlatform][ERROR]ZhiMiFanFanAccessory - RotationSpeed - getRotationSpeed Error: Error: Call to device timed out
[7/14/2018, 3:07:44 PM] [MiFanPlatform] [MiFanPlatform][ERROR]ZhiMiFanFanAccessory - Active - getActive Error: Error: Call to device timed out
[7/14/2018, 3:07:44 PM] [MiFanPlatform] [MiFanPlatform][ERROR]ZhiMiFanFanAccessory - SwingMode - getSwingModeControls Error: Error: Call to device timed out
I can turn on/off the fan via Home app properly. Siri also received the voice command and executed it without error message, but the fan wasn't turn on/off actually.
@YinHangCode Hey. As mentioned I use model ZRFFS01ZM. In your Plugin with Type "ZhiMiDCVariableFrequencyFan" #4 (comment)
Unfortunately I noticed that the battery level is never shown correct.
It's always 0% and showing up as connected to the power, even if its not.
Please find some screenshots from Elgato Eve and Apple Home App attached.
Is there anything I can do with the config.json to fix this or any change you have an idea to change something in the Plugin if it is even possible to show battery level correct?
Thanks in advance.
{
"platform": "MiFanPlatform",
"deviceCfgs": [
{
"type": "ZhiMiDCVariableFrequencyFan",
"ip": "192.168.178.64",
"token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"fanName": "Standventilator",
"fanDisable": false,
"temperatureName": "room temperature",
"temperatureDisable": true,
"humidityName": "room humidity",
"humidityDisable": true,
"buzzerSwitchName": "fan buzzer switch",
"buzzerSwitchDisable": true,
"ledBulbName": "fan led switch",
"ledBulbDisable": true
}
]
},
Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory
Hi, thanks for the Xiaomi fan plugin for homebridge.
When I tried to add a new fan yesterday, I got this error:
[5/31/2019, 10:36:18 AM] [MiFanPlatform] [MiFanPlatform][ERROR]ZhiMiFWFanFanAccessory - Active - getActive Error: Error: Call to device timed out
Found out, the plugin may not support this fan mode: zhimi.fan.sa1
.
Would appreciate if you could add the support for this mode. Thanks.
Hey it would be nice to set up in Homekit the oscillation degrees und switch the mode between normal and natural wind. Is it possible to implement that feature for DmakerFan?
After 'miio' updated, it's not work with follwoing message.
TypeError: miio.Device is not a constructor
~~
Please check and update it.
Would you consider adding support to those two models. They are the Smartmi fan S and S2 models from 2019. S2 is with battery built in. They are practically like the already existing natural wind fans but don't have temperature and humidity sensors built in, also the Mi Home app does not show any battery level.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.