cloud.smarthq.service.laundry.toggle.v2¶
Description¶
Service to model a binary state that can be read only or remotely controlled. This service also returns selected cycle.
Example Device Response (Digital Twin API)¶
State service for Dryer Washer Link.
{
"adapterId": "0000000000000000000000000000000000000000",
"alertTypes": [],
"createdDateTime": "2022-03-04T12:12:12.123Z",
"deviceId": "0000000000000000000000000000000000000000000000000000000000000000",
"deviceType": "cloud.smarthq.device.dryer",
"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.toggle.v2",
"lastSyncTime": "2022-03-04T12:12:12.123Z",
"domainType": "cloud.smarthq.domain.laundry.washerlink",
"supportedCommands": [
"cloud.smarthq.command.laundry.toggle.v2.set"
],
"state": {
"cycle": "cloud.smarthq.type.laundry.cycle.sanitize",
"on": false
},
"serviceId": "0000000000000000000000000000000000000000000000000000000000000000",
"serviceDeviceType": "cloud.smarthq.device.dryer",
"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 |
---|---|---|
cycle | LAUNDRY_CYCLE | Yes |
disabled | BOOLEAN | No |
on | BOOLEAN | Yes |
Commands¶
The following are properties for both the Digital Twin API to send a command to the device as well as the properties passed as part of a command to the gateway to be processed by the device itself.
cloud.smarthq.command.laundry.toggle.v2.set¶
Command to set the binary state of the laundry v2 toggle service.
Rules Engine Allowed Domains:
- cloud.smarthq.domain.laundry.washerlink
- cloud.smarthq.domain.fault.noncritical
Field Name | Property Type | Required |
---|---|---|
on | BOOLEAN | Yes |
Example Commands¶
Dryer washer link toggle.
{
"command": {
"commandType": "cloud.smarthq.command.laundry.toggle.v2.set",
"on": true
},
"deviceId": "00000000000000000000000000000000000000000000000000000000000000",
"domainType": "cloud.smarthq.domain.laundry.washerlink",
"kind": "service#command",
"serviceDeviceType": "cloud.smarthq.device.dryer",
"serviceType": "cloud.smarthq.service.laundry.toggle.v2"
}
Supported Outcomes¶
Each service has an allow listed set of outcomes that the device may return when asked to execute a command.
Outcome | Documentation |
---|---|
cloud.smarthq.outcome.developererror | Only used when there is a server side bug |
cloud.smarthq.outcome.deviceoffline | The device is offline. |
cloud.smarthq.outcome.forbidden | The request is forbidden due to permissions. |
cloud.smarthq.outcome.internalerror | The server had an issue processing the request |
cloud.smarthq.outcome.missingconfig | The service config is missing |
cloud.smarthq.outcome.missingstate | The service state is missing |
cloud.smarthq.outcome.notallowed | The command is not allowed. |
cloud.smarthq.outcome.notfound | The request is forbidden due to permissions. |
cloud.smarthq.outcome.notsupported | The command is not supported. |
cloud.smarthq.outcome.servicedisabled | Feature is currently disabled |
cloud.smarthq.outcome.success | Successful request |
cloud.smarthq.outcome.timeout | The server experienced timeout waiting for a response from the gateway |
Data Types¶
BOOLEAN¶
Value must be either true or false.
LAUNDRY_CYCLE¶
LAUNDRY_CYCLE | Documentation |
---|---|
cloud.smarthq.type.laundry.cycle.activewear | Active Wear |
cloud.smarthq.type.laundry.cycle.adaptivemysettings | Adaptive Settings |
cloud.smarthq.type.laundry.cycle.allergen | Allergen |
cloud.smarthq.type.laundry.cycle.antibacterial | Antibacterial |
cloud.smarthq.type.laundry.cycle.assistant | Laundry Assistant |
cloud.smarthq.type.laundry.cycle.autodampdry | Auto Damp Dry |
cloud.smarthq.type.laundry.cycle.autodry | Auto Dry |
cloud.smarthq.type.laundry.cycle.autoextradry | Auto Extra Dry |
cloud.smarthq.type.laundry.cycle.babycare | Baby Care |
cloud.smarthq.type.laundry.cycle.basketclean | Basket Clean |
cloud.smarthq.type.laundry.cycle.bulkybedding | Bulky Bedding |
cloud.smarthq.type.laundry.cycle.bulkyitems | Bulky Items |
cloud.smarthq.type.laundry.cycle.c20 | 20 C |
cloud.smarthq.type.laundry.cycle.casuals | Casuals |
cloud.smarthq.type.laundry.cycle.casualswithsteam | Casuals with Steam |
cloud.smarthq.type.laundry.cycle.coldwash | Cold Wash |
cloud.smarthq.type.laundry.cycle.colors | Colors |
cloud.smarthq.type.laundry.cycle.coolair | Cool Air |
cloud.smarthq.type.laundry.cycle.cottons | Cottons |
cloud.smarthq.type.laundry.cycle.darks | Dark Colors |
cloud.smarthq.type.laundry.cycle.deepclean | Deep Clean |
cloud.smarthq.type.laundry.cycle.delicaterefresh | Delicate Refresh |
cloud.smarthq.type.laundry.cycle.delicates | Delicates |
cloud.smarthq.type.laundry.cycle.denim | Denim |
cloud.smarthq.type.laundry.cycle.dewrinkle | DeWrinkle |
cloud.smarthq.type.laundry.cycle.down | Down |
cloud.smarthq.type.laundry.cycle.downloadablecycle | Download Cycle |
cloud.smarthq.type.laundry.cycle.drainandspin | Drain and Spin |
cloud.smarthq.type.laundry.cycle.drumclean | Drum Clean |
cloud.smarthq.type.laundry.cycle.drumlight | Drum Light |
cloud.smarthq.type.laundry.cycle.durable | Durable |
cloud.smarthq.type.laundry.cycle.duvet | Duvet |
cloud.smarthq.type.laundry.cycle.easycare | Easy Care |
cloud.smarthq.type.laundry.cycle.easyiron | Easy Iron |
cloud.smarthq.type.laundry.cycle.eco | Eco |
cloud.smarthq.type.laundry.cycle.eco4060 | Eco 40-60 |
cloud.smarthq.type.laundry.cycle.ecocool | Eco Cool |
cloud.smarthq.type.laundry.cycle.energysaver | Energy Saver |
cloud.smarthq.type.laundry.cycle.everyday | Everyday |
cloud.smarthq.type.laundry.cycle.express | Express |
cloud.smarthq.type.laundry.cycle.flexdispense | The flex Dispense Adjustability |
cloud.smarthq.type.laundry.cycle.freshen | Freshen |
cloud.smarthq.type.laundry.cycle.handwash | Hand Wash |
cloud.smarthq.type.laundry.cycle.heavy | Heavy |
cloud.smarthq.type.laundry.cycle.heavyduty | Heavy Duty |
cloud.smarthq.type.laundry.cycle.hotwash | Hot Wash |
cloud.smarthq.type.laundry.cycle.hygiene | Hygiene |
cloud.smarthq.type.laundry.cycle.jeans | Jeans |
cloud.smarthq.type.laundry.cycle.kidsitem | Kids Item |
cloud.smarthq.type.laundry.cycle.leather | Leather |
cloud.smarthq.type.laundry.cycle.light | Light |
cloud.smarthq.type.laundry.cycle.mix | Mix |
cloud.smarthq.type.laundry.cycle.mixed | Mixed |
cloud.smarthq.type.laundry.cycle.mixedrefresh | Mixed Refresh |
cloud.smarthq.type.laundry.cycle.moredry | More dry |
cloud.smarthq.type.laundry.cycle.morewater | Incremental Fill |
cloud.smarthq.type.laundry.cycle.mycycle | The Remote My Cycle cycle |
cloud.smarthq.type.laundry.cycle.nightdry | Night Dry |
cloud.smarthq.type.laundry.cycle.normal | Normal |
cloud.smarthq.type.laundry.cycle.normalormixed | Normal or Mixed Load |
cloud.smarthq.type.laundry.cycle.order.scent | order scent |
cloud.smarthq.type.laundry.cycle.order.tide | order tide |
cloud.smarthq.type.laundry.cycle.outdoor | Outdoor |
cloud.smarthq.type.laundry.cycle.outerwear | Outerwear |
cloud.smarthq.type.laundry.cycle.pantscrease | Pants Crease |
cloud.smarthq.type.laundry.cycle.permpress | Perm Press |
cloud.smarthq.type.laundry.cycle.powerclean | Power Clean |
cloud.smarthq.type.laundry.cycle.powersteam | Power Steam |
cloud.smarthq.type.laundry.cycle.preiron | Pre Iron |
cloud.smarthq.type.laundry.cycle.quick15 | Quick 15 |
cloud.smarthq.type.laundry.cycle.quick30 | Quick 30 |
cloud.smarthq.type.laundry.cycle.quickairfluff | Quick or Airfluff |
cloud.smarthq.type.laundry.cycle.quickcycle | Quick Cycle |
cloud.smarthq.type.laundry.cycle.quickdry | Quick Dry |
cloud.smarthq.type.laundry.cycle.quickrinse | Quick Rinse |
cloud.smarthq.type.laundry.cycle.quickwash | Quick Wash |
cloud.smarthq.type.laundry.cycle.quietwash | Quiet |
cloud.smarthq.type.laundry.cycle.rackdry | Rack Dry |
cloud.smarthq.type.laundry.cycle.rainorsnow | Rain or Snow |
cloud.smarthq.type.laundry.cycle.refresh | Refresh |
cloud.smarthq.type.laundry.cycle.rinseanddry | Rinse and Dry |
cloud.smarthq.type.laundry.cycle.rinseandspin | Rinse and Spin |
cloud.smarthq.type.laundry.cycle.sanitiserefresh | Sanitise Refresh |
cloud.smarthq.type.laundry.cycle.sanitize | Sanitize |
cloud.smarthq.type.laundry.cycle.sanitizeandallergen | Sanitize + Allergen |
cloud.smarthq.type.laundry.cycle.sanitizesteam | Sanitize Steam |
cloud.smarthq.type.laundry.cycle.sanitizewithoxi | Sanitize with Oxi |
cloud.smarthq.type.laundry.cycle.scent | Scent |
cloud.smarthq.type.laundry.cycle.selfclean | Self Clean |
cloud.smarthq.type.laundry.cycle.sheets | Sheets |
cloud.smarthq.type.laundry.cycle.shirts | Shirts |
cloud.smarthq.type.laundry.cycle.shirtsrefresh | Shirts Refresh |
cloud.smarthq.type.laundry.cycle.shoes | Shoes |
cloud.smarthq.type.laundry.cycle.silk | Silk |
cloud.smarthq.type.laundry.cycle.singleitem | Single Item Wash |
cloud.smarthq.type.laundry.cycle.smartdispense | The smart Dispense Adjustability |
cloud.smarthq.type.laundry.cycle.smartvent | Smart Vent |
cloud.smarthq.type.laundry.cycle.sneakers | Sneakers |
cloud.smarthq.type.laundry.cycle.soak | Soak |
cloud.smarthq.type.laundry.cycle.softtoys | Soft Toys |
cloud.smarthq.type.laundry.cycle.speeddry | Speed Dry |
cloud.smarthq.type.laundry.cycle.speedwash | Speed Wash |
cloud.smarthq.type.laundry.cycle.spinonly | Spin Only |
cloud.smarthq.type.laundry.cycle.sports | Sports |
cloud.smarthq.type.laundry.cycle.stainremoval | Stain Removal |
cloud.smarthq.type.laundry.cycle.stainwashwithsteam | Stain Wash with Steam |
cloud.smarthq.type.laundry.cycle.steamdewrinkle | Steam Dewrinkle |
cloud.smarthq.type.laundry.cycle.steamfresh | Steam Fresh |
cloud.smarthq.type.laundry.cycle.steamnormal | Steam Normal |
cloud.smarthq.type.laundry.cycle.steamrefresh | Steam Refresh |
cloud.smarthq.type.laundry.cycle.steamsanitize | Steam Sanitize |
cloud.smarthq.type.laundry.cycle.steamtowels | Steam Towels |
cloud.smarthq.type.laundry.cycle.steamwhites | Steam Whites |
cloud.smarthq.type.laundry.cycle.suitsorcoats | Suits or Coats |
cloud.smarthq.type.laundry.cycle.swimwear | Swimwear |
cloud.smarthq.type.laundry.cycle.synthetics | Synthetics |
cloud.smarthq.type.laundry.cycle.timeddry | Timed Dry |
cloud.smarthq.type.laundry.cycle.towels | Towels |
cloud.smarthq.type.laundry.cycle.towelssheets | Towels or Sheets |
cloud.smarthq.type.laundry.cycle.tubclean | Tub Clean |
cloud.smarthq.type.laundry.cycle.tumblecare | Tumble Care |
cloud.smarthq.type.laundry.cycle.ultradelicate | Ultra Delicate |
cloud.smarthq.type.laundry.cycle.ultrafreshvent | Ultra Fresh Vent |
cloud.smarthq.type.laundry.cycle.undefined | Undefined |
cloud.smarthq.type.laundry.cycle.warmup | Warm Up |
cloud.smarthq.type.laundry.cycle.warmwash | Warm Wash |
cloud.smarthq.type.laundry.cycle.washcomplete | Wash complete |
cloud.smarthq.type.laundry.cycle.washerlink | Washer Link |
cloud.smarthq.type.laundry.cycle.waterstation | Water Station |
cloud.smarthq.type.laundry.cycle.whites | Whites |
cloud.smarthq.type.laundry.cycle.wool | Wool |
cloud.smarthq.type.laundry.cycle.woolorknit | Wool or Knit |