소스 검색

修改更新设备信息响应

locky 1 개월 전
부모
커밋
6ccf9d816e
1개의 변경된 파일72개의 추가작업 그리고 11개의 파일을 삭제
  1. 72 11
      controller/deviceStatus.py

+ 72 - 11
controller/deviceStatus.py

@@ -429,19 +429,80 @@ class deviceStatus(TemplateView):
                 "capabilities": [
                     {
                         "type": "AlexaInterface",
-                        "interface": "Alexa.CameraStreamController",
+                        "interface": "Alexa.RTCSessionController",
                         "version": "3",
-                        "cameraStreamConfigurations": [
-                            {
-                                "protocols": ["RTSP"],
-                                "resolutions": [{"width": 1280, "height": 720}],
-                                "authorizationTypes": ["NONE"],
-                                "videoCodecs": ["H264"],
-                                "audioCodecs": ["ACC"],
-                            }
-                        ],
+                        "configuration": {
+                            "isFullDuplexAudioSupported": False,
+                            "supportedProtocols": ["WEBRTC"]
+                        }
+                    },
+                    {
+                        "type": "AlexaInterface",
+                        "interface": "Alexa.EndpointHealth",
+                        "version": "3.1",
+                        "properties": {
+                            "supported": [
+                                {"name": "connectivity"}
+                            ],
+                            "proactivelyReported": True
+                        }
+                    },
+                    {
+                        "type": "AlexaInterface",
+                        "interface": "Alexa",
+                        "version": "3"
+                    },
+                    {
+                        "type": "AlexaInterface",
+                        "interface": "Alexa.SmartVision.SnapshotProvider",
+                        "version": "1.1",
+                        "configuration": {
+                            "isAvailable": True,
+                            "minRefreshIntervalInSeconds": 60
+                        }
+                    },
+                    {
+                        "type": "AlexaInterface",
+                        "interface": "Alexa.SmartVision.ObjectDetectionSensor",
+                        "version": "1.0",
+                        "properties": {
+                            "supported": [
+                                {
+                                    "name": "objectDetectionClasses"
+                                }
+                            ],
+                            "proactivelyReported": True,
+                            "retrievable": True
+                        },
+                        "configuration": {
+                            "objectDetectionConfiguration": [
+                                {
+                                    "imageNetClass": "person"
+                                }
+                            ]
+                        }
+                    },
+                    {
+                        "type": "AlexaInterface",
+                        "interface": "Alexa.DataController",
+                        "instance": "Camera.SmartVisionData",
+                        "version": "1.0",
+                        "properties": {},
+                        "configuration": {
+                            "targetCapability": {
+                                "name": "Alexa.SmartVision.ObjectDetectionSensor",
+                                "version": "1.0"
+                            },
+                            "dataRetrievalSchema": {
+                                "type": "JSON",
+                                "schema": "SmartVisionData"
+                            },
+                            "supportedAccess": [
+                                "BY_TIMESTAMP_RANGE"
+                            ]
+                        }
                     }
-                ],
+                ]
             }
             endpoints.append(endpoint)
         return endpoints