This ConnectorBridgeCLI allows for both directly controlling blinds that support wifi-connection and controlling Uni- and Bi-direction blinds that connect to a 433MHz WiFi bridge. The following bridges are reported to work with this integration:
This ConnectorBridgeCLI integration allows you to control the following brands:
The default communication is via Multicast, but it might not work on your network. You can override with the Bridge IP address.
Flag | Environment Variable | Description |
---|---|---|
--host | CONNECTOR_BRIDGE_HOST | The hostname of IP address of the Connector Bridge -0 |
--port | CONNECTOR_BRIDGE_PORT | The port for the Connector Bridge connection. Default 32100 |
--apikey | CONNECTOR_BRIDGE_APIKEY | The ApiKey to authenticate with Connector Bridge |
--simple-status | N/A | Return just the position as status, not the whole status |
--invert | N/A | Invert the position paramenter to adjust to existing integrations |
sconnector-cli <command> <device_id> --host=192.168.0.189 --apikey=<Bridge API key> --port=32100
export CONNECTOR_BRIDGE_HOST=192.168.0.189
export CONNECTOR_BRIDGE_APIKEY=<Bridge API key>
sconnector-cli <command> <device_id>
The following commands were added on this:
Send the command to the device
sconnector-cli open 1 --host=192.168.0.189 --apikey=<Bridge API key>
sconnector-cli stop 1 --host=192.168.0.189 --apikey=<Bridge API key>
sconnector-cli close 1 --host=192.168.0.189 --apikey=<Bridge API key>
sconnector-cli status 1 --host=192.168.0.189 --apikey=<Bridge API key>
Send the command to set the position the device. Position must be between 0 and 100
sconnector-cli set-position 1 50 --host=192.168.0.189 --apikey=<Bridge API key>
Start a API Server to receive commands via HTTP, this is useful to integrate with other devices that do not support command line. This command has extra settings: | Flag | Environment Variable | Description |
---|---|---|---|
--server-port | CONNECTOR_API_SERVER_PORT | The listening port for the web server. Default 8080 | |
--server-apikey | CONNECTOR_API_SERVER_APIKEY | The API Key to be used when requesting to the web server (Header: X-API-Key) |
Running the server
export CONNECTOR_BRIDGE_HOST=192.168.0.189
export CONNECTOR_BRIDGE_APIKEY=<Bridge API key>
sconnector-cli server --server-apikey=ControlMe!
To stop exit the server CTRL+C
The commands are available with simple GET
/open/
Sending a request to the server:
curl -H "X-API-Key: ControlMe!" http://localhost:8080/open/1
Docker images https://hub.docker.com/r/alexbacchin/sconnector-cli