diff --git a/responses/bg/HassGetWeather.yaml b/responses/bg/HassGetWeather.yaml new file mode 100644 index 0000000000..e8bf003361 --- /dev/null +++ b/responses/bg/HassGetWeather.yaml @@ -0,0 +1,24 @@ +language: bg +responses: + intents: + HassGetWeather: + default: > + {% set weather_condition = { + 'clear': 'и ясно', + 'clear-night': 'и ясно', + 'cloudy': 'и облачно', + 'exceptional': 'and exceptional', + 'fog': 'с мъгла', + 'hail': 'с градушка', + 'lightning': 'с грамотевици', + 'lightning-rainy': 'с грамотевици и дъжд', + 'partlycloudy': 'и с частична облачност', + 'pouring': 'и обилни дъждове', + 'rainy': 'и дъждовно', + 'snowy': 'и снеговалеж', + 'snowy-rainy': 'със сняг и дъжд', + 'sunny': 'и слънчево', + 'windy': 'и ветровито', + 'windy-variant': 'with wind and clouds' + } %} + {{ state.attributes.get('temperature') }} {{ state.attributes.get('temperature_unit') }} {{ weather_condition.get((state.state | string).lower(), "") }} diff --git a/sentences/bg/weather_HassGetWeather.yaml b/sentences/bg/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..7f5aeb0750 --- /dev/null +++ b/sentences/bg/weather_HassGetWeather.yaml @@ -0,0 +1,12 @@ +language: bg +intents: + HassGetWeather: + data: + - sentences: + - "[ е] времето" + - "как[ е] времето" + - sentences: + - "[ е] времето (за|в) " + - "как[ е] времето (за|в) " + requires_context: + domain: weather diff --git a/tests/bg/_fixtures.yaml b/tests/bg/_fixtures.yaml index fcfbefa376..89891cd8cc 100644 --- a/tests/bg/_fixtures.yaml +++ b/tests/bg/_fixtures.yaml @@ -399,3 +399,17 @@ entities: out: "on" attributes: device_class: window + + - name: "Лондон" + id: "weather.london" + state: "rainy" + attributes: + temperature: "8" + temperature_unit: "°C" + + - name: "Лос Анджелис" + id: "weather.los_angeles" + state: "clear" + attributes: + temperature: "24" + temperature_unit: "°C" diff --git a/tests/bg/weather_HassGetWeather.yaml b/tests/bg/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..7d54f58ffa --- /dev/null +++ b/tests/bg/weather_HassGetWeather.yaml @@ -0,0 +1,25 @@ +language: bg +tests: + - sentences: + - "Какво е времето?" + - "Как е времето?" + intent: + name: HassGetWeather + response: 8 °C и дъждовно + + - sentences: + - "какво е времето в Лондон?" + - "как е времето в Лондон?" + intent: + name: HassGetWeather + slots: + name: Лондон + response: 8 °C и дъждовно + + - sentences: + - "Какво е времето в Лос Анджелис?" + intent: + name: HassGetWeather + slots: + name: Лос Анджелис + response: 24 °C и ясно