Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MiPlugBaseEnhanced status #16

Open
Skull09rus opened this issue Oct 31, 2018 · 5 comments
Open

MiPlugBaseEnhanced status #16

Skull09rus opened this issue Oct 31, 2018 · 5 comments

Comments

@Skull09rus
Copy link

MiPlugBaseEnhanced USB status work fine, outlet status allways OFF tap on it it goes to on and after restart of HOME app it again OFF.

@Lon1st
Copy link

Lon1st commented Dec 13, 2018

Same here

@jeremyhiggs
Copy link

I've noticed this too.

@Lon1st
Copy link

Lon1st commented Jan 21, 2019

I use the normal miplugbase type instead, and the issue is gone. It works for me

@XingKongSync
Copy link

我也遇到了同样的问题

@XingKongSync
Copy link

XingKongSync commented Feb 14, 2019

I found a solution.

  1. Enter the folder of the plugin
    cd /usr/local/lib/node_modules/homebridge-mi-outlet/Devices

  2. Open MiPlugBaseEnhanced.js with a text editor
    nano MiPlugBaseEnhanced.js

  3. Change line 76 and line 87 like this
    callback(null, result[0] === 'on' ? true : false);

  4. Restart homebridge and enjoy!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants