diff --git a/responses/uk/HassClimateGetTemperature.yaml b/responses/uk/HassClimateGetTemperature.yaml new file mode 100644 index 0000000000..0dc2d1c95e --- /dev/null +++ b/responses/uk/HassClimateGetTemperature.yaml @@ -0,0 +1,6 @@ +language: uk +responses: + intents: + HassClimateGetTemperature: + success: + - "{{ state.state }} градусів" diff --git a/sentences/uk/_common.yaml b/sentences/uk/_common.yaml new file mode 100644 index 0000000000..ba94102260 --- /dev/null +++ b/sentences/uk/_common.yaml @@ -0,0 +1,55 @@ +language: uk +responses: + errors: + no_intent: "Вибачте, я цього не розумію" + no_area: "Немає приміщення під назвою {{ area }}" + no_domain: "Приміщення {{ area }} не містить {{ domain }}" + no_device_class: "Приміщення {{ area }} не містить {{ device_class }}" + no_entity: "Немає пристрою чи сутності під назвою {{ entity }}" + handle_error: "Неочікувана помилка виникла під час виконання запиту" +lists: + color: + values: + - in: "білий" + out: "white" + - in: "чорний" + out: "black" + - in: "червоний" + out: "red" + - in: "помаранчевий" + out: "orange" + - in: "жовтий" + out: "yellow" + - in: "зелений" + out: "green" + - in: "синій" + out: "blue" + - in: "рожевий" + out: "purple" + - in: "коричневий" + out: "brown" + brightness: + range: + type: "percentage" + from: 0 + to: 100 + temperature: + range: + type: "temperature" + from: 0 + to: 100 + temperature_unit: + values: + - in: "c | цельсію | за цельсієм" + out: "celsius" + - in: "f | фаренгейту | за фаренгейтом" + out: "fahrenheit" +expansion_rules: + name: "{name}" + area: "[в | у | на] {area}" + ввімкни: "((в | у)вімкни | включи)" + вимкни: "(вимкни | виключи )" + зміни: "(зміни | встанови | зроби)" + brightness: "{brightness:brightness_pct} [відсотків]" +skip_words: + - "будь ласка" diff --git a/sentences/uk/climate_HassClimateGetTemperature.yaml b/sentences/uk/climate_HassClimateGetTemperature.yaml new file mode 100644 index 0000000000..ddad6a634b --- /dev/null +++ b/sentences/uk/climate_HassClimateGetTemperature.yaml @@ -0,0 +1,5 @@ +language: uk +intents: + HassClimateGetTemperature: + data: + - sentences: [] diff --git a/sentences/uk/climate_HassClimateSetTemperature.yaml b/sentences/uk/climate_HassClimateSetTemperature.yaml new file mode 100644 index 0000000000..113d7fbefa --- /dev/null +++ b/sentences/uk/climate_HassClimateSetTemperature.yaml @@ -0,0 +1,5 @@ +language: uk +intents: + HassClimateSetTemperature: + data: + - sentences: [] diff --git a/sentences/uk/cover_HassCloseCover.yaml b/sentences/uk/cover_HassCloseCover.yaml new file mode 100644 index 0000000000..28cd2d10c6 --- /dev/null +++ b/sentences/uk/cover_HassCloseCover.yaml @@ -0,0 +1,5 @@ +language: uk +intents: + HassCloseCover: + data: + - sentences: [] diff --git a/sentences/uk/cover_HassOpenCover.yaml b/sentences/uk/cover_HassOpenCover.yaml new file mode 100644 index 0000000000..266f50268d --- /dev/null +++ b/sentences/uk/cover_HassOpenCover.yaml @@ -0,0 +1,5 @@ +language: uk +intents: + HassOpenCover: + data: + - sentences: [] diff --git a/sentences/uk/fan_HassTurnOff.yaml b/sentences/uk/fan_HassTurnOff.yaml new file mode 100644 index 0000000000..797c2f952f --- /dev/null +++ b/sentences/uk/fan_HassTurnOff.yaml @@ -0,0 +1,8 @@ +language: uk +intents: + HassTurnOff: + data: + - sentences: [] + slots: + domain: fan + name: all diff --git a/sentences/uk/fan_HassTurnOn.yaml b/sentences/uk/fan_HassTurnOn.yaml new file mode 100644 index 0000000000..bab2539d6c --- /dev/null +++ b/sentences/uk/fan_HassTurnOn.yaml @@ -0,0 +1,8 @@ +language: uk +intents: + HassTurnOn: + data: + - sentences: [] + slots: + domain: fan + name: all diff --git a/sentences/uk/homeassistant_HassTurnOff.yaml b/sentences/uk/homeassistant_HassTurnOff.yaml new file mode 100644 index 0000000000..8984cceecb --- /dev/null +++ b/sentences/uk/homeassistant_HassTurnOff.yaml @@ -0,0 +1,6 @@ +language: uk +intents: + HassTurnOff: + data: + - sentences: + - "<вимкни> " diff --git a/sentences/uk/homeassistant_HassTurnOn.yaml b/sentences/uk/homeassistant_HassTurnOn.yaml new file mode 100644 index 0000000000..702566057d --- /dev/null +++ b/sentences/uk/homeassistant_HassTurnOn.yaml @@ -0,0 +1,6 @@ +language: uk +intents: + HassTurnOn: + data: + - sentences: + - "<ввімкни> " diff --git a/sentences/uk/light_HassLightSet.yaml b/sentences/uk/light_HassLightSet.yaml new file mode 100644 index 0000000000..f5a2db79be --- /dev/null +++ b/sentences/uk/light_HassLightSet.yaml @@ -0,0 +1,22 @@ +language: uk +intents: + HassLightSet: + data: + # brightness + - sentences: + - "<зміни> [яскравість] на " + - "<зміни> на [яскравості]" + - sentences: + - "<зміни> яскравість [світла] [на] " + - "<зміни> світло на [яскравості]" + slots: + name: "all" + # color + - sentences: + - "<зміни> колір на {color}" + - "<зміни> [на] {color} [колір]" + - "<зміни> [на] {color} колір " + - sentences: + - <зміни> [колір] світл(а|о) на {color} + slots: + name: "all" diff --git a/sentences/uk/light_HassTurnOff.yaml b/sentences/uk/light_HassTurnOff.yaml new file mode 100644 index 0000000000..6610ce4aae --- /dev/null +++ b/sentences/uk/light_HassTurnOff.yaml @@ -0,0 +1,9 @@ +language: uk +intents: + HassTurnOff: + data: + - sentences: + - "<вимкни> [все] світло " + - "<вимкни> [все] світло" + slots: + domain: "light" diff --git a/sentences/uk/light_HassTurnOn.yaml b/sentences/uk/light_HassTurnOn.yaml new file mode 100644 index 0000000000..96255bab11 --- /dev/null +++ b/sentences/uk/light_HassTurnOn.yaml @@ -0,0 +1,9 @@ +language: uk +intents: + HassTurnOn: + data: + - sentences: + - "<ввімкни> [все] світло " + - "<ввімкни> [все] світло" + slots: + domain: "light" diff --git a/tests/uk/_fixtures.yaml b/tests/uk/_fixtures.yaml new file mode 100644 index 0000000000..1a359149a2 --- /dev/null +++ b/tests/uk/_fixtures.yaml @@ -0,0 +1,26 @@ +language: uk +areas: +- name: Кухн(я|і) + id: kitchen +- name: Гостинн(а|ій) + id: living_room +- name: Спальн(я|і) + id: bedroom +- name: Гараж[і] + id: garage +entities: +- name: Ламп(а|у|и) + id: light.bedroom_lamp + area: bedroom +- name: Kitchen Switch + id: switch.kitchen + area: kitchen +- name: Ceiling Fan + id: fan.ceiling + area: living_room +- name: Настільн(а|у) ламп(а|у) + id: light.table_light + area: garage +- name: Кондиціонер + id: climate.ac + area: living_room diff --git a/tests/uk/climate_HassClimateGetTemperature.yaml b/tests/uk/climate_HassClimateGetTemperature.yaml new file mode 100644 index 0000000000..213833c1d4 --- /dev/null +++ b/tests/uk/climate_HassClimateGetTemperature.yaml @@ -0,0 +1,6 @@ +language: uk +tests: +- sentences: [] + intent: + name: HassClimateGetTemperature + slots: {} diff --git a/tests/uk/climate_HassClimateSetTemperature.yaml b/tests/uk/climate_HassClimateSetTemperature.yaml new file mode 100644 index 0000000000..87a7889edf --- /dev/null +++ b/tests/uk/climate_HassClimateSetTemperature.yaml @@ -0,0 +1,6 @@ +language: uk +tests: +- sentences: [] + intent: + name: HassClimateSetTemperature + slots: {} diff --git a/tests/uk/cover_HassCloseCover.yaml b/tests/uk/cover_HassCloseCover.yaml new file mode 100644 index 0000000000..93a0b873c0 --- /dev/null +++ b/tests/uk/cover_HassCloseCover.yaml @@ -0,0 +1,6 @@ +language: uk +tests: +- sentences: [] + intent: + name: HassCloseCover + slots: {} diff --git a/tests/uk/cover_HassOpenCover.yaml b/tests/uk/cover_HassOpenCover.yaml new file mode 100644 index 0000000000..03abe90362 --- /dev/null +++ b/tests/uk/cover_HassOpenCover.yaml @@ -0,0 +1,6 @@ +language: uk +tests: +- sentences: [] + intent: + name: HassOpenCover + slots: {} diff --git a/tests/uk/fan_HassTurnOff.yaml b/tests/uk/fan_HassTurnOff.yaml new file mode 100644 index 0000000000..7f8265931d --- /dev/null +++ b/tests/uk/fan_HassTurnOff.yaml @@ -0,0 +1,6 @@ +language: uk +tests: +- sentences: [] + intent: + name: HassTurnOff + slots: {} diff --git a/tests/uk/fan_HassTurnOn.yaml b/tests/uk/fan_HassTurnOn.yaml new file mode 100644 index 0000000000..c1aa87d06e --- /dev/null +++ b/tests/uk/fan_HassTurnOn.yaml @@ -0,0 +1,6 @@ +language: uk +tests: +- sentences: [] + intent: + name: HassTurnOn + slots: {} diff --git a/tests/uk/homeassistant_HassTurnOff.yaml b/tests/uk/homeassistant_HassTurnOff.yaml new file mode 100644 index 0000000000..7c7538b5e4 --- /dev/null +++ b/tests/uk/homeassistant_HassTurnOff.yaml @@ -0,0 +1,9 @@ +language: uk +tests: +- sentences: + - "Вимкни кондиціонер" + - "Виключи, будь ласка, кондиціонер" + intent: + name: "HassTurnOff" + slots: + name: "climate.ac" diff --git a/tests/uk/homeassistant_HassTurnOn.yaml b/tests/uk/homeassistant_HassTurnOn.yaml new file mode 100644 index 0000000000..59c8848404 --- /dev/null +++ b/tests/uk/homeassistant_HassTurnOn.yaml @@ -0,0 +1,10 @@ +language: uk +tests: +- sentences: + - "Ввімкни, будь ласка, настільну лампу" + - "Включи настільну лампу" + - "Увімкни настільну лампу" + intent: + name: "HassTurnOn" + slots: + name: "light.table_light" diff --git a/tests/uk/light_HassLightSet.yaml b/tests/uk/light_HassLightSet.yaml new file mode 100644 index 0000000000..a2b9a57b82 --- /dev/null +++ b/tests/uk/light_HassLightSet.yaml @@ -0,0 +1,36 @@ +language: uk +tests: + # brightness + - sentences: + - "зміни яскравість лампи на 50%" + - "встанови лампу на 50 відсотків" + intent: + name: "HassLightSet" + slots: + brightness_pct: 50 + name: light.bedroom_lamp + - sentences: + - "зміни яскравість світла в спальні на 50%" + - "зроби яскравість у спальні 50, будь ласка" + - "встанови світло спальні на 50 відсотків яскравості" + intent: + name: "HassLightSet" + slots: + brightness_pct: 50 + area: "bedroom" + # color + - sentences: + - "зміни лампу на жовтий колір" + - "зміни на жовтий колір лампи" + intent: + name: "HassLightSet" + slots: + color: "yellow" + name: "light.bedroom_lamp" + - sentences: + - "зміни колір світла в спальні на жовтий" + intent: + name: "HassLightSet" + slots: + color: "yellow" + area: bedroom diff --git a/tests/uk/light_HassTurnOff.yaml b/tests/uk/light_HassTurnOff.yaml new file mode 100644 index 0000000000..bc86cdc2ce --- /dev/null +++ b/tests/uk/light_HassTurnOff.yaml @@ -0,0 +1,11 @@ +language: uk +tests: + - sentences: + - "вимкни все світло у кухні" + - "виключи світло в кухні" + - "вимкни на кухні світло" + intent: + name: "HassTurnOff" + slots: + domain: light + area: kitchen diff --git a/tests/uk/light_HassTurnOn.yaml b/tests/uk/light_HassTurnOn.yaml new file mode 100644 index 0000000000..94f6ee646d --- /dev/null +++ b/tests/uk/light_HassTurnOn.yaml @@ -0,0 +1,11 @@ +language: uk +tests: + - sentences: + - "ввімкни все світло у кухні" + - "включи світло в кухні" + - "увімкни на кухні світло" + intent: + name: "HassTurnOn" + slots: + domain: light + area: kitchen