SwitchBotAPI
SwitchBotAPI copied to clipboard
Curtain 3 won't react to pause command
Analysis
When sending a pause to the Curtain 3 device, I get a success message back but the curtains don't respond. They respond to all other commands I sent though.
Expected Behavior
I would expect the curtains to pause when sending the pause command
Steps To Reproduce
This is the command body and URL I use and package it in rest then
url_commands = "https://api.switch-bot.com/v1.1/devices/<device_id>/commands"
command_body = {
"commandType": "command",
"command": "pause",
"parameter": "default",
}
Sending other commands like position works as expected with the same code:
command_body = {
"commandType": "command",
"command": "setPosition",
"parameter": "0,ff,20",
}
Logs
I get a successful message back:
{'statusCode': 100, 'body': {}, 'message': 'success'}
Configuration
No special configuration
Environment
- OS: Mac OS
- Software: Python 3.12 using
requestslibrary
Additional Context
No response
I can confirm Lucas' finding. Both using Python and Java (using java.net.http.HttpClient). All commands work, except "pause", which does return a successful response but does not stop the curtain.