GithubHelp home page GithubHelp logo

homebridge-xiaomi-humidifier's People

Contributors

acc-ua avatar leoneleone avatar yinhangcode avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

homebridge-xiaomi-humidifier's Issues

All devices wait until the humidifier responds

Hey.

My cat often presses the reset button of the humidifier and it stops responding. The trouble is that while he is waiting for an answer, all other devices are also waiting and it is impossible to use the homekit.

Is it possible to fix this or is this a homebridge restriction? Maybe the requests are not asynchronous?

Plugin error

Hi,
First of all, thank you very much for your hard work, unfortunately, they will not work for me. I'm still getting an error:

[11/26/2017, 9:54:44 AM] Loaded plugin: homebridge-xiaomi-humidifier
/usr/lib/node_modules/homebridge-xiaomi-humidifier/index.js:12
this.log.debug('conf');
^

TypeError: Cannot read property 'debug' of undefined
at Plugin.module.exports [as initializer] (/usr/lib/node_modules/homebridge-xiaomi-humidifier/index.js:12:13)
at Server. (/usr/lib/node_modules/homebridge/lib/server.js:150:14)
at Array.forEach (native)
at Server._loadPlugins (/usr/lib/node_modules/homebridge/lib/server.js:128:22)
at new Server (/usr/lib/node_modules/homebridge/lib/server.js:51:24)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:26:16)
at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)

And second what is proper name for "platform"? In exemple configuration you have
"platform": "MiHumidiferPlatform" or it should be "MiHumidifierPlatform" with "i".

Could you give me any help?
Thanks

Misstyping

