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

USB toggles when switching power on v1 plug #30

Open
biogerm opened this issue Jul 28, 2017 · 5 comments
Open

USB toggles when switching power on v1 plug #30

biogerm opened this issue Jul 28, 2017 · 5 comments

Comments

@biogerm
Copy link

biogerm commented Jul 28, 2017

Hi,

I have recently reinstalled my Pi and runs a lower node js version 6.11 with Pi 1 on armv6. Everything seems working fine except that the power switching on V1 plug seems affecting its USB at the same time. When I turn the plug on, the USB in the plug turns on as well, and when turning off, USB would be turned off too. It was working fine on Pi 3 that I set up couple months ago. Not sure if it's because of node js being 6.11, or because changes in miio plugin. Does anyone have a clue?

BR
AnChin

@biogerm
Copy link
Author

biogerm commented Jul 28, 2017

Just check my previous home ridge runs with Nodejs 7.2 and miio 0.2.0. The current one runs miio 0.3.2

@biogerm
Copy link
Author

biogerm commented Jul 30, 2017

So I upgraded nodejs to 8.2, homebridge and miio both to the latest and the problem is still there. Further more I noticed that they won't show their status correctly in the homekit. For v2 plugs, they are fine, but for v1 ones, they are always shown as turned off. I can turn them on but next time when I open control center, they are shown as off again even though they are on.

@Bluebie
Copy link
Owner

Bluebie commented Jul 31, 2017

it's likely some changes in miio and homebridge-miio libraries. I don't have any v1 plugs to test with or knowledge of how they work though. if you find a solution i may accept a pull request!

@Enivel
Copy link

Enivel commented Nov 8, 2017

same error here, I tried to solve it but failed, miio work fine, .power() return two result { main: true, usb: true } but miio device object .power() return undefind

@biogerm
Copy link
Author

biogerm commented Jun 22, 2018

forgot to mention that miio 0.2.0 works fine. i downgrade it from 0.3.2 to 0.2.0 and it worked fine since.

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

3 participants