Smart Home (Clothes) Washer Guide

Device TYPE

action.devices.types.WASHER This type indicates that the device gets the washer icon and some washer-type synonyms/aliases.

Washers can have start and stop functionality independent from being on or off (some washers have separate power buttons, and some do not). Some can be paused and resumed while washing.

Washers also have various modes and each mode has its own related settings. These are specific to the washer and are interpreted in a generalized form.

The Assistant is currently not capable of folding laundry.

These are our recommendations for traits on this type of device, however you are free to mix and match from all available traits to best match your existing product functionality.

Please see each individual trait document for implementation details like required attributes, EXECUTE and QUERY.

Sample SYNC Request and Response

This is an example using the device type and traits above. It is intended to give an idea of how to build a SYNC response. If you add or remove traits, this will need to be modified to reflect those changes.

Request
{
  "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
  "inputs": [{
    "intent": "action.devices.SYNC",
  }]
}
Response
{
    "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
    "payload": {
        "agentUserId": "1836.15267389",
        "devices": [{
            "id": "123",
            "type": "action.devices.types.WASHER",
            "traits": [
                "action.devices.traits.StartStop",
                "action.devices.traits.Modes",
                "action.devices.traits.RunCycle"
            ],
            "name": {
                "defaultNames": ["AAA Cybernetics Corporation Washer 3421"],
                "name": "Washer",
                "nicknames": ["clothes washer"]
            },
            "willReportState": true,
            "attributes": {
                "pausable": true,
                "availableModes": [{
                    "name": "load",
                    "name_values": [{
                        "name_synonym": ["load ", "size ", "load size ", "//..."],
                        "lang": "ENGLISH"
                    }],
                    "settings": [{
                        "setting_name": "small ",
                        "setting_values": [{
                            "setting_synonym": ["small ", "half ", "//..."],
                            "lang": "ENGLISH"
                        }]
                    }, {
                        "setting_name": "large ",
                        "setting_values": [{
                            "setting_synonym": ["large", "full", "//..."],
                            "lang": "ENGLISH"
                        }]
                    }],
                    "ordered": true
                }],
                "availableToggles": [{
                        "name ": "child proof ",
                        "name_values": [{
                            "name_synonym ": ["on ", "off ", "//..."],
                            "lang": "en"
                        }]
                    },
                    {
                        "name ": "drum midway tim clothes ",
                        "name_values": [{
                            "name_synonym ": ["on ", "off ", "//..."],
                            "lang": "en"
                        }]
                    }
                ]
            },
            "deviceInfo": {
                "manufacturer": "AAA Cybernetics Corporation",
                "model": "233451",
                "hwVersion": "3.2",
                "swVersion": "11.4"
            },
            "customData": {
                "fooValue": 74,
                "barValue": true,
                "bazValue": "lambtwirl"
            }
        }]
    }
}
Validator

Device ERRORS

The error codes extend the primary list in the DevGuide. Additional errors will be added as needed.