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 lock_HassGetState, lock_HassTurnOn, lock_HassTurnOff inten…
…ts (home-assistant#1694)
- Loading branch information
Showing
9 changed files
with
174 additions
and
7 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,36 @@ | ||
language: sl | ||
intents: | ||
HassGetState: | ||
data: | ||
- sentences: | ||
- "(ali so|je |ali je|so) <name> {lock_states:state} [[v|na] <area>]" | ||
response: one_yesno | ||
requires_context: | ||
domain: lock | ||
slots: | ||
domain: lock | ||
|
||
- sentences: | ||
- "(ali so|ali je|je|so) [katera|kakšna] <lock> {lock_states:state} [[v|na] <area>]" | ||
- "(ali so|ali je|je|so) [katera|kakšna] {lock_states:state} <lock> [[v|na] <area>]" | ||
response: any | ||
slots: | ||
domain: lock | ||
|
||
- sentences: | ||
- "(ali so|so) (vse|vsa) <lock> {lock_states:state} [[v|na] <area>]" | ||
response: all | ||
slots: | ||
domain: lock | ||
|
||
- sentences: | ||
- "(katere|katera) <lock> [je|so] {lock_states:state} [[v|na] <area>]" | ||
response: which | ||
slots: | ||
domain: lock | ||
|
||
- sentences: | ||
- "koliko <lock> je {lock_states:state} [[v|na] <area>]" | ||
response: how_many | ||
slots: | ||
domain: lock |
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,17 @@ | ||
language: sl | ||
intents: | ||
HassTurnOff: | ||
data: | ||
- sentences: | ||
- "odkleni <name> [[v|na] <area>]" | ||
requires_context: | ||
domain: lock | ||
response: lock | ||
|
||
- sentences: | ||
- "odkleni [vsa|vse] <lock> [[v|na] <area>]" | ||
- "odkleni [vsa|vse] <area> <lock>" | ||
slots: | ||
domain: "lock" | ||
name: "all" | ||
response: lock |
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,16 @@ | ||
language: sl | ||
intents: | ||
HassTurnOn: | ||
data: | ||
- sentences: | ||
- "zakleni <name> [[v|na] <area>]" | ||
requires_context: | ||
domain: lock | ||
response: lock | ||
- sentences: | ||
- "zakleni [vse|vsa] <lock> [[v|na] <area>]" | ||
- "zakleni [vse|vsa] <area> <lock>" | ||
slots: | ||
domain: "lock" | ||
name: "all" | ||
response: lock |
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,48 @@ | ||
language: sl | ||
tests: | ||
- sentences: | ||
- "ali so vhodna vrata odklenjena?" | ||
intent: | ||
name: HassGetState | ||
slots: | ||
domain: lock | ||
name: "vhodna vrata" | ||
state: "unlocked" | ||
response: "Ne" | ||
|
||
- sentences: | ||
- "so kakšna vrata zaklenjena?" | ||
- "ali so vrata zaklenjena?" | ||
intent: | ||
name: HassGetState | ||
slots: | ||
domain: lock | ||
state: "locked" | ||
response: "Da, dvoriščna vrata in vhodna vrata" | ||
|
||
- sentences: | ||
- "ali so vsa vrata zaklenjena?" | ||
intent: | ||
name: HassGetState | ||
slots: | ||
domain: lock | ||
state: "locked" | ||
response: "Ne, nista dovozna vrata in zadnja vrata" | ||
|
||
- sentences: | ||
- "katera vrata so zaklenjena?" | ||
intent: | ||
name: HassGetState | ||
slots: | ||
domain: lock | ||
state: "locked" | ||
response: "dvoriščna vrata in vhodna vrata" | ||
|
||
- sentences: | ||
- "koliko vrat je zaklenjenih?" | ||
intent: | ||
name: HassGetState | ||
slots: | ||
domain: lock | ||
state: "locked" | ||
response: "2" |
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,25 @@ | ||
language: sl | ||
tests: | ||
- sentences: | ||
- "odkleni vhodna vrata" | ||
intent: | ||
name: HassTurnOff | ||
context: | ||
domain: lock | ||
slots: | ||
name: "vhodna vrata" | ||
response: "Odklenjeno" | ||
|
||
- sentences: | ||
- "odkleni vrata v kuhinji" | ||
- "odkleni ključavnico v kuhinji" | ||
- "odkleni kuhinjska vrata" | ||
intent: | ||
name: HassTurnOff | ||
slots: | ||
area: | ||
- "kuhinji" | ||
- "kuhinjska" | ||
domain: lock | ||
name: all | ||
response: "Odklenjeno" |
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,25 @@ | ||
language: sl | ||
tests: | ||
- sentences: | ||
- "zakleni vhodna vrata" | ||
intent: | ||
name: HassTurnOn | ||
context: | ||
domain: lock | ||
slots: | ||
name: "vhodna vrata" | ||
response: "Zaklenjeno" | ||
|
||
- sentences: | ||
- "zakleni vrata v kuhinji" | ||
- "zakleni ključavnico v kuhinji" | ||
- "zakleni kuhinjska vrata" | ||
intent: | ||
name: HassTurnOn | ||
slots: | ||
area: | ||
- "kuhinji" | ||
- "kuhinjska" | ||
domain: lock | ||
name: all | ||
response: "Zaklenjeno" |