SwitchBotAPI
SwitchBotAPI copied to clipboard
[Keypad Touch] Delete Key command does not work
Analysis
The following JSON should delete a key with ID=15:
{"command":"deleteKey","parameter":{"id":"15"},"commandType":"command"}
But sending that command to the API server does not delete the key.
Furthermore, my webhook does not receive any callback with the result of the request. (Note that the response in the log is the response from the request itself. It was not received by my webhook.)
Expected Behavior
Key 15 is deleted, and my webhook is called with the result.
Steps To Reproduce
- Add a passcode to the Keypad Touch.
- Use the API to delete that passcode.
Logs
resp.data = [body:[commandId:CMD171258469201218], message:success, statusCode:100]
httpPostExec([uri:https://api.switch-bot.com/v1.1/devices/--------/commands, headers:[Authorization:-----, Content-Type:application/json; charset=utf8, t:1712584696300, sign:--------, nonce:], body:{"command":"deleteKey","parameter":{"id":"15"},"commandType":"command"}])
Configuration
N/A
Environment
Hubitat
Additional Context
No response