stampzilla-go icon indicating copy to clipboard operation
stampzilla-go copied to clipboard

add attributes which acompanies a trait

Open jonaz opened this issue 6 years ago • 0 comments

example from google actions api:

{
  "requestId": "ff36a3cc-ec34-11e6-b1a0-64510650abcf",
  "payload": {
    "agentUserId": "1836.15267389",
    "devices": [{
      "id": "123",
      "type": "action.devices.types.LIGHT",
      "traits": [
        "action.devices.traits.ColorSetting"
      ],
      "name": {
        "defaultNames": ["AAA bulb A19 color hyperglow"],
        "name": "lamp1",
        "nicknames": ["reading lamp"]
      },
      "willReportState": false,
      "attributes": {
        "colorModel": "rgb",
        "colorTemperatureRange": {
          "temperatureMinK": 2000,
          "temperatureMaxK": 9000
        },
        "commandOnlyColorSetting": true
      },
      "deviceInfo": {
        "manufacturer": "AAA",
        "model": "hg11",
        "hwVersion": "1.2",
        "swVersion": "5.4"
      },
      "customData": {
        "fooValue": 12,
        "barValue": false,
        "bazValue": "dancing alpaca"
      }
    }]
  }
}

jonaz avatar Jan 13 '19 18:01 jonaz