Configuration
"platforms": [{
"platform": "MiHumidiferPlatform",

in your README.md, MiHumidiferPlatform is to be changed 'MiHumidifierPlatform'.
missing 'i'

Configuration
"platforms": [{
"platform": "MiHumidifierPlatform",

Homebridge keep restarting after humidifier plugin is loaded

After I added my humidifier configuration to config.json file, the home bridge keep restarting. There is not much information in the home bridge log file.

When I removed humidifier configuration from config.json every thing just works well.

12月 04 10:01:02 raspberrypi homebridge[6033]: [2017-12-4 10:01:02] Loaded plugin: homebridge-mi-airpurifier
12月 04 10:01:02 raspberrypi homebridge[6033]: [2017-12-4 10:01:02] Registering platform 'homebridge-mi-airpurifier.MiAirPurifierPlatform'
12月 04 10:01:02 raspberrypi homebridge[6033]: [2017-12-4 10:01:02] ---
12月 04 10:01:02 raspberrypi homebridge[6033]: [2017-12-4 10:01:02] Loaded plugin: homebridge-mi-aqara
12月 04 10:01:02 raspberrypi homebridge[6033]: [2017-12-4 10:01:02] Registering platform 'homebridge-mi-aqara.MiAqaraPlatform'
12月 04 10:01:02 raspberrypi homebridge[6033]: [2017-12-4 10:01:02] ---
12月 04 10:01:02 raspberrypi homebridge[6033]: [2017-12-4 10:01:02] Loaded plugin: homebridge-xiaomi-humidifier
12月 04 10:01:02 raspberrypi homebridge[6033]: [2017-12-4 10:01:02] ---
12月 04 10:01:02 raspberrypi homebridge[6033]: Mon, 04 Dec 2017 02:01:02 GMT hci setting filter to: 1600000020c10000000000400000
12月 04 10:01:02 raspberrypi homebridge[6033]: Mon, 04 Dec 2017 02:01:02 GMT hci set event mask - writing: 01010c08fffffbff07f8bf3d
12月 04 10:01:02 raspberrypi homebridge[6033]: Mon, 04 Dec 2017 02:01:02 GMT hci set le event mask - writing: 010120081f00000000000000
12月 04 10:01:02 raspberrypi homebridge[6033]: Mon, 04 Dec 2017 02:01:02 GMT hci read local version - writing: 01011000
12月 04 10:01:02 raspberrypi homebridge[6033]: Mon, 04 Dec 2017 02:01:02 GMT hci write LE host supported - writing: 016d0c020100
12月 04 10:01:02 raspberrypi homebridge[6033]: Mon, 04 Dec 2017 02:01:02 GMT hci read LE host supported - writing: 016c0c00
12月 04 10:01:02 raspberrypi homebridge[6033]: Mon, 04 Dec 2017 02:01:02 GMT hci read bd addr - writing: 01091000
12月 04 10:01:02 raspberrypi homebridge[6033]: [2017-12-4 10:01:02] Loaded plugin: homebridge-yeelight
12月 04 10:01:02 raspberrypi homebridge[6033]: [2017-12-4 10:01:02] Registering platform 'homebridge-yeelight.yeelight'
12月 04 10:01:02 raspberrypi homebridge[6033]: [2017-12-4 10:01:02] ---
12月 04 10:01:02 raspberrypi homebridge[6033]: [2017-12-4 10:01:02] Loaded config.json with 0 accessories and 3 platforms.
12月 04 10:01:02 raspberrypi homebridge[6033]: [2017-12-4 10:01:02] ---
12月 04 10:01:03 raspberrypi homebridge[6033]: [2017-12-4 10:01:03] Loading 3 platforms...
12月 04 10:01:03 raspberrypi homebridge[6033]: [2017-12-4 10:01:03] [MiAqaraPlatform] Initializing MiAqaraPlatform platform...
12月 04 10:01:03 raspberrypi homebridge[6033]: [2017-12-4 10:01:03] [MiAqaraPlatform] [INFO]**************************************************************
12月 04 10:01:03 raspberrypi homebridge[6033]: [2017-12-4 10:01:03] [MiAqaraPlatform] [INFO]           MiAqaraPlatform v0.6.5 By YinHang
12月 04 10:01:03 raspberrypi homebridge[6033]: [2017-12-4 10:01:03] [MiAqaraPlatform] [INFO]  GitHub: https://github.com/YinHangCode/homebridge-mi-aqara
12月 04 10:01:03 raspberrypi homebridge[6033]: [2017-12-4 10:01:03] [MiAqaraPlatform] [INFO]                                         QQ Group: 107927710
12月 04 10:01:03 raspberrypi homebridge[6033]: [2017-12-4 10:01:03] [MiAqaraPlatform] [INFO]**************************************************************
12月 04 10:01:03 raspberrypi homebridge[6033]: [2017-12-4 10:01:03] [MiAqaraPlatform] [INFO]start success...
....
....
....
12月 04 10:02:45 raspberrypi homebridge[6214]: Mon, 04 Dec 2017 02:02:45 GMT hci set scan enabled - writing: 010c20020001
12月 04 10:02:46 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE
12月 04 10:02:46 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.
12月 04 10:02:46 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.
12月 04 10:02:56 raspberrypi systemd[1]: homebridge.service: Service hold-off time over, scheduling restart.
12月 04 10:02:56 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.
12月 04 10:02:56 raspberrypi systemd[1]: Started Node.js HomeKit Server.

contact!!!

Hi @acc-ua trying to contact you about a idea with your aqara plugin fork!

I am trying to change the behavior from the Switch68, so that a button press would toggle the associated fakeSwitch change between on and off but I am stuck and cant get it work. Any ideas?

Error: Could not connect to device, handshake timeout

When homebridge tries to initiate the plugin I get an "cannot connect to device" error

ERROR:  { Error: Could not connect to device, handshake timeout
    at Timeout.handshakeTimeout.setTimeout [as _onTimeout] (/usr/local/lib/node_modules/miio/lib/network.js:427:17)
    at ontimeout (timers.js:460:11)
    at tryOnTimeout (timers.js:298:5)
    at Timer.listOnTimeout (timers.js:261:5) code: 'timeout', device: null }

Yet, I can still connect to the device using miio cli

@acc-ua
I believe this is because your plugin relies on miio being installed globally and is not installed as a node_modules dependency within the plugin itself. The advice from the miio creator is not to depend on globally installed miio for homebridge plugins when using the latest version of miio.

The requested platform '" + name + "' was not registered by any plugin

Not work

[12/16/2017, 12:28:19 PM] Loading 1 platforms...
/usr/local/lib/node_modules/homebridge/lib/api.js:122
throw new Error("The requested platform '" + name + "' was not registered by any plugin.");
^

Error: The requested platform 'MiHumidiferPlatform' was not registered by any plugin.
at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:122:13)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:294:45)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:85:36)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:390:7)
at startup (bootstrap_node.js:150:9)
at bootstrap_node.js:505:3

not work

Not work Xiaomi Smartmi Pure Evaporative Air Humidifier

Act as humidifier

Anyone know of a way to get it to act as a humidifier instead of a fan now that Homekit supports humidifiers?

Plugin error miio.Device

/usr/local/lib/node_modules/homebridge-xiaomi-humidifier/Devices/MiHumidifier.js:17
this.device = new miio.Device({
^

TypeError: miio.Device is not a constructor
at new MiHumidifier (/usr/local/lib/node_modules/homebridge-xiaomi-humidifier/Devices/MiHumidifier.js:17:19)
at MiHumidifierPlatform.accessories (/usr/local/lib/node_modules/homebridge-xiaomi-humidifier/index.js:85:21)
at Server._loadPlatformAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:364:20)
at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:308:16)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:85:36)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:40:10)
at Object. (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.