Skip to content

Commit

Permalink
Add support for Timer pause/unpause in danish (#2896)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbhsn4 authored Jan 22, 2025
1 parent 4303165 commit 15814ca
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 1 deletion.
5 changes: 5 additions & 0 deletions responses/da/HassPauseTimer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: da
responses:
intents:
HassPauseTimer:
default: "Nedtælling pauset"
5 changes: 5 additions & 0 deletions responses/da/HassUnpauseTimer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: da
responses:
intents:
HassUnpauseTimer:
default: "Nedtælling genoptaget"
2 changes: 1 addition & 1 deletion sentences/da/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ expansion_rules:
timer: "(nedtælling | timer)"
timers: "(nedtællinger | timere)"
timer_pause: "(pause|[midlertidig ](stop|stands)[e])"
timer_unpause: "(fortsæt|genoptage)"
timer_unpause: "(fortsæt|genoptag[e])"
timer_add: "(læg til|øge)"
timer_decrease: "(sænk|trække fra|reducer)"
timer_set: "(sæt|start|læg|opret|lav)[ en]"
Expand Down
12 changes: 12 additions & 0 deletions sentences/da/homeassistant_HassPauseTimer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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}"
12 changes: 12 additions & 0 deletions sentences/da/homeassistant_HassUnpauseTimer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
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}"
37 changes: 37 additions & 0 deletions tests/da/homeassistant_HassPauseTimer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
language: da
tests:
- sentences:
- "pause nedtælling"
- "midlertidig stop min timer"
intent:
name: HassPauseTimer
response: Nedtælling pauset

- sentences:
- "pause 1 time nedtælling"
- "stands min timer på 1 time"
intent:
name: HassPauseTimer
slots:
start_hours: 1
response: Nedtælling pauset

- sentences:
- "pause pizza nedtælling"
- "midlertidig stop min timer kaldet pizza"
intent:
name: HassPauseTimer
slots:
name:
- "pizza "
- "pizza"
response: Nedtælling pauset

- sentences:
- "pause køkken timer"
- "midlertidig stands nedtælling i køkken"
intent:
name: HassPauseTimer
slots:
area: Køkken
response: Nedtælling pauset
37 changes: 37 additions & 0 deletions tests/da/homeassistant_HassUnpauseTimer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
language: da
tests:
- sentences:
- "fortsæt nedtælling"
- "genoptag min timer"
intent:
name: HassUnpauseTimer
response: Nedtælling genoptaget

- sentences:
- "fortsæt 1 time nedtælling"
- "genoptag nedtælling på 1 time"
intent:
name: HassUnpauseTimer
slots:
start_hours: 1
response: Nedtælling genoptaget

- sentences:
- "fortsæt pizza timer"
- "genoptag nedtælling ved navn pizza"
intent:
name: HassUnpauseTimer
slots:
name:
- "pizza "
- "pizza"
response: Nedtælling genoptaget

- sentences:
- "genoptag køkken timer"
- "fortsæt nedtælling i køkken"
intent:
name: HassUnpauseTimer
slots:
area: Køkken
response: Nedtælling genoptaget

0 comments on commit 15814ca

Please sign in to comment.