Skip to content

cloud.smarthq.service.laundry.bulktank

  • State


    A list of the states this service can be in.

    Go There

  • Data Types


    All the data types used for this service.

    Go There

Description

Service for bulk tank

Example Device Response (Digital Twin API)

Service for bulk tank for laundry

{
  "adapterId": "0000000000000000000000000000000000000000",
  "alertTypes": [],
  "createdDateTime": "2022-03-04T12:12:12.123Z",
  "deviceId": "0000000000000000000000000000000000000000000000000000000000000000",
  "deviceType": "cloud.smarthq.device.washer",
  "gatewayId": "0000000000000000000000000000000000000000000000000000000000000000",
  "kind": "device#item",
  "lastPresenceTime": "2022-03-04T12:12:12.123Z",
  "lastSyncTime": "2022-03-04T12:12:12.123Z",
  "presence": "OFFLINE",
  "removable": true,
  "services": [
    {
      "serviceType": "cloud.smarthq.service.laundry.bulktank",
      "lastSyncTime": "2022-03-04T12:12:12.123Z",
      "domainType": "cloud.smarthq.domain.laundry.bulktank",
      "supportedCommands": [],
      "state": {
        "tanks": [
          {
            "substance": "cloud.smarthq.type.substance.detergent",
            "percent": 75.0
          },
          {
            "substance": "cloud.smarthq.type.substance.softener",
            "percent": 25.0
          }
        ]
      },
      "serviceId": "0000000000000000000000000000000000000000000000000000000000000000",
      "serviceDeviceType": "cloud.smarthq.device.washer",
      "config": {},
      "lastStateTime": "2022-03-04T12:12:12.123Z"
    }
  ],
  "userId": "000000000000000"
}

State

The following are properties for the device state report as part of the "state" object for each individual service.

Field Name Property Type Required
disabled BOOLEAN No
tanks TANK No

Data Types

BOOLEAN

Value must be either true or false.

TANK

Value must be a JSON array with json objects which attributes are: - substance: Enum Value - percent: integer value - level: Enum value