Support script execution for Alexa (#10517)

* Support script execution for Alexa

* Use PowerController for the script component
This commit is contained in:
Michael Chang 2017-11-15 23:44:27 -06:00 committed by Paulus Schoutsen
parent d5cba0b716
commit 48181a9388
2 changed files with 16 additions and 4 deletions

View file

@ -6,7 +6,7 @@ from uuid import uuid4
from homeassistant.const import (
ATTR_SUPPORTED_FEATURES, ATTR_ENTITY_ID, SERVICE_TURN_ON, SERVICE_TURN_OFF)
from homeassistant.components import switch, light
from homeassistant.components import switch, light, script
import homeassistant.util.color as color_util
from homeassistant.util.decorator import Registry
@ -21,6 +21,7 @@ API_ENDPOINT = 'endpoint'
MAPPING_COMPONENT = {
script.DOMAIN: ['SWITCH', ('Alexa.PowerController',), None],
switch.DOMAIN: ['SWITCH', ('Alexa.PowerController',), None],
light.DOMAIN: [
'LIGHT', ('Alexa.PowerController',), {