Skip to content

Commit

Permalink
[SR] Add Vacuum (#2789)
Browse files Browse the repository at this point in the history
* [SR] Add Vacuum

* [SR| Vacuum fix failing tests
  • Loading branch information
ddxic authored Dec 29, 2024
1 parent c4dd1b5 commit 8136b47
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 0 deletions.
5 changes: 5 additions & 0 deletions responses/sr/HassVacuumReturnToBase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: sr
responses:
intents:
HassVacuumReturnToBase:
default: "Враћа се"
5 changes: 5 additions & 0 deletions responses/sr/HassVacuumStart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: sr
responses:
intents:
HassVacuumStart:
default: "Започео"
2 changes: 2 additions & 0 deletions sentences/sr/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ expansion_rules:
активирај: "упали[ш|те|мо]|укључи[ш|те|мо]|отвори[ш|те|мо]|подигни[ш|те|мо]"
деактивирај: "угаси[ш|те|мо]|искључи[ш|те|мо]|затвори[ш|те|мо]|спусти[ш|те|мо]"
подеси: "подеси[ш]|намести[ш]|постави[ш]|сетуј[еш]|промени[ш]|појачај|увећај|смањи|умањи"
очисти: "(усисаj|очисти)"
спрат: "{floor}"
skip_words:
- "молим [те|вас] [да]"
- "може(ш|те) [ли] [да]"
Expand Down
8 changes: 8 additions & 0 deletions sentences/sr/vacuum_HassVacuumReturnToBase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: sr
intents:
HassVacuumReturnToBase:
data:
- sentences:
- "врати <име> [у базу]"
requires_context:
domain: vacuum
10 changes: 10 additions & 0 deletions sentences/sr/vacuum_HassVacuumStart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: sr
intents:
HassVacuumStart:
data:
- sentences:
- "Покрени <име>"
requires_context:
domain: vacuum
- sentences:
- <очисти> <спрат>
15 changes: 15 additions & 0 deletions tests/sr/_fixtures.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
language: sr
floors:
- name: "На спрату"
id: "upstairs_id"
- name: "Приземље"
id: "ground_floor_id"
- name: "Први спрат"
id: "first_floor_id"
- name: "Други спрат"
id: "second_floor_id"
- name: "Подрум"
id: "basement_id"
areas:
- name: "купатил(о|у)"
id: bathroom
Expand Down Expand Up @@ -89,3 +100,7 @@ entities:
- name: "данас"
id: "todo.today"
state: ""
- name: "Roborock"
id: "vacuum.roborock"
area: "living_room"
state: "idle"
9 changes: 9 additions & 0 deletions tests/sr/vacuum_HassVacuumReturnToBase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: sr
tests:
- sentences:
- "Врати Roborock у базу"
intent:
name: HassVacuumReturnToBase
slots:
name: "Roborock"
response: "Враћа се"
17 changes: 17 additions & 0 deletions tests/sr/vacuum_HassVacuumStart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: sr
tests:
- sentences:
- "покрени Roborock"
intent:
name: HassVacuumStart
slots:
name: "Roborock"
response: "Започео"

- sentences:
- "очисти први спрат"
intent:
name: HassVacuumStart
slots:
floor: "Први спрат"
response: "Започео"

0 comments on commit 8136b47

Please sign in to comment.