Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions responses/mn/HassGetWeather.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: mn
responses:
intents:
HassGetWeather:
default: >
{% set weather_condition = {
'clear': 'ба цэлмэг',
'clear-night': 'ба цэлмэг шөнө',
'cloudy': 'ба үүлэрхэг',
'exceptional': 'ба онцгой',
'fog': 'манантай',
'hail': 'мөндөртэй',
'lightning': 'аянга цахилгаантай',
'lightning-rainy': 'аянга, бороотой',
'partlycloudy': 'ба хэсэгчлэн үүлэрхэг',
'pouring': 'аадар бороотой',
'rainy': 'ба бороотой',
'snowy': 'ба цастай',
'snowy-rainy': 'цас, бороотой',
'sunny': 'ба нарлаг',
'windy': 'ба салхитай',
'windy-variant': 'салхитай, үүлэрхэг'
} %}
{{ state.attributes.get('temperature') }} {{ state.attributes.get('temperature_unit') }} {{ weather_condition.get((state.state | string).lower(), "") }}
14 changes: 14 additions & 0 deletions sentences/mn/_fixtures.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: "mn"
entities:
- name: "London"
id: "weather.london"
state: "rainy"
attributes:
temperature: "47"
temperature_unit: "°F"
- name: "Los Angeles"
id: "weather.los_angeles"
state: "clear"
attributes:
temperature: "76"
temperature_unit: "°F"
18 changes: 17 additions & 1 deletion sentences/mn/climate_HassClimateGetTemperature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,20 @@ language: mn
intents:
HassClimateGetTemperature:
data:
- sentences: []
- sentences:
- "Хэдэн [de] [одоо] хэм [<in>] <area>"
- "Хэр <дулаан> is het [<in>] <area>"
- "Хэдэн <area>[ ]хэм"
- sentences:
- "Хэдэн [de] [одоо] <name>[ ]хэм"
- "Wat is [de] [huidige] temperatuur [van|in] [de] <name>"
- "(hoe [өндөр|бага|<warm>]|хэдэн хэм) (байгаа) [de] <name> [тохируул]"
requires_context:
domain: "climate"
- sentences:
- "Хэдэн хэм байна вэ [<here>]"
- "Хэдэн хэм <here> байна вэ"
- "Хэр (дулаан|халуун|хүйтэн|сэрүүн) байна вэ [<here>]"
requires_context:
area:
slot: true
9 changes: 9 additions & 0 deletions sentences/mn/weather_HassGetWeather.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: mn
intents:
HassGetWeather:
data:
- sentences:
- "Цаг агаар ямар байна"
- "Цаг агаар ямархуу байна"
- "Лондонгийн цаг агаар ямар байна"
- "Лос Анжелесийн цаг агаар ямар байна"
33 changes: 14 additions & 19 deletions tests/mn/_fixtures.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
language: mn
areas:
- name: "гал тогоо"
id: kitchen
- name: "зочны өрөө"
id: living_room
- name: "унтлагын өрөө"
id: bedroom
- name: "гараж"
id: garage
language: "mn"
entities:
- name: "унтлагын өрөөний гэрэл"
id: light.bedroom_lamp
area: bedroom
- name: "гал тогооны унтраалга"
id: switch.kitchen
area: kitchen
- name: "таазны сэнс"
id: fan.ceiling
area: living_room
- name: "London"
id: "weather.london"
state: "rainy"
attributes:
temperature: "47"
temperature_unit: "°F"

- name: "Los Angeles"
id: "weather.los_angeles"
state: "clear"
attributes:
temperature: "76"
temperature_unit: "°F"
23 changes: 23 additions & 0 deletions tests/mn/responses_mn_HassGetWeather_Version2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: mn
responses:
HassGetWeather:
default: >
{% set weather_condition = {
'clear': 'ба цэлмэг',
'clear-night': 'ба цэлмэг шөнө',
'cloudy': 'ба үүлэрхэг',
'exceptional': 'ба онцгой',
'fog': 'манантай',
'hail': 'мөндөртэй',
'lightning': 'аянга цахилгаантай',
'lightning-rainy': 'аянга, бороотой',
'partlycloudy': 'ба хэсэгчлэн үүлэрхэг',
'pouring': 'аадар бороотой',
'rainy': 'ба бороотой',
'snowy': 'ба цастай',
'snowy-rainy': 'цас, бороотой',
'sunny': 'ба нарлаг',
'windy': 'ба салхитай',
'windy-variant': 'салхитай, үүлэрхэг'
} %}
{{ state.attributes.get('temperature') }} {{ state.attributes.get('temperature_unit') }} {{ weather_condition.get((state.state | string).lower(), "") }}
9 changes: 9 additions & 0 deletions tests/mn/tests_mn__fixtures_Version2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: "mn"
tests:
- sentences:
- "Гал тогооны гэрлийг асаа"
intent:
name: HassTurnOn
slots:
name: "Гал тогооны гэрэл"
response: "Гэрэл аслаа."
26 changes: 26 additions & 0 deletions tests/mn/weather_HassGetWeather.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
language: mn
tests:
- sentences:
- "Цаг агаар ямар байна?"
- "Цаг агаар ямархуу байна"
intent:
name: HassGetWeather
response: 47 °F ба бороотой

- sentences:
- "Лондонгийн цаг агаар ямар байна?"
- "Лондон дахь цаг агаар ямархуу байна"
intent:
name: HassGetWeather
slots:
name: London
response: 47 °F ба бороотой

- sentences:
- "Лос Анжелесийн цаг агаар ямар байна?"
- "Лос Анжелес хотын цаг агаар ямар байна"
intent:
name: HassGetWeather
slots:
name: Los Angeles
response: 76 °F ба цэлмэг
Loading