Information

GET /equipment/switch/info

Get switch information

Responses

GET /equipment/switch/info
curl \
 --request GET 'http://localhost:1888/v2/api/equipment/switch/info'
Response examples (200)
{
  "Response": {
    "WritableSwitches": [
      {
        "Maximum": 42,
        "Minimum": 42,
        "StepSize": 42.0,
        "TargetValue": 42,
        "Id": 42,
        "Name": "string",
        "Description": "string",
        "Value": 42
      }
    ],
    "ReadonlySwitches": [
      {
        "Id": 42,
        "Name": "string",
        "Description": "string",
        "Value": 42
      }
    ],
    "SupportedActions": [
      "string"
    ],
    "Connected": true,
    "Name": "string",
    "DisplayName": "string",
    "Description": "string",
    "DriverInfo": "string",
    "DriverVersion": "string",
    "DeviceId": "string"
  },
  "Error": "string",
  "StatusCode": 42,
  "Success": true,
  "Type": "string"
}
Response examples (500)
{
  "Response": "string",
  "Error": "Unknown error",
  "StatusCode": 500,
  "Success": false,
  "Type": "API"
}