定形アクションの実行条件に指定できるスマートホームデバイスの要件はどのようなものでしょうか?
不足している要件または確認ポイントなどありましたら、アドバイスを頂けると助かります。
状況:
スマートホームスキルを作成し、Alexaアプリでスキルを有効化し、デバイスを検索して登録しました。
定形アクションの作成でスマートホームを選択しても、「デバイスが見つかりませんでした。」とのメッセージが表示されます。
デバイスはダミーです。
Alexa.Discoveryディレクティブに対して、
- interface: Alexa.PowerController
- proactivelyReported: true
- retrievable: true
をレスポンスとして返しています。
確認したこと:
- Alexaアプリでデバイスが登録できています。
- Alexaアプリのデバイス画面からオン、オフを行うと、画面上の状態もオン、オフが切り替わります。
- Alexaアプリのデバイス画面に「定形アクションを作成 >」のボタンが表示されています。
- 別のアプリからChangeReportをDevice Gatewayに送信すると、Alexaアプリのデバイス画面でオン、オフが切り替わります。
- 開発者コンソールのテスト画面からも、ChangeReportの受信が確認できています。
Alexa.Discoveryディレクティブには下記の内容を返しています。
{ "event": { "header": { "namespace": "Alexa.Discovery", "name": "Discover.Response", "payloadVersion": "3", "messageId": "message-123-456-789" }, "payload": { "endpoints": [ { "endpointId": "my-switch-01", "manufacturerName": "Chandora Device Inc", "description": "A power control device", "friendlyName": "My Switch", "additionalAttributes": { "model": "ABC", "serialNumber": "U123456789" }, "displayCategories": [ "LIGHT" ], "cookie": {}, "capabilities": [ { "type": "AlexaInterface", "interface": "Alexa.PowerController", "version": "3", "properties": { "supported": [ { "name": "powerState" } ], "proactivelyReported": true, "retrievable": true } } ], "connections": [ { "type": "TCP_IP", "macAddress": "00:11:22:AA:BB:33:44:55" } ] } ] } } }