Skip to content

Commit

Permalink
Added playback state reporter schema capabilities and properties
Browse files Browse the repository at this point in the history
  • Loading branch information
jsetton committed May 31, 2019
1 parent fdc35b3 commit a583775
Showing 1 changed file with 114 additions and 0 deletions.
114 changes: 114 additions & 0 deletions validation_schemas/alexa_smart_home_message_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2801,6 +2801,114 @@
}
}
},
"PlaybackStateReporter": {
"playbackState": {
"property": {
"type": "object",
"required": [
"namespace",
"name",
"value",
"timeOfSample",
"uncertaintyInMilliseconds"
],
"additionalProperties": false,
"properties": {
"namespace": {
"enum": [
"Alexa.PlaybackStateReporter"
]
},
"name": {
"enum": [
"playbackState"
]
},
"value": {
"type": "object",
"required": [
"state"
],
"additionalProperties": false,
"properties": {
"state": {
"enum": [
"PLAYING",
"PAUSED",
"STOPPED"
]
}
}
},
"timeOfSample": {
"$ref": "#/definitions/common.properties/timestamp"
},
"uncertaintyInMilliseconds": {
"$ref": "#/definitions/common.properties/uncertaintyInMilliseconds"
}
}
}
},
"capabilities": {
"type": "object",
"required": [
"type",
"interface",
"version"
],
"additionalProperties": false,
"properties": {
"type": {
"enum": [
"AlexaInterface"
]
},
"interface": {
"enum": [
"Alexa.PlaybackStateReporter"
]
},
"version": {
"$ref": "#/definitions/common.properties/version"
},
"properties": {
"type": "object",
"required": [
"supported",
"proactivelyReported",
"retrievable"
],
"additionalProperties": false,
"properties": {
"supported": {
"type": "array",
"uniqueItems": true,
"items": {
"type": "object",
"required": [
"name"
],
"additionalProperties": false,
"properties": {
"name": {
"enum": [
"playbackState"
]
}
}
}
},
"proactivelyReported": {
"type": "boolean"
},
"retrievable": {
"type": "boolean"
}
}
}
}
}
},
"MotionSensor": {
"detectionState": {
"property": {
Expand Down Expand Up @@ -3244,6 +3352,9 @@
{
"$ref": "#/definitions/common.properties/interfaces/EqualizerController/mode/property"
},
{
"$ref": "#/definitions/common.properties/interfaces/PlaybackStateReporter/playbackState/property"
},
{
"$ref": "#/definitions/common.properties/interfaces/MotionSensor/detectionState/property"
},
Expand Down Expand Up @@ -3466,6 +3577,9 @@
{
"$ref": "#/definitions/common.properties/interfaces/PlaybackController/capabilities"
},
{
"$ref": "#/definitions/common.properties/interfaces/PlaybackStateReporter/capabilities"
},
{
"$ref": "#/definitions/common.properties/interfaces/ContactSensor/capabilities"
},
Expand Down

0 comments on commit a583775

Please sign in to comment.