Skip to content

Commit

Permalink
[BG] add HassRespond, HassSetPosition, HassVacuumStart, HassVacuumRet…
Browse files Browse the repository at this point in the history
…urnToBase (#2811)

* [BG] add HassRespond, HassSetPosition, HassVacuumStart and HassVacuumReturnToBase

* Brakets fix

* One word added

---------

Co-authored-by: Hristo Atanasov <gh0s7@rusenci.com>
  • Loading branch information
kyutov and hristo-atanasov authored Dec 31, 2024
1 parent 6aac414 commit ec5ea02
Show file tree
Hide file tree
Showing 14 changed files with 168 additions and 0 deletions.
9 changes: 9 additions & 0 deletions responses/bg/HassRespond.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: bg
responses:
intents:
HassRespond:
hello: "Здравей от Home Assistant."
listening: "Не, записвам само когато кажеш ключовата дума."
data: "Твоите данни се изпращат до твоя Home Assistant сървър."
commands: "За да разбереш какво можеш да ме попиташ, посети сайта home черта assistant точка I.O. наклонена черта voice долна черта commands."
creator: "Създаден съм от невероятната общност на Home Assistant, съставена от ентусиасти от цял свят."
5 changes: 5 additions & 0 deletions responses/bg/HassSetPosition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: bg
responses:
intents:
HassSetPosition:
default: "Настроих позицията"
5 changes: 5 additions & 0 deletions responses/bg/HassVacuumReturnToBase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: bg
responses:
intents:
HassVacuumReturnToBase:
default: "{{ slots.name }} се прибира"
5 changes: 5 additions & 0 deletions responses/bg/HassVacuumStart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: bg
responses:
intents:
HassVacuumStart:
default: "Стартирах почистването"
7 changes: 7 additions & 0 deletions sentences/bg/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,12 @@ lists:
from: 0
to: 100

position:
range:
type: "percentage"
from: 0
to: 100

expansion_rules:
name: "{name}"
area: "[в|на|във] {area}"
Expand Down Expand Up @@ -370,6 +376,7 @@ expansion_rules:
timer_start_hours: "{timer_hours:start_hours} час[а][ [и ]{timer_minutes:start_minutes} минут(а|и)][ [и ]{timer_seconds:start_seconds} секунд(а|и)]"
timer_start: "<timer_start_seconds>|<timer_start_minutes>|<timer_start_hours>"
volume: "{volume:volume_level}[([ ]%)| процент[а]]"
position: "{position}[%| процент[а]]"

skip_words:
- "извинявай"
Expand Down
15 changes: 15 additions & 0 deletions sentences/bg/cover_HassSetPosition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
language: bg
intents:
HassSetPosition:
data:
- sentences:
- "(<set>|<open>|<close>) [позицията на] <name> на <position>"
requires_context:
domain: cover
slots:
domain: cover

- sentences:
- "(<set>|<open>|<close>) [позицията на] {cover_classes:device_class} [в|във] <area> на <position>"
slots:
domain: cover
23 changes: 23 additions & 0 deletions sentences/bg/homeassistant_HassRespond.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: "bg"
intents:
HassRespond:
data:
- sentences:
- "(здравей) [home assistant]"
response: hello

- sentences:
- "винаги ли [ме|ни] (слушаш|записваш)"
response: listening

- sentences:
- "къде (отиват|се изпращат) (моите данни|данните ми)"
response: data

- sentences:
- "какво мога да [ти|те] (кажа|[по]питам)"
response: commands

- sentences:
- "кой те [е] (направи[л]|създа(л|де))"
response: creator
8 changes: 8 additions & 0 deletions sentences/bg/vacuum_HassVacuumReturnToBase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: bg
intents:
HassVacuumReturnToBase:
data:
- sentences:
- "(върни|прибери) <name> [на базата]"
requires_context:
domain: vacuum
8 changes: 8 additions & 0 deletions sentences/bg/vacuum_HassVacuumStart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: bg
intents:
HassVacuumStart:
data:
- sentences:
- "(стартирай|активирай|пусни) <name>"
requires_context:
domain: vacuum
4 changes: 4 additions & 0 deletions tests/bg/_fixtures.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,10 @@ entities:
attributes:
volume_level: "50"

- name: "Роби"
id: "vacuum.robby"
state: "idle"

timers:
- is_active: false
start_hours: 1
Expand Down
24 changes: 24 additions & 0 deletions tests/bg/cover_HassSetPosition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: bg
tests:
- sentences:
- "затвори лявата завеса на 50%"
- "настрой позицията на лявата завеса на 50%"
intent:
name: HassSetPosition
slots:
domain: cover
name: "лявата завеса"
position: 50
response: "Настроих позицията"

- sentences:
- "настрой позицията на завесите в хола на 50%"
- "отвори завесите в хола на 50%"
intent:
name: HassSetPosition
slots:
domain: cover
device_class: "curtain"
area: "хола"
position: 50
response: "Настроих позицията"
36 changes: 36 additions & 0 deletions tests/bg/homeassistant_HassRespond.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
language: bg
tests:
- sentences:
- "Здравей home assistant"
intent:
name: HassRespond
response: "Здравей от Home Assistant."

- sentences:
- "винаги ли ме записваш?"
- "винаги ли ни слушаш?"
intent:
name: HassRespond
response: "Не, записвам само когато кажеш ключовата дума."

- sentences:
- "къде отиват данните ми?"
- "къде се изпращат моите данни"
intent:
name: HassRespond
response: "Твоите данни се изпращат до твоя Home Assistant сървър."

- sentences:
- "какво мога да те питам?"
- "какво мога да ти кажа"
intent:
name: HassRespond
response: "За да разбереш какво можеш да ме попиташ, посети сайта home черта assistant точка I.O. наклонена черта voice долна черта commands."

- sentences:
- "кой те е създал?"
- "кой те създаде?"
- "кой те е направил?"
intent:
name: HassRespond
response: "Създаден съм от невероятната общност на Home Assistant, съставена от ентусиасти от цял свят."
10 changes: 10 additions & 0 deletions tests/bg/vacuum_HassVacuumReturnToBase.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: bg
tests:
- sentences:
- "върни Роби на базата"
- "прибери Роби на базата"
intent:
name: HassVacuumReturnToBase
slots:
name: "Роби"
response: "Роби се прибира"
9 changes: 9 additions & 0 deletions tests/bg/vacuum_HassVacuumStart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: bg
tests:
- sentences:
- "стартирай Роби"
intent:
name: HassVacuumStart
slots:
name: "Роби"
response: "Стартирах почистването"

0 comments on commit ec5ea02

Please sign in to comment.