--- title: "Amazon Alexa Flash Briefing" description: "Instructions on how to create your Flash Briefing skills with Home Assistant." logo: amazon-alexa.png ha_category: - Voice ha_release: "0.31" --- ## Flash Briefing Skills As of version [0.31][zero-three-one] Home Assistant supports the new [Alexa Flash Briefing Skills API][flash-briefing-api]. A Flash Briefing Skill adds a new Flash Briefing source that is generated by Home Assistant. ### Requirements Amazon requires the endpoint of a skill to be hosted via SSL. Self-signed certificates are OK because our skills will only run in development mode. Read more on [our blog][blog-lets-encrypt] about how to set up encryption for Home Assistant. When running Hass.io, using the [Let's Encrypt](/addons/lets_encrypt/) and [Duck DNS](/addons/duckdns/) add-ons is the easiest method. If you are unable to get HTTPS up and running, consider using [this AWS Lambda proxy for Alexa skills](https://community.home-assistant.io/t/aws-lambda-proxy-custom-alexa-skill-when-you-dont-have-https/5230). Additionally, note that at the time of this writing, your Alexa skill endpoint *must* accept requests over port 443 (Home Assistant default to 8123). There are two ways you can handle this: 1. In your router, forward external 443 to your Home Assistant serving port (defaults to 8123) OR 2. Change your Home Assistant serving port to 443 this is done in the [`http`](/components/http/) section with the `server_port` entry in your `configuration.yaml` file [blog-lets-encrypt]: /blog/2015/12/13/setup-encryption-using-lets-encrypt/ ### Configuring a Flash Briefing skill in Home Assistant You can use [templates] for the `title`, `audio`, `text` and `display_url` configuration parameters. Here's an example configuration of a Flash briefing skill that will tell you who is at home: ```yaml {% raw %}# Example configuration.yaml entry alexa: flash_briefings: whoishome: - title: Who's at home? text: > {%- if is_state('device_tracker.paulus', 'home') and is_state('device_tracker.anne_therese', 'home') -%} You are both home, you silly {%- else -%} Anne Therese is at {{ states("device_tracker.anne_therese") }} and Paulus is at {{ states("device_tracker.paulus") }} {% endif %}{% endraw %} ``` You can add multiple items for a feed if you want. The Amazon required UID and timestamp will be randomly generated at startup and change at every restart of Home Assistant. Please refer to the [Amazon documentation][flash-briefing-api-docs] for more information about allowed configuration parameters and formats. ### Configuring your Flash Briefing skill - Log in to [Amazon developer console][amazon-dev-console] - Click the Alexa navigation tab at the top of the console - Click on the "Get Started >" button under "Alexa Skills Kit" - Click the yellow "Add a new skill" button in the top right - Skill Information - For Skill Type select "Flash Briefing Skill API" - You can enter whatever name you want - Hit "Next" - Interaction Model - Nothing to do here - Configuration - Add new feed - For URL, enter `https://YOUR_HOST/api/alexa/flash_briefings/BRIEFING_ID?api_password=YOUR_API_PASSWORD` where `BRIEFING_ID` is the key you entered in your configuration (such as `whoishome` in the above example). **NOTE:** Do not use a non-standard HTTP or HTTPS port, AWS will not connect to it. - You can use this [specially sized Home Assistant logo][large-icon] as the Feed Icon - All other settings are up to you - Hit "Next" - Test - Having passed all validations to reach this screen, you can now click on "< Back to All Skills" as your flash briefing is now available as in "Development" service. - To invoke your flash briefing, open the Alexa app on your phone or go to the [Alexa Settings Site][alexa-settings-site], open the "Skills" configuration section, select "Your Skills", scroll to the bottom, tap on the Flash Briefing Skill you just created, enable it, then manage Flash Briefing and adjust ordering as necessary. Finally ask your Echo for your "news","flash briefing", or "briefing". [amazon-dev-console]: https://developer.amazon.com [flash-briefing-api]: https://developer.amazon.com/alexa-skills-kit/flash-briefing [flash-briefing-api-docs]: https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/flash-briefing-skill-api-feed-reference [large-icon]: /images/components/alexa/alexa-512x512.png [small-icon]: /images/components/alexa/alexa-108x108.png [templates]: /topics/templating/ [zero-three-one]: /blog/2016/10/22/flash-briefing-updater-hacktoberfest/ [alexa-settings-site]: http://alexa.amazon.com/ [emulated-hue-component]: /components/emulated_hue/