homebridge-smarthome
homebridge-smarthome copied to clipboard
Mi Smart switch (round button)
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
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
Thanks Rench. Do you know when you can reply? Im really waiting for it. Is there something I can test? THanks
Do you know when you can reply? Im really waiting for it. Is there something I can test? THanks
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
}