-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Timer increase/decrease in Danish plus extend pause/u…
…npause sentences (#2900)
- Loading branch information
Showing
11 changed files
with
207 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
language: da | ||
responses: | ||
intents: | ||
HassDecreaseTimer: | ||
default: > | ||
{% set h = slots.hours if slots.hours is defined else none %} | ||
{% set m = slots.minutes if slots.minutes is defined else none %} | ||
{% set s = slots.seconds if slots.seconds is defined else none %} | ||
{% set h_text = h ~ (' time' if h in [ "1", 'one'] else ' timer') if h else '' %} | ||
{% set m_text = m ~ (' minut' if m in [ "1", 'one'] else ' minutter') if m else '' %} | ||
{% set s_text = s ~ (' sekund' if s in [ "1", 'one'] else ' sekunder') if s else '' %} | ||
{% set text_list = [ h_text, m_text, s_text] | select() | list %} | ||
{% set text = text_list[:-1] | join(', ') ~ ' og ' ~ text_list[-1] if text_list | count > 2 else text_list | join(' og ') %} | ||
{% set name = (slots.name | trim) if slots.name is defined else '' %} | ||
{{ text }} trukket fra {{ name }} nedtællingen |
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: da | ||
responses: | ||
intents: | ||
HassIncreaseTimer: | ||
default: > | ||
{% set h = slots.hours if slots.hours is defined else none %} | ||
{% set m = slots.minutes if slots.minutes is defined else none %} | ||
{% set s = slots.seconds if slots.seconds is defined else none %} | ||
{% set h_text = h ~ (' time' if h in [ "1", 'one'] else ' timer') if h else '' %} | ||
{% set m_text = m ~ (' minut' if m in [ "1", 'one'] else ' minutter') if m else '' %} | ||
{% set s_text = s ~ (' sekund' if s in [ "1", 'one'] else ' sekunder') if s else '' %} | ||
{% set text_list = [ h_text, m_text, s_text] | select() | list %} | ||
{% set text = text_list[:-1] | join(', ') ~ ' og ' ~ text_list[-1] if text_list | count > 2 else text_list | join(' og ') %} | ||
{% set name = (slots.name | trim) if slots.name is defined else '' %} | ||
{{ text }} lagt til {{ name }} nedtællingen |
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,21 @@ | ||
--- | ||
language: da | ||
intents: | ||
HassDecreaseTimer: | ||
data: | ||
- sentences: | ||
- "<timer_decrease> <timer_duration> fra [min] <timer>" | ||
- "<timer_decrease> <timer_duration> fra [min] <timer_start>[s] <timer>" | ||
- "<timer_decrease> <timer_duration> fra [min] <timer> på <timer_start>" | ||
- "<timer_decrease> <timer_duration> fra [min] <område> <timer>" | ||
- "<timer_decrease> <timer_duration> fra [min] <timer> <i_på> <område>" | ||
- "<timer_decrease> <timer_duration> fra [min] {timer_name:name}[ |-]<timer>" | ||
- "<timer_decrease> <timer_duration> fra [min] <timer> <med_navnet> {timer_name:name}" | ||
- sentences: | ||
- "<timer_decrease> [min] <timer> med <timer_duration>" | ||
- "<timer_decrease> [min] <timer_start>[s] <timer> med <timer_duration>" | ||
- "<timer_decrease> [min] <timer> på <timer_start> med <timer_duration>" | ||
- "<timer_decrease> [min] <område>[ |-]<timer> med <timer_duration>" | ||
- "<timer_decrease> [min] <timer> <i_på> <område> med <timer_duration>" | ||
- "<timer_decrease> [min] {timer_name:name}[ |-]<timer> med <timer_duration>" | ||
- "<timer_decrease> [min] <timer> <med_navnet> {timer_name:name} med <timer_duration>" |
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,21 @@ | ||
--- | ||
language: da | ||
intents: | ||
HassIncreaseTimer: | ||
data: | ||
- sentences: | ||
- "<timer_add> <timer_duration> til [min] <timer>" | ||
- "<timer_add> <timer_duration> til [min] <timer_start>[s] <timer>" | ||
- "<timer_add> <timer_duration> til [min] <timer> på <timer_start>" | ||
- "<timer_add> <timer_duration> til [min] <område> <timer>" | ||
- "<timer_add> <timer_duration> til [min] <timer> <i_på> <område>" | ||
- "<timer_add> <timer_duration> til [min] {timer_name:name}[ |-]<timer>" | ||
- "<timer_add> <timer_duration> til [min] <timer> <med_navnet> {timer_name:name}" | ||
- sentences: | ||
- "<timer_add> [min] <timer> med <timer_duration>" | ||
- "<timer_add> [min] <timer_start>[s] <timer> med <timer_duration>" | ||
- "<timer_add> [min] <timer> på <timer_start> med <timer_duration>" | ||
- "<timer_add> [min] <område>[ |-]<timer> med <timer_duration>" | ||
- "<timer_add> [min] <timer> <i_på> <område> med <timer_duration>" | ||
- "<timer_add> [min] {timer_name:name}[ |-]<timer> med <timer_duration>" | ||
- "<timer_add> [min] <timer> <med_navnet> {timer_name:name} med <timer_duration>" |
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
--- | ||
language: da | ||
intents: | ||
HassPauseTimer: | ||
data: | ||
- sentences: | ||
- "<timer_pause> [min] <timer>" | ||
- "<timer_pause> [min] <timer_start> <timer>" | ||
- "<timer_pause> [min] <timer> <i_på> <timer_start>" | ||
- "<timer_pause> [min] {area} <timer>" | ||
- "<timer_pause> [min] <timer> <i_på> {area}" | ||
- "<timer_pause> [min] {timer_name:name} <timer>" | ||
- "<timer_pause> [min] <timer> (kaldet|ved navn) {timer_name:name}" | ||
- "<timer_pause> [min] <timer_start>[s] <timer>" | ||
- "<timer_pause> [min] <timer> på <timer_start>" | ||
- "<timer_pause> [min] {area}[ |-]<timer>" | ||
- "<timer_pause> [min] <timer> <i_på> <område>" | ||
- "<timer_pause> [min] {timer_name:name}[ |-]<timer>" | ||
- "<timer_pause> [min] <timer> <med_navnet> {timer_name:name}" |
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
--- | ||
language: da | ||
intents: | ||
HassUnpauseTimer: | ||
data: | ||
- sentences: | ||
- "<timer_unpause> [min] <timer>" | ||
- "<timer_unpause> [min] <timer_start> <timer>" | ||
- "<timer_unpause> [min] <timer> <i_på> <timer_start>" | ||
- "<timer_unpause> [min] {area} <timer>" | ||
- "<timer_unpause> [min] <timer> <i_på> {area}" | ||
- "<timer_unpause> [min] {timer_name:name} <timer>" | ||
- "<timer_unpause> [min] <timer> (kaldet|ved navn) {timer_name:name}" | ||
- "<timer_unpause> [min] <timer_start>[s] <timer>" | ||
- "<timer_unpause> [min] <timer> på <timer_start>" | ||
- "<timer_unpause> [min] {area}[ |-]<timer>" | ||
- "<timer_unpause> [min] <timer> <i_på> <område>" | ||
- "<timer_unpause> [min] {timer_name:name}[ |-]<timer>" | ||
- "<timer_unpause> [min] <timer> <med_navnet> {timer_name:name}" |
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,53 @@ | ||
--- | ||
language: da | ||
tests: | ||
- sentences: | ||
- "træk 5 minutter fra min nedtælling" | ||
- "træk 5 minutter fra nedtællingen" | ||
- "reducer min nedtælling med 5 minutter" | ||
- "sænk nedtællingen med 5 minutter" | ||
intent: | ||
name: HassDecreaseTimer | ||
slots: | ||
minutes: 5 | ||
response: 5 minutter trukket fra nedtællingen | ||
|
||
- sentences: | ||
- "træk 5 minutter fra min 1 times nedtælling" | ||
- "træk 5 minutter fra min nedtælling på 1 time" | ||
- "reducer min 1 times nedtælling med 5 minutter" | ||
- "reducer min nedtælling på 1 time med 5 minutter" | ||
- "sænk nedtællingen på 1 time med 5 minutter" | ||
intent: | ||
name: HassDecreaseTimer | ||
slots: | ||
minutes: 5 | ||
start_hours: 1 | ||
response: 5 minutter trukket fra nedtællingen | ||
|
||
- sentences: | ||
- "træk 5 minutter fra min pizza nedtælling" | ||
- "træk 5 minutter fra min nedtælling med navnet pizza" | ||
- "træk 5 minutter fra timeren kaldet pizza" | ||
- "reducer pizza nedtællingen med 5 minutter" | ||
- "reducer nedtællingen med navnet pizza med 5 minutter" | ||
intent: | ||
name: HassDecreaseTimer | ||
slots: | ||
minutes: 5 | ||
name: | ||
- "pizza " | ||
- "pizza" | ||
response: 5 minutter trukket fra pizza nedtællingen | ||
|
||
- sentences: | ||
- "træk 5 minutter fra min køkken nedtælling" | ||
- "træk 5 minutter fra min nedtælling i Køkkenet" | ||
- "reducer min køkken-timer med 5 minutter" | ||
- "reducer min nedtælling i køkkenet med 5 minutter" | ||
intent: | ||
name: HassDecreaseTimer | ||
slots: | ||
minutes: 5 | ||
area: Køkken | ||
response: 5 minutter trukket fra nedtællingen |
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,53 @@ | ||
--- | ||
language: da | ||
tests: | ||
- sentences: | ||
- "læg 5 minutter til min nedtælling" | ||
- "læg 5 minutter til nedtællingen" | ||
- "øg min nedtælling med 5 minutter" | ||
- "øg nedtællingen med 5 minutter" | ||
intent: | ||
name: HassIncreaseTimer | ||
slots: | ||
minutes: 5 | ||
response: 5 minutter lagt til nedtællingen | ||
|
||
- sentences: | ||
- "læg 5 minutter til min 1 times nedtælling" | ||
- "læg 5 minutter til min nedtælling på 1 time" | ||
- "øg min 1 times nedtælling med 5 minutter" | ||
- "øg min nedtælling på 1 time med 5 minutter" | ||
- "øg nedtællingen på 1 time med 5 minutter" | ||
intent: | ||
name: HassIncreaseTimer | ||
slots: | ||
minutes: 5 | ||
start_hours: 1 | ||
response: 5 minutter lagt til nedtællingen | ||
|
||
- sentences: | ||
- "læg 5 minutter til min pizza nedtælling" | ||
- "læg 5 minutter til min nedtælling med navnet pizza" | ||
- "læg 5 minutter til timeren kaldet pizza" | ||
- "øg pizza nedtællingen med 5 minutter" | ||
- "øg nedtællingen med navnet pizza med 5 minutter" | ||
intent: | ||
name: HassIncreaseTimer | ||
slots: | ||
minutes: 5 | ||
name: | ||
- "pizza " | ||
- "pizza" | ||
response: 5 minutter lagt til pizza nedtællingen | ||
|
||
- sentences: | ||
- "læg 5 minutter til min køkken nedtælling" | ||
- "læg 5 minutter til min nedtælling i Køkkenet" | ||
- "øg min køkken-timer med 5 minutter" | ||
- "øg min nedtælling i køkkenet med 5 minutter" | ||
intent: | ||
name: HassIncreaseTimer | ||
slots: | ||
minutes: 5 | ||
area: Køkken | ||
response: 5 minutter lagt til nedtællingen |
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