SwitchBotAPI-BLE
SwitchBotAPI-BLE copied to clipboard
Remote support
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.
Maybe and option would be to add option for advertise mode in the next firmware?
Can you please provide some feedback whether Wonder labs are considering adding advertise option to firmware or not at all?
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
remote
before pressing and after
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