Friday, December 18, 2020

Alexa and Home Assistant TTS, Media Player, Announcements, Sound Effects, Sequence Commands

But the link to the sound library, every single one of those that I’ve tried haven’t worked. If you happen to be a Node-RED guy and you don’t want to mess around with Home Assistant for some reason. Check my other tutorial about Alexa, Node-RED and TTS. The full list of the available sequence commands can be found here – link. You will be greeted by Captcha window after that and you have to guess it.

home assistant make alexa speak

In this menu when you select a switch, Open corresponds to on and Close corresponds to off. Home Assistant configures covers with semantics that provide “raise”, “lower”, “open”, “close” utterances for covers. In addition to semantics “turn on” / “turn off” utterances will also work. Alexa will announce on all echo devices “Someone is at the ” when a binary_sensor state changes from off to on.

Script

However when I try to setup a routine and select one of my sensor I get the error “device not supported at the moment” . Since version 0.85, the Home Assistant’s Alexa component supports proactive reporting of devices’ states to Alexa. What this means is that when a device’s state changes, Home Assistant will let Alexa know of that change.

home assistant make alexa speak

You should be able to find your new role in the roles list now. After some time your new custom Skill will be announced ready to use. Copy Skill ID from current web page URL, you’ll spot it for sure, or go back to the dashboard and click Copy Skill ID form Alexa Skills listing.

Alexa Media Player

Scroll down a little bit, you need to input the Skill ID from the skill you created in the previous step. Hopefully they update soon; makes the cloud service a lot less appealing. I‘m interested in changing the volume of the devices.

home assistant make alexa speak

I’m sure that if I set a timer on an alexa it showed it on the player on home assistant. I have since reinstalled my system as hass.io and used hacs to install the alexa media player but it doesn’t show the timers. Yes, I have copied all your codes and used the input select to select individual list of phrases.

Binary Sensor

Now remove the long-lived access token , copy the ARN of your Lambda function, then navigate back to the Alexa Developer Console. You will finish the configuration of the Smart Home skill. The routine sees the binary sensor, and I can add the binary sensor to the routine and can set the state the routine is to look for (in my example to “open”).

You can replace entity_id template with simple string name of Echo entity if you wanna use it on single Echo instance. Control lights with “turn on” and “turn off” utterances, adjust brightness, color, and temperature. In order to enable this, buttons will appear to have “presence detection” capability. This is what allows this functionality since Alexa does not support button type devices. To trigger a routine when a button is pressed, select the button in the when menu and then select the “Person” capability. On an old installation of home assistant I set up alexa media player but had to do it to manual way.

Alarm Control Panel

I can “play” the routine and see that it performs the action (saying “hello”). The brightness levels are used to trigger the input select which in turn parses the text and output the results to Alexa. In order to enable this, Switches and Input Booleans will appear as contact sensors in the when menu of Alexa Routines. This is because Alexa does not support triggering routines from switch-type devices, only from contact and motion sensors.

home assistant make alexa speak

Your Lambda function will deliver the response back to Alexa. The last step is simply expose the virtual bulb to Alexa and trigger it with the Alexa routine in the phone app. I added this part of code in automation.yaml and my code editor (notepad++), complained about the spacing as you can see with the screenshot. If you require an attribute not listed above use the attribute number as listed in the developer tools states attribute column . The first attribute of an entity will be 0 the second will be 1 up to 9 the tenth attribute of the entity. This script simplifies the tasks of passing entity details for Alexa to speak using the brilliant Alexa speech module.

If exactly same text is typed as input TTS service is not being called again to save the request quota and bandwidth. AppDaemon configuration pageThis will install all external dependencies for our AppDaemon instance. Google TTS service running on AppDaemon, connected with custom Alexa skill. When you are not lucky enough to have native support of your language in Alexa service you may find this interesting.

home assistant make alexa speak

Rarely, it does trigger but notification is delivered ~30 minutes after the event. The problem is that the auth between the alexa skill and the alexa component is not completely implemented in the cloud component. After you set the brightness add a second line and get Alexa to say something like “Please Wait”. This will cover the slight delay between the asking alexa, triggering the routine and getting the reply. I have error when I want to call the brightness of a light.

Adding Scripts

Home assistant automatons do not allow the use of any persistent data. So, this project uses two Input selects to hold the data. Activate scenes with scene name, or “turn on” utterance. Home Assistant does not support deactivate or “turn off” for scenes at this time. Display category will default to CAMERA to enable presence detected notification settings in the Alexa App. Each Echo device will need the communication and Announcements setting enabled, and the Do Not Disturbed feature turned off.

I will have to wait for the Cloud Component to support this before testing but I can see a lot of cool possibilities once this support is added. The emulated hue settings look OK for the bulb . The above is the difficult part as it is a complex script , once working , all you need now is something to trigger the phrases from Alexa phone app. The code will output the state of the entity with the correct device type without restoring to any code.

After discovery, the Alexa app will offer the ability to use the existing code, or create an additional 4 digit PIN to use with Alexa. To limit which entities are being exposed to Alexa, you can use the filter parameter. Keep in mind that only supported platforms can be added. Click Functions in the left navigation bar, to display the list of your Lambda functions. The first thing you need to do after signing into the AWS console is to create an IAM Role for Lambda execution.

home assistant make alexa speak

No comments:

Post a Comment

Modern kitchen ideas: 35 contemporary designs for a kitchen

Table Of Content Install eye-catching brass hardware Cozy White Kitchen Incorporate Glass Let the Light Pour In Curved Seating Nook and Tiny...