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

Mi Smart switch (round button) #10

Open
mistert871 opened this issue Oct 19, 2017 · 4 comments
Open

Mi Smart switch (round button) #10

mistert871 opened this issue Oct 19, 2017 · 4 comments

Comments

@mistert871
Copy link

Hi,

The Mi Smart switch (round button) with 3 options: 1 click, 2 click and long press/click. The first 2 options works perfectly, but the third option doesn't work. I see long press in Homekit but it doesn't work.

Is this a known bug? And can you please fix it or tell me how to fix it?

Thanks!

Regards,
Tim

@rench
Copy link
Owner

rench commented Nov 2, 2017

I'm sorry, my new house is being renovated, and over time I will test the equipment you are referring to and give you a reply

@mistert871
Copy link
Author

Thanks Rench. Do you know when you can reply? Im really waiting for it. Is there something I can test? THanks

@mistert871
Copy link
Author

Do you know when you can reply? Im really waiting for it. Is there something I can test? THanks

@hatack
Copy link

hatack commented Mar 28, 2018

Hi,

just add this condition to kit/mijia/switch.js (cca line 60):

  } else if (status == 'long_click_press') {
    event.updateValue(Characteristic.ProgrammableSwitchEvent.LONG_PRESS); //2
  }

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