
1. Step 1 said it was directing to the tests directory and the screenshot is of a file in the tests directory, but it was actually linking to the sentences directory. Updated that. 2. Step 2 said it was linking to the tests directory (and was doing so), but the screenshot was of a file in the sentences directory. The contents of the step seemed sentences-oriented, so I updated it to direct to sentences
5.4 KiB
title
title |
---|
Assist - default sentences |
Home Assistant comes with built-in sentences contributed by the community for dozens of languages.
These sentences allow you, for example, to:
- Turn entities on and off
- "turn on the living room light"
- "turn off ceiling fan"
- "turn on the TV"
- "lock all the doors"
- "open the main door"
- Open and close covers
- "Close the garage door"
- "Open kitchen window"
- Set the brightness and color of lights
- "Change kitchen lights brightness to 50%"
- "Set bed light to green"
- Ask about the weather
- "What is the weather"
- Struggling with this one? Check the troubleshooting section.
- Add items to a list
- "Add bread to my shopping list"
- "Add decorating christmas tree to my december chores list"
- Get information about a state
- "What is the amount of energy from solar production?"
- "what is the heat pump co2 sensor's co2 level?"
- "what is the battery level of my phone?"
- Run a script
- "Run stealth mode script"
- Activate a scene
- "Activate dinner scence"
- "Turn kitchen dinner scene on"
- Inquire about people (that have device tracking activated in Home Assistant)
- "How many people are in the kitchen"
- "Who is in the garage"
- "Where is Anne"
- Abort wake word
- "Nevermind": If you triggered the wake word by mistake and want to stop Home Assistant from listening
The sentences only work, if the {% term entities %} are available and are named exactly the way you call them. Check the troubleshooting section to see common errors when asking for the weather forecast.
In addition to individual {% term entities %}, commands can target areas:
- "turn on all lights in the living room"
- "open windows in the kitchen"
- "change office brightness to 50%"
- "set bedroom lights to green"
Entity aliases are also matched so that multiple names can be used, even in different languages.
You can extend the built-in sentences or add your own to trigger any action in Home Assistant.
View existing sentences
The list of supported sentences is constantly being updated for each language. There are so many possible sentences that they cannot be all listed here. To find out what works in your language, follow these steps.
Note: If the voice assistant doesn't understand you, you may need to rephrase your sentence a bit. Or check if the {% term entity %} or {% term area %} name is correct for your environment.
-
Take a look at the test sentences:
-
On GitHub, in the tests folder, open the subfolder for your language.
-
Look through the test files to see the example sentences that have been tested.
-
The second part of the file name shows the {% term intent %}, the first part shows the {% term domain %}. For some {% term domains %}, such as covers, fans, and light, there are specific sentences. The other {% term domains %} are covered by the generic homeassistant_.
-
The screenshot below shows sentences used to test the command to turn on the lights. Note that Living room here is just a place holder. It could be any {% term area %} that you have in your home.
-
-
View the sentence definition for the tests:
-
On GitHub, in the sentences folder, open the subfolder for your language.
-
Open the file of interest.
- () mean alternative elements.
- [] mean optional elements.
- <> mean an expansion rule. To view these rules, search for
expansion_rules
in the _common.yaml file. - The syntax is explained in detail in the template sentence syntax documentation.
-
-
View the sentence definition for your language.
-
View the response definition