Skip to content

Sending HTTP requests for controlling Switchbot Bot #7

@ix300

Description

@ix300

Hello!

Could it be possible to send HTTP requests to the SwitchBot BLE / Network Hub (using Bitfocus Companion) to control Switchbot Bot?
Could the following example for turning a Bot on get modified for the SwitchBot BLE / Network Hub?

Request
POST https://api.switch-bot.com/v1.1/devices/210/commands
{
"command": "turnOn",
"parameter": "default",
"commandType": "command"
}
Response
{
"statusCode": 100,
"body": {},
"message": "success"
}

I have already learned from another post, that it's possible to get feedback from Switchbot using HTTP GET, which is working great with Bitfocus Companion generic HTTP module:
http://my.IP.address/api/v1/device?address=Switchbot:BLE:MAC:address

Thank you in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions