This custom component integrates Home Assistant with an Alexa SmartHome Skill. It allows using native Alexa voice commands and full access with the Alexa app.
- Replace the emulated_hue integration
- Avoid port forwarding to expose Home Assistant to the external Internet
- Support common entities (lights, switches, garage door, scripts and sensors)
- Alexa
- Alexa SmartHome Skill
- Alexa Account Linking
- AWS Lambda
- AWS IoT GreenGrass core
- This custom component
The custom component registers two services to Home Assistant:
- process_request: To be called from your lambda running in your local Greengrass IoT core
- report_change: To be called from an Automation in Home-assistant to send your entity status change to the Alexa Event Gateway
Amazon blog post about Login with Amazon
Follow repo instructions to get Greengrass IoT running. NOTE: Instructions might be outdated.
To enable this custom component add these lines to your Home-Assistant configuration.yaml file:
alexa_gateway:
url: https://api.amazonalexa.com/v3/events
auth_url: https://api.amazon.com/auth/o2/token
client_id: !secret ALEXA_CLIENT_ID
client_secret: !secret ALEXA_CLIENT_SECRET
It is possible to override the Alexa interface and Alexa display values
For example, for an entity you can make it as a Doorbell event
script.doorbell:
alexa_interface: Alexa.DoorbellEventSource
alexa_display: DOORBELL
Alexa.ContactSensor
Alexa.MotionSensor
Alexa.TemperatureSensor
Alexa.ThermostatController
Alexa.PowerController
Alexa.LockController
Alexa.BrightnessController
Alexa.ColorController
Alexa.ColorTemperatureController
Alexa.ModeController (garage door)
Alexa.RangeController (generic counter and blinds)
Alexa.EventDetectionSensor
Alexa.DoorbellEventSource
reference: https://developer.amazon.com/en-US/docs/alexa/device-apis/list-of-interfaces.html
alexa_response.py Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved