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

lumi.plug support #19

Open
aurely89 opened this issue May 17, 2020 · 6 comments
Open

lumi.plug support #19

aurely89 opened this issue May 17, 2020 · 6 comments

Comments

@aurely89
Copy link

Hi @mirko3000, first of all thanks for this module.

A quick question, is Xiaomi Lumi smart plug supported or do you think it could be supported in the future?

Thank you,
Flavio

@mirko3000
Copy link
Owner

Hello Flavio,

please check here if the plug is supported:
https://github.com/aholstenson/miio

Anyhow, the question is how would you like to display the plug? As an icon/indicator if the plug is switched on?

Best regards,
Mirko

@aurely89
Copy link
Author

Hi @mirko3000,
yes, the library you linked supports the Mi Smart Socket Plug.

What I meant is to show an icon when the plug is switched on, just like with the window sensor when it is open.

Thank you for your reply.

Best regards,
Flavio

@mirko3000
Copy link
Owner

Hi Flavio,

I do not have any of the plugs, but added untested support for those plugs. Please check out this branch and see if it works:

  • Go to the module folder "MMM-xiaomi"
  • Execute git checkout plug-support
  • Execute git pull

Then run MagicMirror as usual, ideally via npm start dev to get the JS console if any errors occur. Let me know if this works, or if you face any issues or bugs.

Best regards,
Mirko

@aurely89
Copy link
Author

Hi @mirko3000,
first of all thanks for this very quick add.

I've just tried the new branch and added the device ID in the config.js device list.

Looking at the console it finds the new device ID:
[2020-05-31 15:22:05.771] [LOG] Found device with ID ************ of type power-plug

Actually the only issue is that no icon of status change is showed on the mirror.

Should I add in the config.js of the mirror a kind of "showPlug: true" configuration?

Thank you,
Flavio

@mirko3000
Copy link
Owner

mirko3000 commented May 31, 2020 via email

@aurely89
Copy link
Author

Great, it works perfectly now.

I'll keep testing it and tell you if any issue/bug comes up, by now everything is working as expected.

Thank you!!!

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

2 participants