forked from home-assistant/intents
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SL] added person_HassGetState, sentences, tests, fixed fixtures, com…
…mon, responses (home-assistant#1693)
- Loading branch information
Showing
5 changed files
with
136 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
language: sl | ||
intents: | ||
HassGetState: | ||
data: | ||
# https://www.home-assistant.io/integrations/person/ | ||
- sentences: | ||
- "<kje_je> <name>" | ||
response: where | ||
requires_context: | ||
domain: person | ||
slots: | ||
domain: person | ||
|
||
- sentences: | ||
- "[ali] je <name> [v|na] {zone:state}" | ||
response: one_yesno | ||
requires_context: | ||
domain: person | ||
slots: | ||
domain: person | ||
|
||
- sentences: | ||
- "[ali] je (nekdo|kdo) [v|na] {zone:state}" | ||
response: any | ||
slots: | ||
domain: person | ||
|
||
- sentences: | ||
- "ali so vsi [v|na] {zone:state}" | ||
response: all | ||
slots: | ||
domain: person | ||
|
||
- sentences: | ||
- "kdo je [v|na] {zone:state}" | ||
response: which | ||
slots: | ||
domain: person | ||
|
||
- sentences: | ||
- "koliko (oseb|ljudi) je [v|na] {zone:state}" | ||
response: how_many | ||
slots: | ||
domain: person |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
language: sl | ||
tests: | ||
- sentences: | ||
- "kje je Lev" | ||
intent: | ||
name: HassGetState | ||
slots: | ||
domain: person | ||
name: Lev | ||
response: "Lev je doma" | ||
|
||
- sentences: | ||
- "Kje je Arya" | ||
intent: | ||
name: HassGetState | ||
slots: | ||
domain: person | ||
name: Arya | ||
response: "Arya je v službi" | ||
|
||
- sentences: | ||
- "ali je Arya doma" | ||
intent: | ||
name: HassGetState | ||
slots: | ||
domain: person | ||
name: Arya | ||
state: doma | ||
response: "Ne" | ||
|
||
- sentences: | ||
- "ali je kdo doma" | ||
intent: | ||
name: HassGetState | ||
slots: | ||
domain: person | ||
state: doma | ||
response: "Da, Lev" | ||
|
||
- sentences: | ||
- "ali so vsi doma" | ||
intent: | ||
name: HassGetState | ||
slots: | ||
domain: person | ||
state: doma | ||
response: "Ne, nista Arya in Jon" | ||
|
||
- sentences: | ||
- "kdo je doma" | ||
intent: | ||
name: HassGetState | ||
slots: | ||
domain: person | ||
state: doma | ||
response: "Lev" | ||
|
||
- sentences: | ||
- "koliko oseb je doma" | ||
intent: | ||
name: HassGetState | ||
slots: | ||
domain: person | ||
state: doma | ||
response: "1" |