Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curtain 3 won't react to pause command #387

Open
lucaslie opened this issue Jan 6, 2025 · 0 comments
Open

Curtain 3 won't react to pause command #387

lucaslie opened this issue Jan 6, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@lucaslie
Copy link

lucaslie commented Jan 6, 2025

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 requests library

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants