SwitchBotAPI-BLE icon indicating copy to clipboard operation
SwitchBotAPI-BLE copied to clipboard

Remote support

Open evlo opened this issue 1 year ago • 3 comments

Current Situation

Remote does pair with another switchbot device or hub.

Proposed Change

Support for getting events of remote ( https://eu.switch-bot.com/products/switchbot-remote ) buttons being pressed.

Additional Context

It kinda seems like there is no ble packet sent on button press on the remote, but I might be wrong as I do not understand bluetooth, or ble, almost at all.

evlo avatar Nov 30 '22 19:11 evlo

Maybe and option would be to add option for advertise mode in the next firmware?

evlo avatar Feb 06 '23 23:02 evlo

Can you please provide some feedback whether Wonder labs are considering adding advertise option to firmware or not at all?

evlo avatar Apr 09 '23 05:04 evlo

I do not really understand BT/BLE, but I kinda guess the issue is that device does not advertise the button press, but acts as client to the server that receives notifications that button was pressed.

However contact sensor does have button and that does advertise button press as changing number when it is pressed. https://github.com/OpenWonderLabs/SwitchBotAPI-BLE/blob/latest/devicetypes/contactsensor.md#contact-sensor-broadcast-message byte:8 Button push counter Each time the button is pressed, the Counter value increases by 1 (1~15)cycle,16 Value changes after overflow 1

I will leave few screenshots here for me if me if I look for this inteo future or so maybe someone smarter who maybe can do implementation for this device as it is still very rare to have this kind of device that does not wait for double click etc.








From the contact switch

image




remote

before pressing and after image

advertised data NOT changed

Can you make the remote buttons behave same way as button on the contact sensor?

Also as it is based on RLT8762C custom community made firmware would be quite difficult to make and fix this image

evlo avatar Oct 04 '23 07:10 evlo