SwitchBotAPI icon indicating copy to clipboard operation
SwitchBotAPI copied to clipboard

Webhook - unlockMethod value

Open ThatProgrammerr opened this issue 1 year ago • 2 comments

Current Situation

I unlock my front door every time either using the Keypad Touch on my front door, to trigger the Lock Pro, or via the app. I usually use the button on the lock to exit too. Although, when looking at the webhook message for these unlocking and locking, I notice that there is no way to know if the lock was opened by any specific method. For example, if I unlock with a key, it sends a standard unlock webhook and it's as if I unlocked via a proper method.

Proposed Change

I propose that the webhook sent should include an additional variable named 'unlockMethod', which should state the method, for example: app, keypad, manual/key. I don't mind if this is added as part of a manual call for example 'lastUnlockMethod' as I can detect the unlocking via the webhook, then ping the API myself, but that seems a bit out of the way.

Additional Context

I utilize the webhook feature of the Switchbot API to update my internal program to keep my Home Assistant up to date on the temps from all my switchbot meters, without constantly pinging the API for updates, but I notice that this webhook lacks a feature I need.

ThatProgrammerr avatar Aug 25 '24 10:08 ThatProgrammerr

I've gone through and found all issues relevant to this, as to see that there is a demand for this feature. I really hope the switchbot team will consider implementing something close, if not exactly what has been requested over the last few years.

ThatProgrammerr avatar Aug 25 '24 11:08 ThatProgrammerr

SwitchBot's product is ready good for security and authentication and not doubt on product quality. But lack of documents , standard APIs and Webhooks it is not useful for me. Please update the webhook events for "Keypad Touch" device. I already wait for your update.

Thanks.

vishwajit76 avatar Aug 31 '24 09:08 vishwajit76

🙏

TTRSQ avatar Apr 02 '25 10:04 TTRSQ

It's a real shame that feature requests like this seem to be ignored.

ThatProgrammerr avatar Apr 02 '25 11:04 ThatProgrammerr

Yeah, unfortunately Switchbot support has been utterly useless with that. We now have the third iteration of the device, this request has been there from the beginning, seems like an absolute no-brainer for any decent smart home integration (of course we want to know who unlocked the door) - and yet: absolutely nothing... However, it seems that the app at least has some way to access the protocol of the keypad. It looks like this isn't documented anywhere, but if we could find it, we could build a workaround since we do get the lock/unlock state from the lock. We could then just try to poll the device each time for the log and compare the timestamps...

koshisan avatar Nov 06 '25 06:11 koshisan