1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

Respond to Alexa scene activation correctly (#11869)

The API documentation[1] specifies that Alexa.SceneController Activate
must get a ActivationStarted response. Responding with just a `Response`
will elicit a "Hmm... $scene is not responding" from Alexa.

[1]: https://developer.amazon.com/docs/smarthome/provide-scenes-in-a-smart-home-skill.html
This commit is contained in:
Phil Frost
2018-01-23 08:01:18 +00:00
committed by Paulus Schoutsen
parent 09e3bf94eb
commit 95592d9283
2 changed files with 48 additions and 2 deletions

View File

@@ -739,7 +739,9 @@ def test_api_activate(hass, domain):
assert len(call) == 1
assert call[0].data['entity_id'] == '{}.test'.format(domain)
assert msg['header']['name'] == 'Response'
assert msg['header']['name'] == 'ActivationStarted'
assert msg['payload']['cause']['type'] == 'VOICE_INTERACTION'
assert 'timestamp' in msg['payload']
@asyncio.coroutine