diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000000..893da6f041 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,19 @@ +categories: + - title: "Breaking Changes" + labels: + - "breaking change" + - title: "Intent Updates" + labels: + - "intent" + - title: "Sentence Updates" + collapse-after: 1 + labels: + - "sentence" + - title: "Dependencies" + collapse-after: 1 + labels: + - "dependencies" +template: | + ## What's Changed + + $CHANGES diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e594063791..846126fa06 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,7 +22,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.10" cache: "pip" diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 6c87745759..f8b570a29e 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -29,12 +29,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 - name: Set up Node ${{ env.NODE_VERSION }} uses: actions/setup-node@v4.0.0 with: node-version: ${{ env.NODE_VERSION }} - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: "3.10" cache: "pip" @@ -59,4 +59,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2.0.4 + uses: actions/deploy-pages@v3.0.1 diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 3ae90db077..a5e852503d 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -23,7 +23,7 @@ jobs: uses: actions/checkout@v4 - name: Set up Python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ env.PYTHON_VERSION }} diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000000..896edaf4a3 --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,14 @@ +name: Release Drafter + +on: + push: + branches: + - main + +jobs: + update_release_draft: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/intents.yaml b/intents.yaml index 40d665f91e..3bdc820e09 100644 --- a/intents.yaml +++ b/intents.yaml @@ -133,7 +133,7 @@ HassClimateSetTemperature: required: false HassClimateGetTemperature: - supported: false + supported: true domain: climate description: "Gets the current temperature of a climate device or entity" slots: diff --git a/package/home_assistant_intents/domains.py b/package/home_assistant_intents/domains.py index 8364c28bde..7ecce50da2 100644 --- a/package/home_assistant_intents/domains.py +++ b/package/home_assistant_intents/domains.py @@ -1,5 +1,63 @@ DOMAINS_AND_LANGUAGES = { + "climate": [ + "af", + "ar", + "bg", + "bn", + "ca", + "cs", + "da", + "de", + "de-CH", + "el", + "en", + "es", + "eu", + "fa", + "fi", + "fr", + "fr-CA", + "gl", + "gu", + "he", + "hi", + "hr", + "hu", + "id", + "is", + "it", + "ka", + "kn", + "ko", + "lb", + "lt", + "lv", + "ml", + "mn", + "ms", + "nb", + "nl", + "pl", + "pt", + "pt-br", + "ro", + "ru", + "sk", + "sl", + "sr", + "sv", + "sw", + "te", + "tr", + "uk", + "ur", + "vi", + "zh-cn", + "zh-hk", + "zh-tw", + ], "homeassistant": [ + "af", "ar", "bg", "bn", @@ -11,6 +69,8 @@ "el", "en", "es", + "et", + "eu", "fa", "fi", "fr", @@ -26,6 +86,7 @@ "it", "ka", "kn", + "ko", "lb", "lt", "lv", @@ -54,6 +115,7 @@ "zh-tw", ], "light": [ + "af", "ar", "bg", "bn", @@ -65,6 +127,7 @@ "el", "en", "es", + "eu", "fa", "fi", "fr", @@ -80,6 +143,7 @@ "it", "ka", "kn", + "ko", "lb", "lt", "lv", @@ -107,4 +171,28 @@ "zh-hk", "zh-tw", ], + "shopping_list": [ + "ca", + "cs", + "de", + "de-CH", + "el", + "en", + "es", + "fr", + "hr", + "ko", + "nb", + "nl", + "pl", + "pt", + "ro", + "ru", + "sk", + "sr", + "sv", + "uk", + ], + "todo": ["de", "en", "es", "fr", "nl", "ro"], + "weather": ["de", "en", "es", "fr", "nl", "ro"], } diff --git a/requirements.txt b/requirements.txt index 556046efaa..8b06e44c33 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ jinja2==3.1.2 black==23.11.0 flake8==6.1.0 -isort==5.12.0 -mypy==1.7.0 +isort==5.13.0 +mypy==1.7.1 pylint==3.0.2 pytest==7.4.3 diff --git a/responses/af/HassClimateGetTemperature.yaml b/responses/af/HassClimateGetTemperature.yaml index 4368103d2d..8bc2af442f 100644 --- a/responses/af/HassClimateGetTemperature.yaml +++ b/responses/af/HassClimateGetTemperature.yaml @@ -2,4 +2,4 @@ language: af responses: intents: HassClimateGetTemperature: - default: "{{ state.state_with_unit }}" + default: "{{ state_attr(state.entity_id, 'current_temperature') }}" diff --git a/responses/ar/HassClimateGetTemperature.yaml b/responses/ar/HassClimateGetTemperature.yaml index 6bd66b03d9..5a0cc11d89 100644 --- a/responses/ar/HassClimateGetTemperature.yaml +++ b/responses/ar/HassClimateGetTemperature.yaml @@ -2,4 +2,4 @@ language: ar responses: intents: HassClimateGetTemperature: - default: "{{ state.state_with_unit }}" + default: "{{ state_attr(state.entity_id, 'current_temperature') }}" diff --git a/responses/cs/HassClimateGetTemperature.yaml b/responses/cs/HassClimateGetTemperature.yaml index 7c8d574d34..d31326af0b 100644 --- a/responses/cs/HassClimateGetTemperature.yaml +++ b/responses/cs/HassClimateGetTemperature.yaml @@ -2,4 +2,4 @@ language: cs responses: intents: HassClimateGetTemperature: - default: "{{ state.state_with_unit }}" + default: "{{ state_attr(state.entity_id, 'current_temperature') }}" diff --git a/responses/cs/HassListAddItem.yaml b/responses/cs/HassListAddItem.yaml new file mode 100644 index 0000000000..d42849efde --- /dev/null +++ b/responses/cs/HassListAddItem.yaml @@ -0,0 +1,5 @@ +language: "cs" +responses: + intents: + HassListAddItem: + item_added: "Přidáno: {{ slots.item }}" diff --git a/responses/de-CH/HassGetWeather.yaml b/responses/de-CH/HassGetWeather.yaml new file mode 100644 index 0000000000..fae39aae64 --- /dev/null +++ b/responses/de-CH/HassGetWeather.yaml @@ -0,0 +1,24 @@ +language: de-CH +responses: + intents: + HassGetWeather: + default: > + {% set weather_condition = { + 'clear': 'u klar', + 'clear-night': 'u e klari Nacht', + 'cloudy': 'u bewöukt', + 'exceptional': 'u ussergewöhnlech', + 'fog': 'mit Näbu', + 'hail': 'mit Hageu', + 'lightning': 'mit Gewitter', + 'lightning-rainy': 'mit Gewitter u Räge', + 'partlycloudy': 'u teilweyys bewöukt', + 'pouring': 'und strömende Räge', + 'rainy': 'und rägnerisch', + 'snowy': 'u verschneit', + 'snowy-rainy': 'mit Schnee u Räge', + 'sunny': 'u sunnig', + 'windy': 'u windig', + 'windy-variant': 'mit Wind u Wouke' + } %} + Es isch {{ state.attributes.get('temperature') }} {{ state.attributes.get('temperature_unit') }} {{ weather_condition.get((state.state | string).lower(), "") }} diff --git a/responses/de-CH/HassListAddItem.yaml b/responses/de-CH/HassListAddItem.yaml new file mode 100644 index 0000000000..0b25dd3a9e --- /dev/null +++ b/responses/de-CH/HassListAddItem.yaml @@ -0,0 +1,5 @@ +language: de-CH +responses: + intents: + HassListAddItem: + item_added: "Ha {{ slots.item }} uf d Lyschte {{ slots.name }} gsetzt" diff --git a/responses/de-CH/HassShoppingListAddItem.yaml b/responses/de-CH/HassShoppingListAddItem.yaml index f2233fa283..5bba11bfcf 100644 --- a/responses/de-CH/HassShoppingListAddItem.yaml +++ b/responses/de-CH/HassShoppingListAddItem.yaml @@ -2,4 +2,4 @@ language: de-CH responses: intents: HassShoppingListAddItem: - item_added: "Ha {{ slots.item }} uf d Lyschte gsetzt" + item_added: "Ha {{ slots.item }} uf d Yychoufslyschte gsetzt" diff --git a/responses/de/HassClimateGetTemperature.yaml b/responses/de/HassClimateGetTemperature.yaml index ea3622d366..ff1eddee17 100644 --- a/responses/de/HassClimateGetTemperature.yaml +++ b/responses/de/HassClimateGetTemperature.yaml @@ -2,4 +2,4 @@ language: de responses: intents: HassClimateGetTemperature: - default: "{{ state.state_with_unit }}" + default: "{{ state_attr(state.entity_id, 'current_temperature') }}" diff --git a/responses/el/HassGetWeather.yaml b/responses/el/HassGetWeather.yaml new file mode 100644 index 0000000000..f5618e4421 --- /dev/null +++ b/responses/el/HassGetWeather.yaml @@ -0,0 +1,24 @@ +language: el +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.attributes.get('untranslated_state') | string).lower(), "") }} diff --git a/responses/el/HassListAddItem.yaml b/responses/el/HassListAddItem.yaml new file mode 100644 index 0000000000..9966ff2d46 --- /dev/null +++ b/responses/el/HassListAddItem.yaml @@ -0,0 +1,5 @@ +language: "el" +responses: + intents: + HassListAddItem: + item_added: "Προστέθηκε το προϊόν {{ slots.item }}" diff --git a/responses/el/HassTurnOff.yaml b/responses/el/HassTurnOff.yaml index 11faac29fb..cc9097b584 100644 --- a/responses/el/HassTurnOff.yaml +++ b/responses/el/HassTurnOff.yaml @@ -2,7 +2,7 @@ language: el responses: intents: HassTurnOff: - default: "Έκλεισαν τα φώτα στο {{ slots.name }}" + default: "Έκλεισε" lights_area: "Έκλεισαν τα φώτα" fans_area: "Έκλεισαν οι ανεμιστήρες" cover: "{{ slots.name }} έκλεισε" diff --git a/responses/el/HassTurnOn.yaml b/responses/el/HassTurnOn.yaml index 1f60866d28..79b3ba8da2 100644 --- a/responses/el/HassTurnOn.yaml +++ b/responses/el/HassTurnOn.yaml @@ -2,7 +2,7 @@ language: el responses: intents: HassTurnOn: - default: "Άνοιξαν τα φώτα στο {{ slots.name }}" + default: "Άνοιξε" lights_area: "Άνοιξαν τα φώτα" fans_area: "Άνοιξαν οι ανεμιστήρες" cover: "{{ slots.name }} άνοιξε" diff --git a/responses/en/HassClimateGetTemperature.yaml b/responses/en/HassClimateGetTemperature.yaml index 4c6ea780d4..0d937283b6 100644 --- a/responses/en/HassClimateGetTemperature.yaml +++ b/responses/en/HassClimateGetTemperature.yaml @@ -2,4 +2,10 @@ language: en responses: intents: HassClimateGetTemperature: - default: "{{ state.state_with_unit }}" + default: > + {% set temperature = state_attr(state.entity_id, 'current_temperature') %} + {% if temperature == 1: %} + {{ temperature }} degree + {% else: %} + {{ temperature }} degrees + {% endif %} diff --git a/responses/es/HassClimateGetTemperature.yaml b/responses/es/HassClimateGetTemperature.yaml index 0ae5ab143f..8cea81997a 100644 --- a/responses/es/HassClimateGetTemperature.yaml +++ b/responses/es/HassClimateGetTemperature.yaml @@ -2,4 +2,6 @@ language: es responses: intents: HassClimateGetTemperature: - default: "{{ state.state | float | abs | round(2) }} {{ 'grado' if state.state | float | abs == 1 else 'grados' }} {{ 'bajo cero' if state.state | float < 0 else '' }}" + default: > + {% set temperature = state_attr(state.entity_id, 'current_temperature') %} + {{ temperature | float | abs | round(1) | replace('.0', '') | replace('.',',') }} {{ 'grado' if temperature | float | abs == 1 else 'grados' }} {{ 'bajo cero' if temperature | float < 0 else '' }} diff --git a/responses/et/HassTurnOff.yaml b/responses/et/HassTurnOff.yaml index fdfaac6338..4aebb9b175 100644 --- a/responses/et/HassTurnOff.yaml +++ b/responses/et/HassTurnOff.yaml @@ -2,4 +2,4 @@ language: et responses: intents: HassTurnOff: - default: "Turned off {{ slots.name }}" + default: "{{ slots.name }} lülitatud välja" diff --git a/responses/et/HassTurnOn.yaml b/responses/et/HassTurnOn.yaml index 40be79e544..f0e789d8f2 100644 --- a/responses/et/HassTurnOn.yaml +++ b/responses/et/HassTurnOn.yaml @@ -2,4 +2,4 @@ language: et responses: intents: HassTurnOn: - default: "Turned on {{ slots.name }}" + default: "{{ slots.name }} lülitatud sisse" diff --git a/responses/eu/HassClimateGetTemperature.yaml b/responses/eu/HassClimateGetTemperature.yaml index ce3269392a..0521dfa7a1 100644 --- a/responses/eu/HassClimateGetTemperature.yaml +++ b/responses/eu/HassClimateGetTemperature.yaml @@ -2,4 +2,4 @@ language: eu responses: intents: HassClimateGetTemperature: - default: "TODO: {{ state.state_with_unit }}" + default: "TODO: {{ state_attr(state.entity_id, 'current_temperature') }}" diff --git a/responses/fi/HassClimateGetTemperature.yaml b/responses/fi/HassClimateGetTemperature.yaml index e0d795a2fd..c8249f2758 100644 --- a/responses/fi/HassClimateGetTemperature.yaml +++ b/responses/fi/HassClimateGetTemperature.yaml @@ -2,4 +2,4 @@ language: fi responses: intents: HassClimateGetTemperature: - default: "{{ state.state_with_unit }}" + default: "{{ state_attr(state.entity_id, 'current_temperature') }}" diff --git a/responses/fr/HassClimateGetTemperature.yaml b/responses/fr/HassClimateGetTemperature.yaml index 66b7b9adda..19d5cfbca8 100644 --- a/responses/fr/HassClimateGetTemperature.yaml +++ b/responses/fr/HassClimateGetTemperature.yaml @@ -2,4 +2,4 @@ language: fr responses: intents: HassClimateGetTemperature: - default: "{{ state.state_with_unit }}" + default: "{{ state_attr(state.entity_id, 'current_temperature') }}" diff --git a/responses/gl/HassClimateGetTemperature.yaml b/responses/gl/HassClimateGetTemperature.yaml index 437cace2c1..194bae6966 100644 --- a/responses/gl/HassClimateGetTemperature.yaml +++ b/responses/gl/HassClimateGetTemperature.yaml @@ -2,4 +2,6 @@ language: gl responses: intents: HassClimateGetTemperature: - default: "{{ state.state }} graos" + default: > + {% set temperature = state_attr(state.entity_id, 'current_temperature') %} + {{ temperature | float | abs | round(1) | replace('.0', '') | replace('.',',') }} {{ 'grao' if temperature | float | abs == 1 else 'graos' }} {{ 'baixo cero' if temperature | float < 0 else '' }} diff --git a/responses/gl/HassClimateSetTemperature.yaml b/responses/gl/HassClimateSetTemperature.yaml index 7340b1040e..4726e36664 100644 --- a/responses/gl/HassClimateSetTemperature.yaml +++ b/responses/gl/HassClimateSetTemperature.yaml @@ -2,4 +2,4 @@ language: gl responses: intents: HassClimateSetTemperature: - default: Temperature set to {{ slots.temperature }} degrees + default: "Temperatura axustada" diff --git a/responses/gl/HassGetState.yaml b/responses/gl/HassGetState.yaml index a9a538930e..00680b71e5 100644 --- a/responses/gl/HassGetState.yaml +++ b/responses/gl/HassGetState.yaml @@ -1,4 +1,72 @@ language: gl responses: intents: - HassGetState: {} + HassGetState: + # the number of names returned is limited to 4, in case there are more, the first 3 names and the remaining count is returned + # with 4 names or less, the names are joined with a comma ", " and the last name is joined with " and " + one: | + {{ state.state_with_unit }} + + one_yesno: | + {% if query.matched %} + Si + {% else %} + Non, {{ state.state_with_unit }} + {% endif %} + + any: | + {% if query.matched %} + {% set match = query.matched | map(attribute="name") | sort | list %} + {% if match | length > 4 %} + Si, {{ match[:3] | join(", ") }} e {{ (match | length - 3) }} máis + {%- else -%} + Si, + {% for name in match -%} + {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} e {% endif -%} + {{ name }} + {%- endfor -%} + {% endif %} + {% else %} + Non + {% endif %} + + all: | + {% if not query.unmatched: %} + Si + {% else %} + {% set no_match = query.unmatched | map(attribute="name") | sort | list %} + {% if no_match | length > 4 %} + Non, {{ no_match[:3] | join(", ") }} e {{ (no_match | length - 3) }} máis non están {{ slots.state }} + {%- else -%} + Non, + {% for name in no_match -%} + {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} e {% endif -%} + {{ name }} + {%- endfor %} non {% if no_match | length > 1 %}están{% else %}está{% endif %} {{ slots.state }} + {% endif %} + {% endif %} + + which: | + {% if not query.matched %} + (Ningunha|Ningún) + {% else: %} + {% set match = query.matched | map(attribute="name") | sort | list %} + {% if match | length > 4 %} + {{ match[:3] | join(", ") }} e {{ (match | length - 3) }} máis + {% else %} + {%- for name in match -%} + {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} e {% endif -%} + {{ name }} + {%- endfor -%} + {% endif %} + {% endif %} + + how_many: | + {{ query.matched | length }} + + where: | + {% if state == "not_home" %} + {{ slots.name | capitalize }} está fora + {% else %} + {{ slots.name | capitalize }} está en {{ state.state }} + {% endif %} diff --git a/responses/gl/HassGetWeather.yaml b/responses/gl/HassGetWeather.yaml new file mode 100644 index 0000000000..880db83114 --- /dev/null +++ b/responses/gl/HassGetWeather.yaml @@ -0,0 +1,24 @@ +language: gl +responses: + intents: + HassGetWeather: + default: > + {% set weather_condition = { + 'clear': 'Despexado', + 'clear-night': 'Noite despexada', + 'cloudy': 'Anubrado', + 'exceptional': 'Condicións excepcionalmente adversas', + 'fog': 'Néboa', + 'hail': 'Sarabia', + 'lightning': 'Lóstregos', + 'lightning-rainy': 'Chuvia e lóstregos', + 'partlycloudy': 'Ceo parcialmente anubrado', + 'pouring': 'Ballón', + 'rainy': 'Chuvia', + 'snowy': 'Neve', + 'snowy-rainy': 'Chuvia e neve', + 'sunny': 'Sol', + 'windy': 'Vento', + 'windy-variant': 'Vento e ceo anubrado' + } %} + {{ weather_condition.get((state.state | string).lower(), "") }}, con {{ state.attributes.get('temperature') }} {{ state.attributes.get('temperature_unit') }} de temperatura diff --git a/responses/gl/HassShoppingListAddItem.yaml b/responses/gl/HassShoppingListAddItem.yaml new file mode 100644 index 0000000000..95ce7abb80 --- /dev/null +++ b/responses/gl/HassShoppingListAddItem.yaml @@ -0,0 +1,5 @@ +language: "gl" +responses: + intents: + HassShoppingListAddItem: + item_added: "Engadín {{ slots.item }}" diff --git a/responses/hr/HassClimateGetTemperature.yaml b/responses/hr/HassClimateGetTemperature.yaml index fe94e48367..4c79bb4042 100644 --- a/responses/hr/HassClimateGetTemperature.yaml +++ b/responses/hr/HassClimateGetTemperature.yaml @@ -2,4 +2,4 @@ language: hr responses: intents: HassClimateGetTemperature: - default: "{{ state.state_with_unit }}" + default: "{{ state_attr(state.entity_id, 'current_temperature') }}" diff --git a/responses/is/HassClimateGetTemperature.yaml b/responses/is/HassClimateGetTemperature.yaml index c7ad49fd74..fadb38fd56 100644 --- a/responses/is/HassClimateGetTemperature.yaml +++ b/responses/is/HassClimateGetTemperature.yaml @@ -2,4 +2,4 @@ language: is responses: intents: HassClimateGetTemperature: - default: "Hitinn er {{ state.state_with_unit }}" + default: "Hitinn er {{ state_attr(state.entity_id, 'current_temperature') }}" diff --git a/responses/ko/HassClimateGetTemperature.yaml b/responses/ko/HassClimateGetTemperature.yaml index 5880bc5143..9f86397b70 100644 --- a/responses/ko/HassClimateGetTemperature.yaml +++ b/responses/ko/HassClimateGetTemperature.yaml @@ -2,4 +2,4 @@ language: ko responses: intents: HassClimateGetTemperature: - default: "{{ state.state_with_unit }}입니다" + default: "{{ state_attr(state.entity_id, 'current_temperature') }}입니다" diff --git a/responses/lt/HassClimateGetTemperature.yaml b/responses/lt/HassClimateGetTemperature.yaml index ba4b44a8b7..3ba4aa7eb4 100644 --- a/responses/lt/HassClimateGetTemperature.yaml +++ b/responses/lt/HassClimateGetTemperature.yaml @@ -2,4 +2,4 @@ language: lt responses: intents: HassClimateGetTemperature: - default: "{{ state.state_with_unit }}" + default: "{{ state_attr(state.entity_id, 'current_temperature') }}" diff --git a/responses/nb/HassClimateGetTemperature.yaml b/responses/nb/HassClimateGetTemperature.yaml index ea7119a371..643fe7aac5 100644 --- a/responses/nb/HassClimateGetTemperature.yaml +++ b/responses/nb/HassClimateGetTemperature.yaml @@ -2,4 +2,4 @@ language: nb responses: intents: HassClimateGetTemperature: - default: "{{ state.state_with_unit }}" + default: "{{ state_attr(state.entity_id, 'current_temperature') }}" diff --git a/responses/nl/HassGetState.yaml b/responses/nl/HassGetState.yaml index 076ad9f8af..120a92841e 100644 --- a/responses/nl/HassGetState.yaml +++ b/responses/nl/HassGetState.yaml @@ -14,6 +14,15 @@ responses: Nee, die is {{ state.state_with_unit }} {% endif %} + one_zone: | + {% if query.matched %} + Ja + {% elif state.state == 'not_home' %} + Nee, die is niet thuis + {% else %} + Nee, die is in de zone {{ state.state_with_unit }} + {% endif %} + bs_yesno: | {% if query.matched %} Ja @@ -70,3 +79,12 @@ responses: how_many: | {{ query.matched | length }} + + where: | + {% if state.state == "not_home" %} + {{ slots.name | capitalize }} is niet thuis + {% elif state.state == "home" %} + {{ slots.name | capitalize }} is thuis + {% else %} + {{ slots.name | capitalize }} is in zone {{ state.state }} + {% endif %} diff --git a/responses/nl/HassGetWeather.yaml b/responses/nl/HassGetWeather.yaml new file mode 100644 index 0000000000..6bcf41c742 --- /dev/null +++ b/responses/nl/HassGetWeather.yaml @@ -0,0 +1,24 @@ +language: nl +responses: + intents: + HassGetWeather: + default: > + {% set weather_condition = { + 'clear': 'en helder', + 'clear-night': 'en helder', + 'cloudy': 'en bewolkt', + 'exceptional': 'en extreem', + 'fog': 'met mist', + 'hail': 'met hagel', + 'lightning': 'met onweer', + 'lightning-rainy': 'met onweer en regen', + 'partlycloudy': 'en gedeeltelijk bewolkt', + 'pouring': 'met stortregen', + 'rainy': 'met regen', + 'snowy': 'met sneeuw', + 'snowy-rainy': 'met sneeuw en regen', + 'sunny': 'en zonnig', + 'windy': 'met wind', + 'windy-variant': 'met wind en bewolking' + } %} + {{ state.attributes.get('temperature') }} {{ state.attributes.get('temperature_unit') }} {{ weather_condition.get((state.state | string).lower(), "") }} diff --git a/responses/pt/HassClimateGetTemperature.yaml b/responses/pt/HassClimateGetTemperature.yaml index 8ef2601621..2ca6f2f95e 100644 --- a/responses/pt/HassClimateGetTemperature.yaml +++ b/responses/pt/HassClimateGetTemperature.yaml @@ -2,4 +2,4 @@ language: pt responses: intents: HassClimateGetTemperature: - default: "{{ state.state_with_unit }}" + default: "{{ state_attr(state.entity_id, 'current_temperature') }}" diff --git a/responses/pt/HassGetWeather.yaml b/responses/pt/HassGetWeather.yaml new file mode 100644 index 0000000000..5bd0efab47 --- /dev/null +++ b/responses/pt/HassGetWeather.yaml @@ -0,0 +1,24 @@ +language: pt +responses: + intents: + HassGetWeather: + default: > + {% set weather_condition = { + 'clear': 'Céu limpo', + 'clear-night': 'Céu limpo', + 'cloudy': 'Céu nublado', + 'exceptional': 'Condições excepcionalmente adversas', + 'fog': 'Nevoeiro', + 'hail': 'Granizo', + 'lightning': 'Trovoada', + 'lightning-rainy': 'Chuva e trovoada', + 'partlycloudy': 'Céu parcialmente nublado', + 'pouring': 'Chuva forte', + 'rainy': 'Chuva', + 'snowy': 'Neve', + 'snowy-rainy': 'Chuva e neve', + 'sunny': 'Sol', + 'windy': 'Vento', + 'windy-variant': 'Vento e céu nublado' + } %} + {{ weather_condition.get((state.state | string).lower(), "") }}, com temperatura de {{ state.attributes.get('temperature') }} {{ state.attributes.get('temperature_unit') }} diff --git a/responses/pt/HassListAddItem.yaml b/responses/pt/HassListAddItem.yaml new file mode 100644 index 0000000000..250166c038 --- /dev/null +++ b/responses/pt/HassListAddItem.yaml @@ -0,0 +1,5 @@ +language: "pt" +responses: + intents: + HassListAddItem: + item_added: "Adicionei {{ slots.item }}" diff --git a/responses/pt/HassNevermind.yaml b/responses/pt/HassNevermind.yaml deleted file mode 100644 index 200aa3a2db..0000000000 --- a/responses/pt/HassNevermind.yaml +++ /dev/null @@ -1,5 +0,0 @@ -language: pt -responses: - intents: - HassNevermind: - default: "Ok" diff --git a/responses/ro/HassClimateGetTemperature.yaml b/responses/ro/HassClimateGetTemperature.yaml index c62a0cbf52..44b3cc8da0 100644 --- a/responses/ro/HassClimateGetTemperature.yaml +++ b/responses/ro/HassClimateGetTemperature.yaml @@ -2,4 +2,14 @@ language: ro responses: intents: HassClimateGetTemperature: - default: "{{ state.state }} {{ 'grad' if state.state | float | abs == 1 else 'grade' if state.state == 0 or state.state | float % 1 != 0 or state.state | float % 100 | abs < 20 else 'de grade' }}" + default: | + {% set temperature = state_attr(state.entity_id, 'current_temperature') %} + {% set temperature_ro = (temperature|string).replace(".", ",") %} + {% set temperature_num = temperature | float %} + {% if temperature_num | abs == 1 %} + {{ temperature_ro }} grad + {% elif temperature_num == 0 or temperature_num % 1 != 0 or temperature_num % 100 | abs < 20 %} + {{ temperature_ro }} grade + {% else %} + {{ temperature_ro }} de grade + {% endif %} diff --git a/responses/ro/HassGetWeather.yaml b/responses/ro/HassGetWeather.yaml index 94ac13f3a9..5de3eece6b 100644 --- a/responses/ro/HassGetWeather.yaml +++ b/responses/ro/HassGetWeather.yaml @@ -21,4 +21,13 @@ responses: 'windy': 'cu intensificări ale vântului', 'windy-variant': 'înnorat, cu intensificări ale vântului' } %} - {{ state.attributes.get('temperature') }} {{ state.attributes.get('temperature_unit') }} {{ weather_condition.get((state.state | string).lower(), "") }} + {% set temperature = state.attributes.get('temperature') %} + {% set temperature_ro = (temperature|string).replace(".", ",") %} + {% set temperature_num = temperature | float %} + {% if temperature_num | abs == 1 %} + {{ temperature_ro }} grad + {% elif temperature_num == 0 or temperature_num % 1 != 0 or temperature_num % 100 | abs < 20 %} + {{ temperature_ro }} grade + {% else %} + {{ temperature_ro }} de grade + {% endif %} {{ weather_condition.get((state.state | string).lower(), "") }} diff --git a/responses/ru/HassGetWeather.yaml b/responses/ru/HassGetWeather.yaml new file mode 100644 index 0000000000..b5179310f5 --- /dev/null +++ b/responses/ru/HassGetWeather.yaml @@ -0,0 +1,24 @@ +language: ru +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(), "") }} diff --git a/responses/ru/HassListAddItem.yaml b/responses/ru/HassListAddItem.yaml new file mode 100644 index 0000000000..81af05a1c8 --- /dev/null +++ b/responses/ru/HassListAddItem.yaml @@ -0,0 +1,5 @@ +language: "ru" +responses: + intents: + HassListAddItem: + item_added: "Добавил {{ slots.item }}" diff --git a/responses/ru/HassTurnOn.yaml b/responses/ru/HassTurnOn.yaml index 67ff9bebe4..d7c495abce 100644 --- a/responses/ru/HassTurnOn.yaml +++ b/responses/ru/HassTurnOn.yaml @@ -8,3 +8,4 @@ responses: cover: "Открыто {{ slots.name }}" cover_area: "Открыто {{ slots.area }}" cover_device_class: "Открыто {{ slots.device_class }}" + script: "Выполнено" diff --git a/responses/sk/HassGetWeather.yaml b/responses/sk/HassGetWeather.yaml new file mode 100644 index 0000000000..65823a73d6 --- /dev/null +++ b/responses/sk/HassGetWeather.yaml @@ -0,0 +1,24 @@ +language: sk +responses: + intents: + HassGetWeather: + default: > + {% set weather_condition = { + 'clear': 'a jasno', + 'clear-night': 'a jasno', + 'cloudy': 'a oblačno', + 'exceptional': 'a výstrahy', + 'fog': 'a hmla', + 'hail': 'a krúpy', + 'lightning': 'a blesky', + 'lightning-rainy': 's bleskami a dážďom', + 'partlycloudy': 'a čiastočne oblačno', + 'pouring': 'a silný dážď', + 'rainy': 'a dážď', + 'snowy': 'a sneží', + 'snowy-rainy': 'so snehom a dážďom', + 'sunny': 'a slnečno', + 'windy': 'a veterno', + 'windy-variant': 's vetrom a oblačno' + } %} + {{ state.attributes.get('temperature') }} {{ state.attributes.get('temperature_unit') }} {{ weather_condition.get((state.state | string).lower(), "") }} diff --git a/responses/sk/HassListAddItem.yaml b/responses/sk/HassListAddItem.yaml new file mode 100644 index 0000000000..fe58ef223f --- /dev/null +++ b/responses/sk/HassListAddItem.yaml @@ -0,0 +1,5 @@ +language: "sk" +responses: + intents: + HassListAddItem: + item_added: "Pridané: {{ slots.item }}" diff --git a/responses/sk/HassNevermind.yaml b/responses/sk/HassNevermind.yaml new file mode 100644 index 0000000000..86efa173d9 --- /dev/null +++ b/responses/sk/HassNevermind.yaml @@ -0,0 +1,5 @@ +language: sk +responses: + intents: + HassNevermind: + default: "Požiadavka bola zrušená" diff --git a/responses/sl/HassClimateGetTemperature.yaml b/responses/sl/HassClimateGetTemperature.yaml index 0611130b0e..db033a6c7f 100644 --- a/responses/sl/HassClimateGetTemperature.yaml +++ b/responses/sl/HassClimateGetTemperature.yaml @@ -2,4 +2,22 @@ language: sl responses: intents: HassClimateGetTemperature: - default: "{{ state.state_with_unit }}" + default: | + {% set temperature = state_attr(state.entity_id, 'current_temperature') %} + {% set temperature_abs = temperature | float | abs %} + + {% if temperature_abs == 1 %} + {{ temperature }} stopinja + {% elif temperature == 0 or temperature | float % 1 != 0 or temperature | float % 100 | abs < 20 %} + {{ temperature }} stopinje + {% else %} + {{ temperature }} stopinj + {% if temperature | float % 1 != 0 %} + {% set decimal_part = temperature | string | regex_replace('\\d+\\.', '') %} + {% if decimal_part != '1' %} + cela {{ decimal_part }} stopinje + {% else %} + cela {{ decimal_part }} stopinja + {% endif %} + {% endif %} + {% endif %} diff --git a/responses/sl/HassGetState.yaml b/responses/sl/HassGetState.yaml index 56bf803cf6..00ff93e34d 100644 --- a/responses/sl/HassGetState.yaml +++ b/responses/sl/HassGetState.yaml @@ -11,7 +11,7 @@ responses: {% if query.matched %} Da {% else %} - Ne + Ne, {{ state.state_with_unit }} {% endif %} any: | @@ -63,10 +63,30 @@ responses: {%- endfor -%} {% endif %} {% endif %} - + which_bs: | + {% if not query.matched %} + Noben + {% else: %} + {% set match = query.matched | map(attribute="name") | sort | list %} + {% if match | length > 4 %} + {{ match[:3] | join(", ") }} and {{ (match | length - 3) }} more + {% else %} + {%- for name in match -%} + {% if not loop.first and not loop.last %}, {% elif loop.last and not loop.first %} and {% endif -%} + {{ name }} + {%- endfor -%} + {% endif %} + {% endif %} how_many: | {{ query.matched | length }} + where: | + {% if state == "not_home" %} + {{ slots.name | capitalize }} ni doma + {% else %} + {{ slots.name | capitalize }} je {{ state.state }} + {% endif %} + sensor_value: | Vrednost senzorja je {{ state.state_with_unit }} diff --git a/responses/sl/HassGetWeather.yaml b/responses/sl/HassGetWeather.yaml new file mode 100644 index 0000000000..c2730a493c --- /dev/null +++ b/responses/sl/HassGetWeather.yaml @@ -0,0 +1,24 @@ +language: sl +responses: + intents: + HassGetWeather: + default: > + {% set weather_condition = { + 'jasno': 'in jasno', + 'jasno': 'in jasno', + 'oblačno': 'in oblačno', + 'izjemno': 'in izjemno', + 'megla': 'z meglo', + 'toča': 's točo', + 'strela': 'bliskovito', + 'bliskovito deževno': 'bliskovito in deževno', + 'delno oblačno': 'in delno oblačno', + 'nalivi': 'in nalivi', + 'deževno': 'in deževno', + 'sneženje': 'in sneženje', + 'snežno deževno': 's snegom in dežjem', + 'sončno': 'in sončno', + 'vetrovno': 'in vetrovno', + 'vetrovna varianata': 'z vetrom in oblaki' + } %} + {{ state.attributes.get('temperature') }} {{ state.attributes.get('temperature_unit') }} {{ weather_condition.get((state.state | string).lower(), "") }} diff --git a/responses/sl/HassLightSet.yaml b/responses/sl/HassLightSet.yaml index ae93788bdf..2242e01079 100644 --- a/responses/sl/HassLightSet.yaml +++ b/responses/sl/HassLightSet.yaml @@ -2,5 +2,5 @@ language: sl responses: intents: HassLightSet: - brightness: "Svetlost luči je nastavljena" - color: "Barva luči je nastavljena" + brightness: "Svetlost nastavljena" + color: "Barva nastavljena" diff --git a/responses/sl/HassListAddItem.yaml b/responses/sl/HassListAddItem.yaml new file mode 100644 index 0000000000..2dc9974d87 --- /dev/null +++ b/responses/sl/HassListAddItem.yaml @@ -0,0 +1,5 @@ +language: sl +responses: + intents: + HassListAddItem: + item_added: "Dodano {{ slots.item }}" diff --git a/responses/sl/HassShoppingListAddItem.yaml b/responses/sl/HassShoppingListAddItem.yaml new file mode 100644 index 0000000000..6bc75b66f4 --- /dev/null +++ b/responses/sl/HassShoppingListAddItem.yaml @@ -0,0 +1,5 @@ +language: sl +responses: + intents: + HassShoppingListAddItem: + item_added: "Artikel je dodan na nakupovalni seznam" diff --git a/responses/sl/HassTurnOff.yaml b/responses/sl/HassTurnOff.yaml index c6b18f2f55..3a65906802 100644 --- a/responses/sl/HassTurnOff.yaml +++ b/responses/sl/HassTurnOff.yaml @@ -4,7 +4,8 @@ responses: HassTurnOff: default: "Izklapljam {{ state.domain }}" default_name: "Izklapljam {{ slots.name }}" - lights_area: "Luči so izklopljene" + lights_area: "Izklopljeno" + light_all: "Vse luči izklopljene" cover_device_class: "Zapiram {{ slots.device_class }}" cover_single: "Zapiram {{ slots.name }}" cover: "Zapiram" diff --git a/responses/sl/HassTurnOn.yaml b/responses/sl/HassTurnOn.yaml index ff8467aae5..37beb9888f 100644 --- a/responses/sl/HassTurnOn.yaml +++ b/responses/sl/HassTurnOn.yaml @@ -4,10 +4,10 @@ responses: HassTurnOn: default: "Vklopljeno {{ state.domain }}" default_name: "Vklopljeno {{ slots.name }}" - lights_area: "Luči so vklopljene" + lights_area: "Vklopljeno" fans_area: "Ventilator je vklopljen" cover_device_class: "Odpiram {{ slots.device_class }}" cover_single: "Odpiram {{ slots.name }}" - lock: "Zakljenjena" + lock: "Zaklenjeno" scene: "Aktivirana" script: "Zagnana" diff --git a/responses/uk/HassListAddItem.yaml b/responses/uk/HassListAddItem.yaml new file mode 100644 index 0000000000..a47e753cd1 --- /dev/null +++ b/responses/uk/HassListAddItem.yaml @@ -0,0 +1,5 @@ +language: uk +responses: + intents: + HassListAddItem: + item_added: "{{ slots.item }} додано" diff --git a/responses/uk/HassTurnOn.yaml b/responses/uk/HassTurnOn.yaml index 4ef9df2db0..1a3790d086 100644 --- a/responses/uk/HassTurnOn.yaml +++ b/responses/uk/HassTurnOn.yaml @@ -8,3 +8,4 @@ responses: cover: "{{ slots.name }} відкрито" cover_area: "{{ slots.area }} відкрито" cover_device_class: "{{ slots.device_class }} відкрито" + script: "Розпочато" diff --git a/responses/zh-cn/HassClimateGetTemperature.yaml b/responses/zh-cn/HassClimateGetTemperature.yaml index ec10b87b46..d7a8936d15 100644 --- a/responses/zh-cn/HassClimateGetTemperature.yaml +++ b/responses/zh-cn/HassClimateGetTemperature.yaml @@ -2,4 +2,4 @@ language: zh-cn responses: intents: HassClimateGetTemperature: - default: "{{ state.state_with_unit }}" + default: "{{ state_attr(state.entity_id, 'current_temperature') }}" diff --git a/responses/zh-tw/HassClimateGetTemperature.yaml b/responses/zh-tw/HassClimateGetTemperature.yaml index 3f3cbd9481..ceb6c09785 100644 --- a/responses/zh-tw/HassClimateGetTemperature.yaml +++ b/responses/zh-tw/HassClimateGetTemperature.yaml @@ -2,4 +2,4 @@ language: zh-tw responses: intents: HassClimateGetTemperature: - default: "{{ state.state_with_unit }}" + default: "{{ state_attr(state.entity_id, 'current_temperature') }}" diff --git a/script/intentfest/validate.py b/script/intentfest/validate.py index 0f3874df7b..9db3c82ea8 100644 --- a/script/intentfest/validate.py +++ b/script/intentfest/validate.py @@ -528,6 +528,7 @@ def validate_language( }, "slots": slots, "query": {"matched": [], "unmatched": []}, + "state_attr": lambda *args: None, } ) except jinja2.exceptions.TemplateError as err: diff --git a/sentences/cs/light_HassTurnOff.yaml b/sentences/cs/light_HassTurnOff.yaml index e073b1748d..09209133f4 100644 --- a/sentences/cs/light_HassTurnOff.yaml +++ b/sentences/cs/light_HassTurnOff.yaml @@ -3,15 +3,16 @@ intents: HassTurnOff: data: - sentences: - - " [světlo] {name}" - - " světlo {name}" - - "{name} [světlo]" - - "světlo {name} " + - "(|) [světlo] {name}" + - "{name} (|) [světlo]" + requires_context: + domain: light slots: domain: light response: light - sentences: - - "(|) [všechna] světla " + - " [všechna] světla " + - " [všechna] [světla] " - " (|) [všechna] světla" slots: domain: light @@ -21,5 +22,4 @@ intents: response: "light_all" slots: domain: "light" - area: "all" name: "all" diff --git a/sentences/cs/light_HassTurnOn.yaml b/sentences/cs/light_HassTurnOn.yaml index d1f25db3f2..16fd1a9ebe 100644 --- a/sentences/cs/light_HassTurnOn.yaml +++ b/sentences/cs/light_HassTurnOn.yaml @@ -3,15 +3,16 @@ intents: HassTurnOn: data: - sentences: - - " [světlo] {name}" - - " světlo {name}" - - "{name} [světlo]" - - "světlo {name} " + - "(|) [světlo] {name}" + - "{name} (|) [světlo]" + requires_context: + domain: light slots: domain: light response: light - sentences: - - "(|) [všechna] [světla] " + - " [všechna] světla " + - " [všechna] [světla] " - " (|) [všechna] světla" slots: domain: light diff --git a/sentences/cs/todo_HassListAddItem.yaml b/sentences/cs/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..0f50a19c22 --- /dev/null +++ b/sentences/cs/todo_HassListAddItem.yaml @@ -0,0 +1,12 @@ +language: "cs" +intents: + HassListAddItem: + data: + - sentences: + - (dej|přidej|připiš) + response: item_added + requires_context: + domain: todo + expansion_rules: + my_list: "(do[ [mého] seznamu]|na[ [můj] seznam]) {name}" + item: "{shopping_list_item:item}" diff --git a/sentences/de-CH/_common.yaml b/sentences/de-CH/_common.yaml index 6c3d1e25e9..33d92048d1 100644 --- a/sentences/de-CH/_common.yaml +++ b/sentences/de-CH/_common.yaml @@ -101,7 +101,7 @@ lists: - in: "((uf|un|nid )(gschlosse|bschlosse)|offe)" out: "unlocked" - shopping_list_item: + list_item: wildcard: true expansion_rules: diff --git a/sentences/de-CH/climate_HassClimateGetTemperature.yaml b/sentences/de-CH/climate_HassClimateGetTemperature.yaml index a24b6f1c94..c3c6c34449 100644 --- a/sentences/de-CH/climate_HassClimateGetTemperature.yaml +++ b/sentences/de-CH/climate_HassClimateGetTemperature.yaml @@ -6,7 +6,7 @@ intents: - "Weli Temperatur (het|zeigt) " - sentences: - - "Wie (warm|chaut|chalt) (isch es|isch's|isch) " + - "Wie (warm|chaut|chalt) (isch es|isch's|ischs|isch) " - "Weli Temperatur (isch es|isch's|isch|het|het ds|het's) " - - "Wie höch isch d Temperatur " + - "Wie (hoch|höch) isch d Temperatur " response: temp_area diff --git a/sentences/de-CH/shopping_list_HassShoppingListAddItem.yaml b/sentences/de-CH/shopping_list_HassShoppingListAddItem.yaml index 40d4e56735..26d1e236bd 100644 --- a/sentences/de-CH/shopping_list_HassShoppingListAddItem.yaml +++ b/sentences/de-CH/shopping_list_HassShoppingListAddItem.yaml @@ -7,4 +7,4 @@ intents: response: item_added expansion_rules: my_list: "[mini |d |d' |d'][(I|Ii|Y|Yy)choufs](Lys[ch]te|lys[ch]te|Lis[ch]te|Liis[ch]te)" - item: "{shopping_list_item:item}" + item: "{list_item:item}" diff --git a/sentences/de-CH/todo_HassListAddItem.yaml b/sentences/de-CH/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..6ee3301dd3 --- /dev/null +++ b/sentences/de-CH/todo_HassListAddItem.yaml @@ -0,0 +1,12 @@ +language: de-CH +intents: + HassListAddItem: + data: + - sentences: + - "Setz uf " + response: item_added + requires_context: + domain: todo + expansion_rules: + my_list: "[mini |d |d' |d']({name}[(-| )](Lys[ch]te|lys[ch]te|Lis[ch]te|Liis[ch]te)|[(Lys[ch]te|lys[ch]te|Lis[ch]te|Liis[ch]te) ]{name})" + item: "{list_item:item}" diff --git a/sentences/de-CH/weather_HassGetWeather.yaml b/sentences/de-CH/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..41a7115dd5 --- /dev/null +++ b/sentences/de-CH/weather_HassGetWeather.yaml @@ -0,0 +1,13 @@ +language: de-CH +intents: + HassGetWeather: + data: + - sentences: + - "(Wie isch ds|Was isch für) W(e|ä)tter" + - "Weles W(e|ä)tter isch" + + - sentences: + - "(Wie isch ds|Was isch für) W(e|ä)tter[ (ds|z|für|i|in) ]" + - "Weles W(e|ä)tter isch[ (ds|z|für|i|in) ]" + requires_context: + domain: weather diff --git a/sentences/de/_common.yaml b/sentences/de/_common.yaml index 8f1ee0ed1e..4980e73258 100644 --- a/sentences/de/_common.yaml +++ b/sentences/de/_common.yaml @@ -171,8 +171,8 @@ expansion_rules: alle: "((alle|sämtliche)[r]|jede[r|s|n]| (ganze|komplette|sämtliche)[n]) [der]" schliessen: "(schlie(ß|ss)[e|en]|zumachen|zu machen)" öffnen: "(öffne[n]|aufmachen|auf machen)" - schalten: "(schalt[e|en])" - machen: "(mach[e|en])" + schalten: "(schalt[e|en|et])" + machen: "(mach[e|en|t])" setzen: "(setz[e|en]|stell[e|en]|einstellen|änder[e|n]|veränder[e|n])" abdeckung: " (Rollo[s]|Abdeckung[en]|Rolll(a|ä)den|Jalousie[n]|Raffstore[s]|Markise[n]|Vorh(a|ä)ng[e])" alle_abdeckungen: " (Rollos|Abdeckungen|Rolll(a|ä)den|Jalousien|Raffstores|Markisen|Vorhänge)" @@ -183,7 +183,7 @@ expansion_rules: luefter: " (Ventilator[en]|Lüfter)" alle_luefter: " (Ventilatoren|Lüfter)" brightness: "{brightness} [Prozent|%]" - temperature: "{temperature} [Grad] [{temperature_unit}]" + temperature: "{temperature}[ ][°|Grad][ ][{temperature_unit}]" licht: " (Licht|Lampe|Beleuchtung)" lichter: "[die|der|von den] (Lichter|Lichtern|Lampen|Leuchten|Beleuchtungen)" alle_lichter: "( (|Beleuchtung)|von allen [Lichtern|Lampen|Leuchten|Beleuchtungen])" diff --git a/sentences/de/homeassistant_HassNevermind.yaml b/sentences/de/homeassistant_HassNevermind.yaml index df09b728af..3807b87a85 100644 --- a/sentences/de/homeassistant_HassNevermind.yaml +++ b/sentences/de/homeassistant_HassNevermind.yaml @@ -7,3 +7,4 @@ intents: - "egal" - "abbrechen" - "Abbruch" + - "nichts" diff --git a/sentences/el/todo_HassListAddItem.yaml b/sentences/el/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..12c6a0587b --- /dev/null +++ b/sentences/el/todo_HassListAddItem.yaml @@ -0,0 +1,12 @@ +language: "el" +intents: + HassListAddItem: + data: + - sentences: + - (Πρόσθεσε|Βάλε) [] στη[ν] + response: item_added + requires_context: + domain: todo + expansion_rules: + my_list: "[{name}] [ λίστα] [{name}] [μου]" + item: "{shopping_list_item:item}" diff --git a/sentences/el/weather_HassGetWeather.yaml b/sentences/el/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..4f91bd9aa8 --- /dev/null +++ b/sentences/el/weather_HassGetWeather.yaml @@ -0,0 +1,14 @@ +language: el +intents: + HassGetWeather: + data: + - sentences: + - "Πώς [θα] είναι ο καιρός" + - "Ποιος [θα] είναι ο καιρός" + - "Τι καιρό [θα] κάνει" + - sentences: + - "Πώς [θα] είναι ο καιρός (στον|στη[ν]|στο|του|της) " + - "Ποιος [θα] είναι ο καιρός (στον|στη[ν]|στο|του|της) " + - "Τι καιρό [θα] κάνει (στον|στη[ν]|στο) " + requires_context: + domain: weather diff --git a/sentences/en/climate_HassClimateGetTemperature.yaml b/sentences/en/climate_HassClimateGetTemperature.yaml index d86cc38c40..f24078a791 100644 --- a/sentences/en/climate_HassClimateGetTemperature.yaml +++ b/sentences/en/climate_HassClimateGetTemperature.yaml @@ -3,7 +3,13 @@ intents: HassClimateGetTemperature: data: - sentences: - - " [the] [in ]" + - " [the][ current] [in ]" - "how (hot | cold | warm | cool) is it [in ]" - "is it (hot | cold | warm | cool) [in ]" - - " " + - " [ current] " + - sentences: + - " [ current] " + - "[ the][ current] [ of] " + - "how (hot | cold | warm | cool) is " + requires_context: + domain: "climate" diff --git a/sentences/en/weather_HassGetWeather.yaml b/sentences/en/weather_HassGetWeather.yaml index c93666e94b..52da7750cd 100644 --- a/sentences/en/weather_HassGetWeather.yaml +++ b/sentences/en/weather_HassGetWeather.yaml @@ -3,8 +3,10 @@ intents: HassGetWeather: data: - sentences: - - "[ the] weather[ like][( for| in| at) ]" - - "[ the] weather[( for| in| at) ] like" + - "[ the] weather[ like]" + - sentences: + - "[ the] weather[ like] (for|in|at) " + - "[ the] weather (for|in|at) [ like]" - "[ the] weather[ like]" requires_context: domain: weather diff --git a/sentences/es/_common.yaml b/sentences/es/_common.yaml index d46b36e277..953708b293 100644 --- a/sentences/es/_common.yaml +++ b/sentences/es/_common.yaml @@ -305,7 +305,7 @@ lists: expansion_rules: abre: "(abr(a|e|ir|í)|sub(a|e|ir|í))" - ahora: "[ahora [mismo]|actualmente|en este momento]" + ahora: "[ahora [mismo]|actual[mente]|en este momento]" añadir: "(añad(a|e|ir|í)|apunt[a|e|ar|á]|pon[ga|er|é])" apaga: "(apag(a|ue|ar|á)|desconect(a|e|ar|á)|desactiv(a|e|ar|á))" area: "[en|del|de] [el|la] {area}" diff --git a/sentences/es/climate_HassClimateGetTemperature.yaml b/sentences/es/climate_HassClimateGetTemperature.yaml index 2e8804414f..c552524267 100644 --- a/sentences/es/climate_HassClimateGetTemperature.yaml +++ b/sentences/es/climate_HassClimateGetTemperature.yaml @@ -3,7 +3,9 @@ intents: HassClimateGetTemperature: data: - sentences: - - "cuál es " - - "[a] (cuánta|cuánto|cuántos|qué) (hace|hay|estamos)" - - "cuál es " - - "[a] (cuánta|cuánto|cuántos|qué) (hace|hacen|hay|está|están|estamos) " + - "cuál es []" + - "[a] (cuánta|cuánto|cuántos|qué) (hace|hay|estamos) []" + - "cuál es ([] | )" + - "[a] (cuánta|cuánto|cuántos|qué) (hace|hacen|hay|está|están|estamos) ([] | )" + - "cuál es ([] de[l] |de[l] )" + - "[a] (cuánta|cuánto|cuántos|qué) está ([] | )" diff --git a/sentences/es/weather_HassGetWeather.yaml b/sentences/es/weather_HassGetWeather.yaml index 692d59bb44..e039e02759 100644 --- a/sentences/es/weather_HassGetWeather.yaml +++ b/sentences/es/weather_HassGetWeather.yaml @@ -3,6 +3,8 @@ intents: HassGetWeather: data: - sentences: - - "qué tiempo hace [en ]" + - "qué tiempo hace" + - sentences: + - "qué tiempo hace en " requires_context: domain: weather diff --git a/sentences/fr/_common.yaml b/sentences/fr/_common.yaml index 6f36433948..b19c504df8 100644 --- a/sentences/fr/_common.yaml +++ b/sentences/fr/_common.yaml @@ -320,7 +320,7 @@ expansion_rules: volets: "[les ](volets|stores)" garage: "([la ]porte (du |de )garage)|([le ]garage)" fenetre: "(fen(e|ê)tre[s]|baie[s]|v(e|é)lux|lucarne[s])" - dans: "(dans|du|de)" + dans: "(dans|du|de|à|au)" de: "(du|de)" yatil: "(y a[-][ ]t[-][']il|il y a)" estil: "(est|sont)[-][ ][(il[s]|elle[s])]" @@ -332,7 +332,7 @@ expansion_rules: eclaire: (éclaire|éclairer|illumine|illuminer) quelest: " (est|sont)" # Questions - what_is_the_class_of_name: " (le|la|l'|les) [(|indiqué[e]|mesuré[e]|renvoyé[e]|utilisé[e]|consommé[e][s])] [(par|)] [ ]" + what_is_the_class_of_name: " (le |la |l'|les ) [(indiqué[e][s]|mesuré[e][s]|renvoyé[e][s]|restant[e][s]|retourné[e][s]|utilisé[e][s]|produit[e][s]|consommé[e][s]|donné[e][s]) ][(par||sur)] [ ]" skip_words: - "s'il te plaît" diff --git a/sentences/fr/binary_sensor_HassGetState.yaml b/sentences/fr/binary_sensor_HassGetState.yaml index 73d9412901..ebafc68c56 100644 --- a/sentences/fr/binary_sensor_HassGetState.yaml +++ b/sentences/fr/binary_sensor_HassGetState.yaml @@ -96,17 +96,17 @@ intents: device_class: carbon_monoxide - sentences: - - "[du] (CO2|monoxyde [de carbone]) {bs_carbon_monoxide_states:state} [ ]" - - "[du] (CO2|monoxyde [de carbone]) été {bs_carbon_monoxide_states:state} [ ]" + - "[du] (CO|monoxyde [de carbone]) {bs_carbon_monoxide_states:state} [ ]" + - "[du] (CO|monoxyde [de carbone]) été {bs_carbon_monoxide_states:state} [ ]" response: any slots: domain: binary_sensor device_class: carbon_monoxide - sentences: - - "[] [(un|le) capteur de] (monoxyde de carbone|CO2) [de] [{bs_carbon_monoxide_states:state}] [ ]" - - "[] [une alerte] [(de|au)] (monoxyde de carbone|CO2) [de] [{bs_carbon_monoxide_states:state}] [ ]" - - "[Une] alerte [(de|au)] (monoxyde de carbone|CO2) [ été {bs_carbon_monoxide_states:state}] [ ]" + - "[] [(un|le) capteur de] (monoxyde[ de carbone]|CO) [de] [{bs_carbon_monoxide_states:state}] [ ]" + - "[] [une alerte] [(de|au)] (monoxyde[ de carbone]|CO) [de] [{bs_carbon_monoxide_states:state}] [ ]" + - "[Une] alerte [(de|au)] (monoxyde[ de carbone]|CO) [ été {bs_carbon_monoxide_states:state}] [ ]" response: any slots: domain: binary_sensor @@ -114,25 +114,25 @@ intents: state: "on" - sentences: - - " [les] capteurs [de] (CO2|monoxyde[ de carbone]) {bs_carbon_monoxide_states:state} [ ]" + - " [les] capteurs [de] (CO|monoxyde[ de carbone]) {bs_carbon_monoxide_states:state} [ ]" response: all slots: domain: binary_sensor device_class: carbon_monoxide - sentences: - - " capteur[s] [de] (CO2|monoxyde[de carbone]) {bs_carbon_monoxide_states:state} [ ]" - - "Liste les capteur[s] [de] (CO2|monoxyde[de carbone]) [qui sont] {bs_carbon_monoxide_states:state} [ ]" - - "Où du (CO2|monoxyde[ de carbone]) {bs_carbon_monoxide_states:state}" - - "Où du (CO2|monoxyde[ de carbone]) été {bs_carbon_monoxide_states:state}" + - " capteur[s] [de] (CO|monoxyde[de carbone]) {bs_carbon_monoxide_states:state} [ ]" + - "Liste les capteur[s] [de] (CO|monoxyde[de carbone]) [qui sont] {bs_carbon_monoxide_states:state} [ ]" + - "Où du (CO|monoxyde[ de carbone]) {bs_carbon_monoxide_states:state}" + - "Où du (CO|monoxyde[ de carbone]) été {bs_carbon_monoxide_states:state}" response: which slots: domain: binary_sensor device_class: carbon_monoxide - sentences: - - "combien de capteur[s] [de] (CO2|monoxyde[de carbone]) [qui] [] {bs_carbon_monoxide_states:state} [ ]" - - "compte (les |le nombre de) capteur[s] [de] (CO2|monoxyde[de carbone]) [qui] [] {bs_carbon_monoxide_states:state} [ ]" + - "combien de capteur[s] [de] (CO|monoxyde[de carbone]) [qui] [] {bs_carbon_monoxide_states:state} [ ]" + - "compte (les |le nombre de) capteur[s] [de] (CO|monoxyde[de carbone]) [qui] [] {bs_carbon_monoxide_states:state} [ ]" response: how_many slots: domain: binary_sensor diff --git a/sentences/fr/climate_HassClimateGetTemperature.yaml b/sentences/fr/climate_HassClimateGetTemperature.yaml index e6c4209a1f..136092ca14 100644 --- a/sentences/fr/climate_HassClimateGetTemperature.yaml +++ b/sentences/fr/climate_HassClimateGetTemperature.yaml @@ -3,5 +3,5 @@ intents: HassClimateGetTemperature: data: - sentences: - - "Quelle est la température [ ]" - - "Combien fait-il [ ]" + - "Quelle est la température [] []" + - "Combien fait-il [] []" diff --git a/sentences/fr/homeassistant_HassNevermind.yaml b/sentences/fr/homeassistant_HassNevermind.yaml new file mode 100644 index 0000000000..aa7192b470 --- /dev/null +++ b/sentences/fr/homeassistant_HassNevermind.yaml @@ -0,0 +1,7 @@ +language: fr +intents: + HassNevermind: + data: + - sentences: + - "oublie[s]" + - "Annule[r]" diff --git a/sentences/fr/lock_HassTurnOff.yaml b/sentences/fr/lock_HassTurnOff.yaml index bfd3fff6ad..88a83d2bbd 100644 --- a/sentences/fr/lock_HassTurnOff.yaml +++ b/sentences/fr/lock_HassTurnOff.yaml @@ -3,13 +3,13 @@ intents: HassTurnOff: data: - sentences: - - "déverrouille [ ]" + - "déverrouille[(z|r)] [ ]" requires_context: domain: lock response: lock - sentences: - - "déverrouille [] [(la|le[s])] [(porte[s]|serrure[s]|verrou[s])] [] " + - "déverrouille[(z|r)] [] [(la|le[s])] [(porte[s]|serrure[s]|verrou[s])] [] " slots: domain: "lock" name: "all" diff --git a/sentences/fr/lock_HassTurnOn.yaml b/sentences/fr/lock_HassTurnOn.yaml index 7095271b58..7d88ea1baf 100644 --- a/sentences/fr/lock_HassTurnOn.yaml +++ b/sentences/fr/lock_HassTurnOn.yaml @@ -3,14 +3,14 @@ intents: HassTurnOn: data: - sentences: - - "verrouille [ ]" + - "verrouille[(z|r)] [ ]" requires_context: domain: lock response: lock - sentences: - - "verrouille [] [(la|le[s])] [(porte[s]|serrure[s]|verrou[s])] [] " - - "verrouille [] (la|le[s]) (porte[s]|serrure[s]|verrou[s]) [ ]" + - "verrouille[(z|r)] [] [(la|le[s])] [(porte[s]|serrure[s]|verrou[s])] [] " + - "verrouille[(z|r)] [] (la|le[s]) (porte[s]|serrure[s]|verrou[s]) [ ]" slots: domain: "lock" name: "all" diff --git a/sentences/fr/sensor_HassGetState.yaml b/sentences/fr/sensor_HassGetState.yaml index e0b84b2049..258f9956af 100644 --- a/sentences/fr/sensor_HassGetState.yaml +++ b/sentences/fr/sensor_HassGetState.yaml @@ -29,593 +29,594 @@ intents: expansion_rules: class: "(qualité de l'air|pollution)" - # # Atmospheric pressure - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: atmospheric_pressure - # slots: - # domain: sensor - # device_class: atmospheric_pressure - # expansion_rules: - # class: "(atmospheric|air) pressure" - - # # Battery - # - sentences: - # - "" - # - "how much battery (does have [left]|has got [left]|is left in )" - # response: one - # requires_context: - # domain: sensor - # device_class: battery - # slots: - # domain: sensor - # device_class: battery - # expansion_rules: - # class: "[remaining] battery [level]" - - # # CO2 - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: carbon_dioxide - # slots: - # domain: sensor - # device_class: carbon_dioxide - # expansion_rules: - # class: "(carbon dioxide|CO2) (level|concentration)" - - # # CO - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: carbon_monoxide - # slots: - # domain: sensor - # device_class: carbon_monoxide - # expansion_rules: - # class: "(carbon monoxide|CO) (level|concentration)" - - # # Current - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: current - # slots: - # domain: sensor - # device_class: current - # expansion_rules: - # class: "[amount of] [electric[al]] current" + # Atmospheric pressure + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: atmospheric_pressure + slots: + domain: sensor + device_class: atmospheric_pressure + expansion_rules: + class: "pression atmosphérique" + + # Battery + - sentences: + - "" + - "combien de batterie " + - "combien de batterie reste-il dans " + response: default + requires_context: + domain: sensor + device_class: battery + slots: + domain: sensor + device_class: battery + expansion_rules: + class: "[niveau de] batterie [restant]" + + # CO2 + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: carbon_dioxide + slots: + domain: sensor + device_class: carbon_dioxide + expansion_rules: + class: "[(niveau|concentration) de ](CO2|dioxyde de carbone)" + + # CO + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: carbon_monoxide + slots: + domain: sensor + device_class: carbon_monoxide + expansion_rules: + class: "[(niveau|concentration) de ](CO|monoxyde de carbone)" + + # Current + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: current + slots: + domain: sensor + device_class: current + expansion_rules: + class: "[quantité de] courant [(é|e)lectrique]" # # Data rate - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: data_rate - # slots: - # domain: sensor - # device_class: data_rate - # expansion_rules: - # class: "[(download|upload|data)] (rate|speed)" - - # # Data size - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: data_size - # slots: - # domain: sensor - # device_class: data_size - # expansion_rules: - # class: "([data] size|(amount|size) of [the] data)" - - # # Date - # - sentences: - # - "" - # - "when ((is|was) |will be|(will|did) happen)" - # response: one - # requires_context: - # domain: sensor - # device_class: date - # slots: - # domain: sensor - # device_class: date - # expansion_rules: - # class: "[calendar[istic]] date" - - # # Distance - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: distance - # slots: - # domain: sensor - # device_class: distance - # expansion_rules: - # class: "distance" - - # # Duration - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: duration - # slots: - # domain: sensor - # device_class: duration - # expansion_rules: - # class: "duration" - - # # Energy - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: energy - # slots: - # domain: sensor - # device_class: energy - # expansion_rules: - # class: "[amount of] energy" - - # # Energy storage - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: energy_storage - # slots: - # domain: sensor - # device_class: energy_storage - # expansion_rules: - # class: "[[total] amount of] [stored] energy" + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: data_rate + slots: + domain: sensor + device_class: data_rate + expansion_rules: + class: "(vitesse de téléchargement|débit) [(montant[e]|descendant[e])]" + + # Data size + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: data_size + slots: + domain: sensor + device_class: data_size + expansion_rules: + class: "(quantité|volume|taille) [(de|des)] [donné][e][s]" + + # Date + - sentences: + - "" + - "(Quand|Quel[l][e]) est [(le|la) prochain[e]] [(évènement|date)] [de] " + response: default + requires_context: + domain: sensor + device_class: date + slots: + domain: sensor + device_class: date + expansion_rules: + class: "date" + + # Distance + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: distance + slots: + domain: sensor + device_class: distance + expansion_rules: + class: "(distance|kilométr[ag][e][s])" + + # Duration + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: duration + slots: + domain: sensor + device_class: duration + expansion_rules: + class: "durée" + + # Energy + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: energy + slots: + domain: sensor + device_class: energy + expansion_rules: + class: "[quantité d']énergie" + + # Energy storage + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: energy_storage + slots: + domain: sensor + device_class: energy_storage + expansion_rules: + class: "[(total|quantité)] [d']énergie stockée" # # Skipping enum - # # Frequency - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: frequency - # slots: - # domain: sensor - # device_class: frequency - # expansion_rules: - # class: "frequency" - - # # Gas - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: gas - # slots: - # domain: sensor - # device_class: gas - # expansion_rules: - # class: "[amount of] gas [volume]" - - # # Humidity - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: humidity - # slots: - # domain: sensor - # device_class: humidity - # expansion_rules: - # class: "[(air|atmospheric)] [relative] humidity" - - # # Illuminance - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: illuminance - # slots: - # domain: sensor - # device_class: illuminance - # expansion_rules: - # class: "([amount of] illuminance|(light|brightness) level)" - - # # Irradiance - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: irradiance - # slots: - # domain: sensor - # device_class: irradiance - # expansion_rules: - # class: "([amount of] irradiance|[ir]radiation level)" + # Frequency + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: frequency + slots: + domain: sensor + device_class: frequency + expansion_rules: + class: "fréquence" + + # Gas + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: gas + slots: + domain: sensor + device_class: gas + expansion_rules: + class: "[(Quantité|Volume) [de]] gaz" + + # Humidity + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: humidity + slots: + domain: sensor + device_class: humidity + expansion_rules: + class: "[taux d']humidité[ (de l'air|relati(f|ve))]" + + # Illuminance + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: illuminance + slots: + domain: sensor + device_class: illuminance + expansion_rules: + class: "[niveau de ]luminosité" + + # Irradiance + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: irradiance + slots: + domain: sensor + device_class: irradiance + expansion_rules: + class: "[niveau d'](irradiance|irradiation)" # # Moisture - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: moisture - # slots: - # domain: sensor - # device_class: moisture - # expansion_rules: - # class: "([relative] moisture|(percentage|ratio) of water)" - - # # Monetary - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: monetary - # slots: - # domain: sensor - # device_class: monetary - # expansion_rules: - # class: "[amount of] (money|cash|cost)" - - # # Nitrogen dioxide - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: nitrogen_dioxide - # slots: - # domain: sensor - # device_class: nitrogen_dioxide - # expansion_rules: - # class: "(nitrogen dioxide|NO2) (level|concentration)" - - # # Nitrogen monoxide - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: nitrogen_monoxide - # slots: - # domain: sensor - # device_class: nitrogen_monoxide - # expansion_rules: - # class: "(nitrogen monoxide|NO) (level|concentration)" - - # # Nitrous oxide - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: nitrous_oxide - # slots: - # domain: sensor - # device_class: nitrous_oxide - # expansion_rules: - # class: "(nitrous oxide|N2O) (level|concentration)" - - # # Ozone - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: ozone - # slots: - # domain: sensor - # device_class: ozone - # expansion_rules: - # class: "(ozone|O3) level" - - # # PM1 - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: pm1 - # slots: - # domain: sensor - # device_class: pm1 - # expansion_rules: - # class: "((level|concentration) [of] PM1 [particles]|PM1 [particles] [level|concentration])" - - # # PM2.5 - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: pm25 - # slots: - # domain: sensor - # device_class: pm25 - # expansion_rules: - # class: "((level|concentration) [of] PM2.5 [particles]|PM2.5 [particles] [level|concentration])" - - # # PM10 - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: pm10 - # slots: - # domain: sensor - # device_class: pm10 - # expansion_rules: - # class: "((level|concentration) [of] PM10 [particles]|PM10 [particles] [level|concentration])" - - # # Power factor - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: power_factor - # slots: - # domain: sensor - # device_class: power_factor - # expansion_rules: - # class: "power factor" - - # # Power - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: power - # slots: - # domain: sensor - # device_class: power - # expansion_rules: - # class: "power" - - # # Precipitation - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: precipitation - # slots: - # domain: sensor - # device_class: precipitation - # expansion_rules: - # class: "[accumulated] (precipitation|(rain|snow)[fall]) [level|quantity]" - - # # Precipitation intensity - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: precipitation_intensity - # slots: - # domain: sensor - # device_class: precipitation_intensity - # expansion_rules: - # class: "(precipitation|(rain|snow)[fall]) (intensity|rate)" - - # # Pressure - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: pressure - # slots: - # domain: sensor - # device_class: pressure - # expansion_rules: - # class: "pressure" - - # # Reactive power - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: reactive_power - # slots: - # domain: sensor - # device_class: reactive_power - # expansion_rules: - # class: "reactive power" - - # # Signal strength - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: signal_strength - # slots: - # domain: sensor - # device_class: signal_strength - # expansion_rules: - # class: "signal strength" - - # # Sound pressure - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: sound_pressure - # slots: - # domain: sensor - # device_class: sound_pressure - # expansion_rules: - # class: "(sound|acoustic) pressure" - - # # Speed - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: speed - # slots: - # domain: sensor - # device_class: speed - # expansion_rules: - # class: "(speed|velocity)" - - # # Sulphur dioxide - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: sulphur_dioxide - # slots: - # domain: sensor - # device_class: sulphur_dioxide - # expansion_rules: - # class: "(sulphur dioxide|SO2) (level|concentration)" - - # # Temperature - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: temperature - # slots: - # domain: sensor - # device_class: temperature - # expansion_rules: - # class: "temperature" + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: moisture + slots: + domain: sensor + device_class: moisture + expansion_rules: + class: "[taux d']humidité[ (du sol| relati(f|ve))]" + + # Monetary + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: monetary + slots: + domain: sensor + device_class: monetary + expansion_rules: + class: "(coût|montant)" + + # Nitrogen dioxide + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: nitrogen_dioxide + slots: + domain: sensor + device_class: nitrogen_dioxide + expansion_rules: + class: "[(niveau|concentration) de ](dioxyde d'azote|NO2)" + + # Nitrogen monoxide + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: nitrogen_monoxide + slots: + domain: sensor + device_class: nitrogen_monoxide + expansion_rules: + class: "[(niveau|concentration) de ](monoxyde d'azote|NO)" + + # Nitrous oxide + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: nitrous_oxide + slots: + domain: sensor + device_class: nitrous_oxide + expansion_rules: + class: "[(niveau|concentration) de ](protoxyde d'azote|N2O)" + + # Ozone + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: ozone + slots: + domain: sensor + device_class: ozone + expansion_rules: + class: "[(niveau|concentration) (d'|de )](ozone|O3)" + + # PM1 + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: pm1 + slots: + domain: sensor + device_class: pm1 + expansion_rules: + class: "[(niveau|concentration) de ](particules [fines]|PM1)" + + # PM2.5 + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: pm25 + slots: + domain: sensor + device_class: pm25 + expansion_rules: + class: "[(niveau|concentration) de ](particules [fines]|PM2.5)" + + # PM10 + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: pm10 + slots: + domain: sensor + device_class: pm10 + expansion_rules: + class: "[(niveau|concentration) de ](particules [fines]|PM10)" + + # Power factor + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: power_factor + slots: + domain: sensor + device_class: power_factor + expansion_rules: + class: "facteur de puissance" + + # Power + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: power + slots: + domain: sensor + device_class: power + expansion_rules: + class: "puissance" + + # Precipitation + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: precipitation + slots: + domain: sensor + device_class: precipitation + expansion_rules: + class: "[cumul|quantité|niveau de ](pr(e|é)cipitation[s]|pluie|neige)" + + # Precipitation intensity + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: precipitation_intensity + slots: + domain: sensor + device_class: precipitation_intensity + expansion_rules: + class: "intensité de (pr(e|é)cipitation[s]|pluie|neige)" + + # Pressure + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: pressure + slots: + domain: sensor + device_class: pressure + expansion_rules: + class: "pression" + + # Reactive power + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: reactive_power + slots: + domain: sensor + device_class: reactive_power + expansion_rules: + class: "puissance r(é|e)active" + + # Signal strength + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: signal_strength + slots: + domain: sensor + device_class: signal_strength + expansion_rules: + class: "(force|puissance) (de|du) signal" + + # Sound pressure + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: sound_pressure + slots: + domain: sensor + device_class: sound_pressure + expansion_rules: + class: "[puissance de ]pression acoustique" + + # Speed + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: speed + slots: + domain: sensor + device_class: speed + expansion_rules: + class: "(vitesse|velocité|allure)" + + # Sulphur dioxide + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: sulphur_dioxide + slots: + domain: sensor + device_class: sulphur_dioxide + expansion_rules: + class: "[(niveau|concentration) de ](dioxyde de soufre|SO2)" + + # Temperature + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: temperature + slots: + domain: sensor + device_class: temperature + expansion_rules: + class: "temp(e|é)rature" # # Skipping Timestamp - # # Volatile organic compounds - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: volatile_organic_compounds - # slots: - # domain: sensor - # device_class: volatile_organic_compounds - # expansion_rules: - # class: "[concentration of] (VOC[s]|[volatile] organic compound[s])" - - # # Volatile organic compounds - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: volatile_organic_compounds_parts - # slots: - # domain: sensor - # device_class: volatile_organic_compounds_parts - # expansion_rules: - # class: "[(concentration|ratio) of] (VOC[s]|[volatile] organic compound[s])" - - # # Voltage - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: voltage - # slots: - # domain: sensor - # device_class: voltage - # expansion_rules: - # class: "voltage [drop]" - - # # Volume - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: volume - # slots: - # domain: sensor - # device_class: volume - # expansion_rules: - # class: "volume" - - # # Volume storage - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: volume_storage - # slots: - # domain: sensor - # device_class: volume_storage - # expansion_rules: - # class: "[total] [stored] volume" - - # # Water - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: water - # slots: - # domain: sensor - # device_class: water - # expansion_rules: - # class: "[total] ([amount of] [consumed] water|water consumption)" - - # # Weight - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: weight - # slots: - # domain: sensor - # device_class: weight - # expansion_rules: - # class: "(weight|mass)" - - # # Wind speed - # - sentences: - # - "" - # response: one - # requires_context: - # domain: sensor - # device_class: wind_speed - # slots: - # domain: sensor - # device_class: wind_speed - # expansion_rules: - # class: "[wind] (speed|velocity)" + # Volatile organic compounds + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: volatile_organic_compounds + slots: + domain: sensor + device_class: volatile_organic_compounds + expansion_rules: + class: "[(concentration|niveau) de ](VOC[s]|COV|composé[s] [organique[s]] volatil[s])" + + # Volatile organic compounds + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: volatile_organic_compounds_parts + slots: + domain: sensor + device_class: volatile_organic_compounds_parts + expansion_rules: + class: "[(concentration|niveau) de ]particules de (VOC[s]|COV|composé[s] [organique[s]] volatil[s])" + + # Voltage + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: voltage + slots: + domain: sensor + device_class: voltage + expansion_rules: + class: "volt[s][age]" + + # Volume + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: volume + slots: + domain: sensor + device_class: volume + expansion_rules: + class: "volume" + + # Volume storage + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: volume_storage + slots: + domain: sensor + device_class: volume_storage + expansion_rules: + class: "volume [total] [stocké]" + + # Water + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: water + slots: + domain: sensor + device_class: water + expansion_rules: + class: "[(quantité|consommation) ][totale ][d']eau[ consommée]" + + # Weight + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: weight + slots: + domain: sensor + device_class: weight + expansion_rules: + class: "(poids|masse)" + + # Wind speed + - sentences: + - "" + response: default + requires_context: + domain: sensor + device_class: wind_speed + slots: + domain: sensor + device_class: wind_speed + expansion_rules: + class: "[vitesse ][du ][vent]" diff --git a/sentences/fr/weather_HassGetWeather.yaml b/sentences/fr/weather_HassGetWeather.yaml index 7ace608a92..201a0276f3 100644 --- a/sentences/fr/weather_HassGetWeather.yaml +++ b/sentences/fr/weather_HassGetWeather.yaml @@ -3,7 +3,11 @@ intents: HassGetWeather: data: - sentences: - - "(|donne[s][-moi]) (le|la|les) (temps|météo|prévision[s]) (pour|à) " + - "(|donne[s][-moi]) (le|la|les) (temps|météo)" + - "(Donne[s]( |-)moi|Dis( |-)moi) le temps qu'il fait" + - "Quel temps fait-il" + - sentences: + - "(|donne[s][-moi]) (le|la|les) (temps|météo) (pour|à) " - "(Donne-moi|Dis-moi) le temps qu'il fait à " - "Quel temps fait-il à " requires_context: diff --git a/sentences/gl/_common.yaml b/sentences/gl/_common.yaml index 6ad243c3f3..8c66ddc28c 100644 --- a/sentences/gl/_common.yaml +++ b/sentences/gl/_common.yaml @@ -33,6 +33,22 @@ lists: type: "percentage" from: 0 to: 100 + on_off_states: + values: + - in: "(acendido|acendida|acendidos|acendidas)" + out: "on" + - in: "(apagado|apagada|apagados|apagadas)" + out: "off" + on_off_domains: + values: + - in: (luz|luces|lámpada|lámpadas) + out: light + - in: (ventilador|ventiladores) + out: fan + - in: (interrutor|interrutores) + out: switch + shopping_list_item: + wildcard: true temperature: range: type: "temperature" @@ -47,14 +63,25 @@ lists: - in: "f" out: "fahrenheit" expansion_rules: - name: "[o | a] {name}" + nome: "[o | a | os | as] {name}" + algun: "(algún|algunha|algúns|algunhas)" area: "[en | no | na | de | do | da] {area}" brightness: "{brightness}[%| porcento]" + cal: "(que|cal|cales)" + esta: "(está|están|existe|existen|hai)" acende: "(acende | activa)" + engadir: "(engada | engade)" + poñer: "(poña | pon | meta | mete)" temp: "[a] (temperatura)" temperature: "{temperature} [graos] [{temperature_unit}]" + todos: "(todos|todas|tódolos|tódalas)" skip_words: - "por favor" - "gracias" - "grazas" - "graciñas" + - "podes" + - "podería" + - "poderías" + - "dime" + - "dígame" diff --git a/sentences/gl/cover_HassTurnOff.yaml b/sentences/gl/cover_HassTurnOff.yaml index 55a8da4965..a1a81150fe 100644 --- a/sentences/gl/cover_HassTurnOff.yaml +++ b/sentences/gl/cover_HassTurnOff.yaml @@ -9,7 +9,7 @@ intents: device_class: garage domain: cover - sentences: - - pecha [a|as] [] + - pecha [a|as] [] response: cover_area slots: device_class: diff --git a/sentences/gl/cover_HassTurnOn.yaml b/sentences/gl/cover_HassTurnOn.yaml index 366962a7dd..f824a704ba 100644 --- a/sentences/gl/cover_HassTurnOn.yaml +++ b/sentences/gl/cover_HassTurnOn.yaml @@ -18,12 +18,12 @@ intents: - shutter domain: cover # - sentences: - # - abre + # - abre # requires_context: # domain: cover # response: cover # - sentences: - # - abre + # - abre # requires_context: # domain: cover # response: cover_area diff --git a/sentences/gl/homeassistant_HassGetState.yaml b/sentences/gl/homeassistant_HassGetState.yaml index c7d7b6af54..a864a17925 100644 --- a/sentences/gl/homeassistant_HassGetState.yaml +++ b/sentences/gl/homeassistant_HassGetState.yaml @@ -1,4 +1,38 @@ language: gl intents: HassGetState: - data: [] + data: + - sentences: + - " é [o estado] [do|da] []" + - "en que estado []" + - "como []" + response: one + excludes_context: + domain: + - scene + - script + + - sentences: + - "[se] {on_off_states:state} []" + - "[se] [] {on_off_states:state}" + response: one_yesno + excludes_context: + domain: + - cover + + - sentences: + - "[se] {on_off_domains:domain} {on_off_states:state} []" + response: any + + - sentences: + - "[se] [os|as] {on_off_domains:domain} [] {on_off_states:state} []" + - "[se] están [os|as] {on_off_domains:domain} [] {on_off_states:state}" + response: all + + - sentences: + - {on_off_domains:domain} {on_off_states:state} [] + response: which + + - sentences: + - (cantos|cantas) {on_off_domains:domain} {on_off_states:state} [] + response: how_many diff --git a/sentences/gl/homeassistant_HassTurnOff.yaml b/sentences/gl/homeassistant_HassTurnOff.yaml index 913294f26d..5c3e7e6814 100644 --- a/sentences/gl/homeassistant_HassTurnOff.yaml +++ b/sentences/gl/homeassistant_HassTurnOff.yaml @@ -3,5 +3,5 @@ intents: HassTurnOff: data: - sentences: - - apaga - - desactiva + - apaga + - desactiva diff --git a/sentences/gl/homeassistant_HassTurnOn.yaml b/sentences/gl/homeassistant_HassTurnOn.yaml index 7e98cdc4ae..a6be83eb7c 100644 --- a/sentences/gl/homeassistant_HassTurnOn.yaml +++ b/sentences/gl/homeassistant_HassTurnOn.yaml @@ -3,5 +3,5 @@ intents: HassTurnOn: data: - sentences: - - acende - - activa + - acende + - activa diff --git a/sentences/gl/light_HassLightSet.yaml b/sentences/gl/light_HassLightSet.yaml index 82de9d582e..2c8eedd10e 100644 --- a/sentences/gl/light_HassLightSet.yaml +++ b/sentences/gl/light_HassLightSet.yaml @@ -3,9 +3,9 @@ intents: HassLightSet: data: - sentences: - - pon [o] brillo (de | da | do) (a | ó) - - pon (ó | a) brillo - - pon a + - pon [o] brillo (de | da | do) (a | ó) + - pon (ó | a) brillo + - pon a response: brightness - sentences: - pon [o] brillo [ó] @@ -13,9 +13,9 @@ intents: - pon [ó] response: brightness_area - sentences: - - pon [o] brillo [de] [ó] + - pon [o] brillo [de] [ó] response: brightness - sentences: - - pon [a | en] [cor] {color} - - pon [[a] cor de] (a | en) {color} + - pon [a | en] [cor] {color} + - pon [[a] cor de] (a | en) {color} response: color diff --git a/sentences/gl/shopping_list_HassShoppingListAddItem.yaml b/sentences/gl/shopping_list_HassShoppingListAddItem.yaml new file mode 100644 index 0000000000..d58e344521 --- /dev/null +++ b/sentences/gl/shopping_list_HassShoppingListAddItem.yaml @@ -0,0 +1,11 @@ +language: "gl" +intents: + HassShoppingListAddItem: + data: + - sentences: + - á + - na + response: item_added + expansion_rules: + lista: "[miña ]lista[ da compra]" + item: "{shopping_list_item:item}" diff --git a/sentences/gl/weather_HassGetWeather.yaml b/sentences/gl/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..f829df3c51 --- /dev/null +++ b/sentences/gl/weather_HassGetWeather.yaml @@ -0,0 +1,10 @@ +language: gl +intents: + HassGetWeather: + data: + - sentences: + - "que tempo (vai|fai|quedou)" + - sentences: + - "que tempo (vai|fai|quedou) (en|na|no) " + requires_context: + domain: weather diff --git a/sentences/nl/_common.yaml b/sentences/nl/_common.yaml index 4314c2c2cc..f1f0ad0ba5 100644 --- a/sentences/nl/_common.yaml +++ b/sentences/nl/_common.yaml @@ -310,6 +310,9 @@ lists: shopping_list_item: wildcard: true + zone: + wildcard: true + expansion_rules: # generic expansion rules for sentences name: "[de|het] {name}" diff --git a/sentences/nl/light_HassTurnOff.yaml b/sentences/nl/light_HassTurnOff.yaml index bdd23a0c42..52979b423f 100644 --- a/sentences/nl/light_HassTurnOff.yaml +++ b/sentences/nl/light_HassTurnOff.yaml @@ -16,6 +16,24 @@ intents: domain: "light" name: "all" + # Turn off all lights in the same area as a satellite device + - sentences: + - "[] ([hier];[] ) [] uit" + - "[] [] [] uit in deze (ruimte|kamer)" + - " ([hier];[] ) [] (uit willen |uit kunnen |uit[ ])" + - " ([] [] (uit willen |uit kunnen |uit[ ]);in deze (ruimte|kamer))" + - " ([hier];[] ) [willen|kunnen] (uit[ ](zetten|doen)|uitschakelen)" + - " ([] [willen|kunnen] (uit[ ](zetten|doen)|uitschakelen);in deze (ruimte|kamer))" + - "([hier];[] ) (uit[ ](zetten|doen)|uitschakelen)" + - "[] (uit[ ](zetten|doen)|uitschakelen) in deze (ruimte|kamer)" + response: "lights_area" + expansion_rules: + hier: "[[ ]hier,[ ]in deze (ruimte|kamer)]" + slots: + domain: "light" + requires_context: + area: null + - sentences: - "[] ((overal|) | overal) uit" - " ((overal|) | overal) (uit willen |uit kunnen |uit[ ])" diff --git a/sentences/nl/light_HassTurnOn.yaml b/sentences/nl/light_HassTurnOn.yaml index 9ae9fc4319..97cc39af5d 100644 --- a/sentences/nl/light_HassTurnOn.yaml +++ b/sentences/nl/light_HassTurnOn.yaml @@ -17,3 +17,21 @@ intents: slots: domain: "light" name: "all" + + # Turn on all lights in the same area as a satellite device + - sentences: + - "[] ([hier];[] ) [] aan" + - "[] [] [] aan in deze (ruimte|kamer)" + - " ([hier];[] ) [] (aan willen |aan kunnen |aan[ ])" + - " ([] [] (aan willen |aan kunnen |aan[ ]);in deze (ruimte|kamer))" + - " ([hier];[] ) [willen|kunnen] (aan[ ](zetten|doen)|inschakelen)" + - " ([] [willen|kunnen] (aan[ ](zetten|doen)|inschakelen);in deze (ruimte|kamer))" + - "([hier];[] ) (aan[ ](zetten|doen)|inschakelen)" + - "[] (aan[ ](zetten|doen)|inschakelen) in deze (ruimte|kamer)" + response: "lights_area" + expansion_rules: + hier: "[[ ]hier,[ ]in deze (ruimte|kamer)]" + slots: + domain: "light" + requires_context: + area: null diff --git a/sentences/nl/person_HassGetState.yaml b/sentences/nl/person_HassGetState.yaml new file mode 100644 index 0000000000..9d133c1998 --- /dev/null +++ b/sentences/nl/person_HassGetState.yaml @@ -0,0 +1,111 @@ +language: nl +intents: + HassGetState: + data: + # https://www.home-assistant.io/integrations/person/ + - sentences: + - "waar [is|zijn] " + - "waar bevind[t|en] zich" + response: where + requires_context: + domain: person + slots: + domain: person + + - sentences: + - "[is|zijn] thuis" + response: one_zone + requires_context: + domain: person + slots: + domain: person + state: home + - sentences: + - "[is|zijn] (niet thuis|weg)" + response: one_zone + requires_context: + domain: person + slots: + domain: person + state: not_home + - sentences: + - "[is|zijn] [] [de|het] [zone] {zone:state}" + response: one_zone + requires_context: + domain: person + excludes_context: + state: home + slots: + domain: person + + - sentences: + - "is [er] iemand thuis" + response: any + slots: + domain: person + state: home + - sentences: + - "is [er] iemand (niet thuis|weg)" + response: any + slots: + domain: person + state: not_home + - sentences: + - "is [er] iemand [] [de|het] {zone:state}" + response: any + slots: + domain: person + + - sentences: + - "is iedereen thuis" + response: all + slots: + domain: person + state: home + - sentences: + - "is iedereen (niet thuis|weg)" + response: all + slots: + domain: person + state: not_home + - sentences: + - "is iedereen [] [de|het] {zone:state}" + response: all + slots: + domain: person + + - sentences: + - "wie (is|zijn) [er] [allemaal] thuis" + response: which + slots: + domain: person + state: home + - sentences: + - "wie (is|zijn) [er] [allemaal] (niet thuis|weg)" + response: which + slots: + domain: person + state: not_home + - sentences: + - "wie (is|zijn) [er] [allemaal] [] [de|het] {zone:state}" + response: which + slots: + domain: person + + - sentences: + - "hoe[ ]veel mensen zijn [er] thuis" + response: how_many + slots: + domain: person + state: home + - sentences: + - "hoe[ ]veel mensen zijn [er] (niet thuis|weg)" + response: how_many + slots: + domain: person + state: not_home + - sentences: + - "hoe[ ]veel mensen zijn [er] [] [de|het] {zone:state}" + response: how_many + slots: + domain: person diff --git a/sentences/nl/weather_HassGetWeather.yaml b/sentences/nl/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..8296e8de5a --- /dev/null +++ b/sentences/nl/weather_HassGetWeather.yaml @@ -0,0 +1,13 @@ +language: nl +intents: + HassGetWeather: + data: + - sentences: + - wat voor weer is het[ nu][ buiten] + - (wat|hoe) is (het[ huidige] weer|de[ huidige] weersvoorspelling)[ buiten] + + - sentences: + - (wat|hoe) is (het weer|de weersvoorspelling)( voor| in| volgens) + - wat voor weer is het[ nu]( voor| in| volgens) + requires_context: + domain: weather diff --git a/sentences/pl/homeassistant_HassNevermind.yaml b/sentences/pl/homeassistant_HassNevermind.yaml new file mode 100644 index 0000000000..aa36cefe59 --- /dev/null +++ b/sentences/pl/homeassistant_HassNevermind.yaml @@ -0,0 +1,7 @@ +language: pl +intents: + HassNevermind: + data: + - sentences: + - "nieważne" + - "anuluj" diff --git a/sentences/pt/_common.yaml b/sentences/pt/_common.yaml index 9323504b4c..1649c6187c 100644 --- a/sentences/pt/_common.yaml +++ b/sentences/pt/_common.yaml @@ -117,19 +117,21 @@ lists: wildcard: true expansion_rules: - muda: "(põe|ponha|muda|altera|coloca|deixa|pôr|mudar|alterar|colocar|deixar)" - liga: "(liga|ligue|acende|acenda|ligar|acender|ativa|ativar|ative)" - desliga: "(desliga|desligue|apaga|apague|desligar|apagar)" abre: "(abra|abre|abrir)" + adicionar: adicione|adiciona[r] + algum: "(algum|alguma|alguns|algumas)" + brilho: "{brightness}[%| porcento]" + colocar: coloque|coloca[r]|pôr|põe + desliga: "(desliga|desligue|apaga|apague|desligar|apagar)" + esta: "(está|estão|existe|existem)" fecha: "(fecha|feche|fechar)" - nome: "[(o|os|a|as)] {name}" - zona: "[(o|os|a|as)] {area}" + liga: "(liga|ligue|acende|acenda|ligar|acender|ativa|ativar|ative)" + muda: "(põe|ponha|muda|altera|coloca|deixa|pôr|mudar|alterar|colocar|deixar)" na_zona: "(no|na|da|do) {area}" - esta: "(está|estão|existe|existem)" + nome: "[(o|os|a|as)] {name}" qual: "(que|qual|qual é|quais)" - brilho: "{brightness}[%| porcento]" temperatura: "{temperature}[°| graus] [{temperature_unit}]" - algum: "(algum|alguma|alguns|algumas)" + zona: "[(o|os|a|as)] {area}" skip_words: - "por favor" diff --git a/sentences/pt/climate_HassClimateGetTemperature.yaml b/sentences/pt/climate_HassClimateGetTemperature.yaml index 8efcaca015..0077da594f 100644 --- a/sentences/pt/climate_HassClimateGetTemperature.yaml +++ b/sentences/pt/climate_HassClimateGetTemperature.yaml @@ -3,6 +3,6 @@ intents: HassClimateGetTemperature: data: - sentences: - - " [a] temperatura" + - " [a] temperatura [(do|da) {name}]" - " a temperatura " - "a que temperatura está " diff --git a/sentences/pt/shopping_list_HassShoppingListAddItem.yaml b/sentences/pt/shopping_list_HassShoppingListAddItem.yaml index 6bd9924423..81923bfc4e 100644 --- a/sentences/pt/shopping_list_HassShoppingListAddItem.yaml +++ b/sentences/pt/shopping_list_HassShoppingListAddItem.yaml @@ -3,11 +3,9 @@ intents: HassShoppingListAddItem: data: - sentences: - - à - - (|põe) na + - à + - na response: item_added expansion_rules: - my_list: "[minha ]lista[ de compras]" + lista: "[minha ]lista[ de compras]" item: "{shopping_list_item:item}" - adicionar: adicione|adiciona[r] - colocar: coloque|coloca[r] diff --git a/sentences/pt/todo_HassListAddItem.yaml b/sentences/pt/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..2545425ff9 --- /dev/null +++ b/sentences/pt/todo_HassListAddItem.yaml @@ -0,0 +1,13 @@ +language: "pt" +intents: + HassListAddItem: + data: + - sentences: + - à + - na + response: item_added + requires_context: + domain: todo + expansion_rules: + lista: "[minha ]lista [de ]{name}" + item: "{shopping_list_item:item}" diff --git a/sentences/pt/weather_HassGetWeather.yaml b/sentences/pt/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..253279cd4b --- /dev/null +++ b/sentences/pt/weather_HassGetWeather.yaml @@ -0,0 +1,10 @@ +language: pt +intents: + HassGetWeather: + data: + - sentences: + - "como está o tempo" + - sentences: + - "como está o tempo (em|no) " + requires_context: + domain: weather diff --git a/sentences/ro/_common.yaml b/sentences/ro/_common.yaml index 1eac587bd4..cf67902c88 100644 --- a/sentences/ro/_common.yaml +++ b/sentences/ro/_common.yaml @@ -551,6 +551,8 @@ expansion_rules: cate_class_sunt_state_in_zona: " ((sunt; ); [])" cate_class_verbState_in_zona: " (; [])" cate_detecteaza_object_in_zona: " ({bs_detection_states_active:state} ; [])" + + ce_class_indica_name_in_zona: "((ce|c(â|a)t[(ă|a)]) (indic(ă|a)|m(ă|a)soar(ă|a)|arat(ă|a)|are) [] | (|) ((indicat[(ă|a)]|ar(ă|a)tat[(ă|a)]|m(ă|a)surat[(ă|a)]) de[ c(ă|a)tre]|(a[l] [lui]|lui)) [])" skip_words: - "mulțumesc" - "multumesc" diff --git a/sentences/ro/climate_HassClimateGetTemperature.yaml b/sentences/ro/climate_HassClimateGetTemperature.yaml index 177fca3656..59bc7a855e 100644 --- a/sentences/ro/climate_HassClimateGetTemperature.yaml +++ b/sentences/ro/climate_HassClimateGetTemperature.yaml @@ -2,18 +2,20 @@ language: ro intents: HassClimateGetTemperature: data: + - sentences: + - "" + expansion_rules: + class_singular: "" - sentences: - "ce " - "(care | ) " - " grade sunt " - - " de " - - " de " + - " (de ;) " - " " - sentences: - "ce " - "(care | ) " - " grade sunt" - - " de " - - " de " + - " (de ;)" requires_context: area: diff --git a/sentences/ro/light_HassTurnOff.yaml b/sentences/ro/light_HassTurnOff.yaml index e9b618566b..88b7485557 100644 --- a/sentences/ro/light_HassTurnOff.yaml +++ b/sentences/ro/light_HassTurnOff.yaml @@ -21,4 +21,5 @@ intents: domain: light requires_context: area: + slot: true response: lights_area diff --git a/sentences/ro/light_HassTurnOn.yaml b/sentences/ro/light_HassTurnOn.yaml index 515a038831..5b85b0aa44 100644 --- a/sentences/ro/light_HassTurnOn.yaml +++ b/sentences/ro/light_HassTurnOn.yaml @@ -21,4 +21,5 @@ intents: domain: light requires_context: area: + slot: true response: lights_area diff --git a/sentences/ro/weather_HassGetWeather.yaml b/sentences/ro/weather_HassGetWeather.yaml index e03af8e192..2d4cce9df7 100644 --- a/sentences/ro/weather_HassGetWeather.yaml +++ b/sentences/ro/weather_HassGetWeather.yaml @@ -2,6 +2,10 @@ language: ro intents: HassGetWeather: data: + - sentences: + - "cum vremea[ afar(ă|a)]" + - "c(â|a)te grade sunt afar(ă|a)" + - " (de (frig|cald);) afar(ă|a)" - sentences: - "cum (vremea|afar(ă|a))[ [ ]]" - "c(â|a)te grade sunt[ afar(ă|a)][ [ ]]" diff --git a/sentences/ru/_common.yaml b/sentences/ru/_common.yaml index e1c81d87f7..72dfeda912 100644 --- a/sentences/ru/_common.yaml +++ b/sentences/ru/_common.yaml @@ -47,9 +47,9 @@ lists: on_off_states: values: - in: "включен[н][а|ы[е]|о[й]]" - out: "включен" + out: "on" - in: "выключен[н][а|ы[е]|о[й]]" - out: "выключен" + out: "off" on_off_domains: values: - in: (свет[а]|освещение|ламп[а|ы|ой|ами|у]|светильник(а|у|ом|и|ами)) @@ -61,13 +61,13 @@ lists: cover_states: values: - in: "открыт[а|о|ы|ой|ая|ые|ую]|не[ ]задернут[а|о|ы|ой|ая|ые|ую]|поднят[а|о|ы|ой|ая|ые|ую]" - out: "открыта" + out: "open" - in: "закрыт[а|о|ы|ой|ая|ые|ую]|задернут[а|о|ы|ой|ая|ые|ую]|опущен[а|о|ы|ой|ая|ые|ую]" - out: "закрыта" + out: "closed" - in: "открыва(е|ю)тся|поднима(е|ю)тся" - out: "открывается" + out: "opening" - in: "закрыва(е|ю)тся|опуска(е|ю)тся" - out: "закрывается" + out: "closing" cover_classes: values: - in: навес[а|ы|ом|ами] @@ -103,6 +103,8 @@ expansion_rules: set: (сдела(й|ть)|установи[ть]|постав(ь|ить)|поменя(й|ть)|измени[ть]|выстав(ь|ить)|переключи[ть]|переве(сти|ди)|увелич(ь|ить)|уменьш(и|ить)|подн(ими|ять)|опусти[ть]|прибав(ь|ить)|отн(ими|ять)|повыс(ь|ить)|пониз(ь|ить)) close: (закр(ой|ыть)|прикр(ой|ыть)|опусти[ть]) open: (откр(ой|ыть)|подн(ими|ять)) + what_is: "како(е|й)|какие|какая|каков[о|a]|[на]сколько|когда" + what_is_the_class_of_name: " [показани(е|я)|значени(е|я)|уровен(и|ь)] [показывает[ся]|отображает[ся]] [у|на] [датчик(а|е)|сенсор(а|е)] []" skip_words: - "пожалуйста" - "можешь" diff --git a/sentences/ru/homeassistant_HassNevermind.yaml b/sentences/ru/homeassistant_HassNevermind.yaml new file mode 100644 index 0000000000..e3f3133a8a --- /dev/null +++ b/sentences/ru/homeassistant_HassNevermind.yaml @@ -0,0 +1,11 @@ +language: ru +intents: + HassNevermind: + data: + - sentences: + - "Отмена" + - "Проехали" + - "Забудь" + - "Забей" + - "Неважно" + - "Отбой" diff --git a/sentences/ru/homeassistant_HassTurnOn.yaml b/sentences/ru/homeassistant_HassTurnOn.yaml index 0f1d5dfdcb..71b1670c66 100644 --- a/sentences/ru/homeassistant_HassTurnOn.yaml +++ b/sentences/ru/homeassistant_HassTurnOn.yaml @@ -4,6 +4,13 @@ intents: data: - sentences: - + excludes_context: + domain: + - binary_sensor + - cover + - scene + - script + - sensor - sentences: - response: cover diff --git a/sentences/ru/script_HassTurnOn.yaml b/sentences/ru/script_HassTurnOn.yaml new file mode 100644 index 0000000000..57df8eb943 --- /dev/null +++ b/sentences/ru/script_HassTurnOn.yaml @@ -0,0 +1,11 @@ +language: ru +intents: + HassTurnOn: + data: + - sentences: + - "[активируй|] [скрипт ]" + requires_context: + domain: script + slots: + domain: script + response: script diff --git a/sentences/ru/todo_HassListAddItem.yaml b/sentences/ru/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..fe629c0653 --- /dev/null +++ b/sentences/ru/todo_HassListAddItem.yaml @@ -0,0 +1,12 @@ +language: "ru" +intents: + HassListAddItem: + data: + - sentences: + - Добавь в + response: item_added + requires_context: + domain: todo + expansion_rules: + my_list: "[ мой][ список] {name}[ список]" + item: "{shopping_list_item:item}" diff --git a/sentences/ru/weather_HassGetWeather.yaml b/sentences/ru/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..0532c79402 --- /dev/null +++ b/sentences/ru/weather_HassGetWeather.yaml @@ -0,0 +1,10 @@ +language: ru +intents: + HassGetWeather: + data: + - sentences: + - "[Какая] погода" + - sentences: + - "[Какая] погода в " + requires_context: + domain: weather diff --git a/sentences/sk/homeassistant_HassNevermind.yaml b/sentences/sk/homeassistant_HassNevermind.yaml new file mode 100644 index 0000000000..f152f2af6b --- /dev/null +++ b/sentences/sk/homeassistant_HassNevermind.yaml @@ -0,0 +1,7 @@ +language: sk +intents: + HassNevermind: + data: + - sentences: + - "nevadí" + - "to nevadí" diff --git a/sentences/sk/todo_HassListAddItem.yaml b/sentences/sk/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..e51b394f1e --- /dev/null +++ b/sentences/sk/todo_HassListAddItem.yaml @@ -0,0 +1,12 @@ +language: "sk" +intents: + HassListAddItem: + data: + - sentences: + - (daj|pridaj|pripíš) (do|na) + response: item_added + requires_context: + domain: todo + expansion_rules: + my_list: "[ môj[ho]] {name}" + item: "{shopping_list_item:item}" diff --git a/sentences/sk/weather_HassGetWeather.yaml b/sentences/sk/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..e2af5f533f --- /dev/null +++ b/sentences/sk/weather_HassGetWeather.yaml @@ -0,0 +1,11 @@ +language: sk +intents: + HassGetWeather: + data: + - sentences: + - " počasie" + - sentences: + - " počasie[ ] " + - "[ ] počasie" + requires_context: + domain: weather diff --git a/sentences/sl/_common.yaml b/sentences/sl/_common.yaml index 8f1213608e..9cbf59bf94 100644 --- a/sentences/sl/_common.yaml +++ b/sentences/sl/_common.yaml @@ -35,9 +35,9 @@ lists: to: 100 brightness_level: values: - - in: (maksimum|najmočnejš(a|e|o)|najmočneje|maksimalno|največ|maks|max) + - in: (maksimum|najmočnejš(a|e|o)|najmočneje|maksimalno|največ[jo|ja|je]|maks|max|najsvetlej(e|še|šo)) out: 100 - - in: (minimum|minimalno|najmanjš(o|a|i|em)|najšibkejš(o|a|em|i)|najmanj|min) + - in: (minimum|minimaln(o|a)|najmanj[šo|ša|ši|še]|najšibkej(šo|ša|šem|ši|še|e|šo)|min) out: 1 temperature: range: @@ -50,13 +50,13 @@ lists: out: "celsius" on_off_states: values: - - in: "vklopljen[a|o|i|ih|e]|vključen[a|o|i|e|ih]|prižgan[e|i|o|ih]" + - in: "vklopljen[a|o|i|ih|e]|vključen[a|o|i|e|ih]|prižgan[a|e|i|o|ih]" out: "on" - - in: "izklopljen[a|i|ih|e]|izključen[a|i|ih|e|o]|ugasnjen[e|i|o|ih]" + - in: "izklopljen[a|o|i|ih|e]|izključen[a|i|ih|e|o]|ugasnjen[a|e|i|o|ih]" out: "off" on_off_domains: values: - - in: "luč[i|k|ke]| svetil[ke|ki|k|ka|a|o|i]| noč[ne|ni|no|nih] luč[i|ke|ka|ki]" + - in: "luč[i|k|ke]| svetil[ke|ki|k|ka|a|o|i]" # | noč[ne|ni|no|nih] luč[i|ke|ka|ki]" out: light - in: "ventilator[ji|ja|je|ju|jem]| ventilaci[je|jo|ja|jem]| prezračevanje" out: fan @@ -88,51 +88,160 @@ lists: out: gate - in: vhodna vrata out: door - - in: žaluzij(a|e|o|e) + - in: žaluzij(a|e|o|i) out: blinds - - in: zapah[i|e]|pokrov + - in: zapah[i|e]|pokrov|polk(en|na|no|ni) out: shutter - - in: kuhinj(sko|ska|ski) okn(o|a|i) - out: window - in: ok(en|no|na|ni) out: window lock_states: values: - - in: "zaklenjen[a|i|o]" + - in: "zaklenjen[a|i|o|ih|e]" out: "locked" - - in: "odklenjen[a|i|o]" + - in: "odklenjen[a|i|o|e|ih]" out: "unlocked" + shopping_list_item: + wildcard: true + zone: + wildcard: true + + # binary sensors + bs_presence_states: + values: + - in: "(doma|prisoten)" + out: "on" + - in: "(proč|ni prisoten)" + out: "off" + + bs_battery_states: + values: + - in: "nizk(a|o|e|ih)|izpraznjen[a|i|e|ih]" + out: "on" + - in: "normal(en|na|no|ne|ni|nih)|napolnjen(e|a|o|ih)" + out: "off" + + bs_battery_charging_states: + values: + - in: "poln(enje|i|ijo)" + out: "on" + - in: "ne polni" + out: "off" + + bs_carbon_monoxide_states: + values: + - in: "(zaznan[o|i|ih]|sprožen[i|ih]|vključen[i|ih]|vklopljen[i|ih]|detektiran[i|ih])" + out: "on" + - in: "čisto" + out: "off" + + bs_cold_states: + values: + - in: "([zaznano] hladn(e|o|a)|[zaznano] mrzl(o|e|a|i))" + out: "on" + - in: "normaln(e|o|a|i)" + out: "off" + + bs_connectivity_states: + values: + - in: "priključen[a|e|i|ih]" + out: "on" + - in: "izključen[a|e|i|ih]" + out: "off" + + bs_door_states: + values: + - in: "odprt(a|e|i|ih|o)" + out: "on" + - in: "zaprt(a|e|i|o|ih)" + out: "off" + + bs_garage_door_states: + values: + - in: "odprt(a|e|i|ih|o)" + out: "on" + - in: "zaprt(a|e|i|o|ih)" + out: "off" + + bs_gas_states: + values: + - in: "(zaznan[o|i|ih]|sprožen[o|i|ih]|vključen[o|i|ih])" + out: "on" + - in: "čisto" + out: "off" + + bs_heat_states: + values: + - in: "(vroč[i|e|a|ih]|top[el|li|lo|la|ih])" + out: "on" + - in: "normal(no|ni)" + out: "off" + + bs_light_states: + values: + - in: "zazna[no|na|l|li|lo]|detektira[n|na|no|l|li|lo]" + out: "on" + - in: "ni svetlobe" + out: "off" + + bs_lock_states: + values: + - in: "odklenjen[a|o|e]" + out: "on" + - in: "zaklenjen[e|a|o]" + out: "off" + + bs_moisture_states: + values: + - in: "mokr(a|o|i|ih)|izlitje|poplav(o|a|e)|lekaž(a|e|o)" + out: "on" + - in: "suh(a|o)" + out: "off" + + bs_motion_states: + values: + - in: "vključ(il|en|eni|enih|eno)|zazna[no|l|nani|li|nih]|sprož(il|en|eni|enih)|detektira(li|l|no|l|ni|nih)" + out: "on" + - in: "čisto" + out: "off" + expansion_rules: name: "{name}" - area: "[v | na] {area}[sob[o|e|i|ah]| prostor[u||e|a|ih]| kuhinj(i|a|skem|ski|ske|sko) [prosto[r|ru|re|rih]]| dnevn(i|em|ih) prostor[u|ih]| dnevn(i|a) sob(i|a)| spalni(ca|i)]| zuna(nja|j)" - brightness: "{brightness}[%| procent(a|e|ov|i)| odstot(ek|ka|kov|ki|kov|kih)| svetlost[i]]" + area: "[v|na] {area}" #|[v|na] [sob[o|e|i|ah]|[v|na] prostor[u||e|a|ih]| [v|na] kuhinj(i|a|skem|ski|ske|sko) [prosto[r|ru|re|rih]]|[v|na] dnevn(a|i|em|ih) [prostor[u|ih]]|[v|na] dnevn(i|a) sob(i|a)|[v|na] spalni(ca|ci)]| zuna(nja|j)| lop(a|i)| ut(a|i)| dvorišč(e|u|na|ni)| teras(i|e|a) + brightness: "{brightness}[[ ]%| procent(a|e|ov|i)| odstot(ek|ka|kov|ki|kov|kih)]" # |svetlost[i] color: "{color}[barv[o|e|i]| odten[ek|ke]| barv[e]]" - svetlost: "{brightness}" + dodaj: "dodaj|daj" + #svetlost: "{brightness}" temperature: "{temperature}[°| | celzija] [{temperature_unit}|°C ] " stopinj: "(stopin(j|ja|ji|je))" - temp: "temperatur[a|i|e|o]" - set: "(nastavi|spremeni|prilagodi|segrej|ohladi|dvigni|znižaj|spusti)" - #spremeni: "(nastavi|spremeni|prilagodi|segrej|ohladi|dvigni|znižaj|spusti)" + temp: "temperatur[a|i|e|o]|termostat" + set: "(nastavi|spremeni|prilagodi|segrej|ohladi|dvigni|znižaj|spusti|dodaj|daj)" close: "(zapri|spusti|zagrni|zatesni|z[a]vij)" open: "(odpri|dvigni|odgrni|razkrij|razvij|odkrij)" - covers: "([garažna|vhodna|balkonska|zadnja|sprednja|drsna|kuhinjska]) vrata| [strešn(o|i|a|ih)|kuhinjsk(o|a|i)] ok(no|ni|na|en) | rolet(a|o|i|e) | žaluzij(a|o|i|e) | markiz(a|i|e|o) | tend(a|i|e|o) | [pokrov|pokrivalo] bazena | ograj(a|i|e|o) | zaves(a|o|i|e)" - vklopi: "vključi[te|mo]|vklopi[te|mo]" - vključi: "vključi[te|mo]|vklopi[te|mo]" - izklopi: "izključi[te|mo]|ugasni[te|mo|izklopi]" + covers: "([garažna|vhodna|balkonska|zadnja|sprednja|drsna|kuhinjska]) vrata| [strešn(o|i|a|ih)|kuhinjsk(o|a|i)] ok(no|ni|na|en) | rolet(a|o|i|e) | žaluzij[a|o|i|e] | markiz(a|i|e|o) | tend(a|i|e|o) | (pokrov|pokrivalo) bazena | ograj(a|i|e|o) | zaves(a|o|i|e)" + vklopi: "vključi[te|mo]|vklopi[te|mo]|prižg[i|te]" + vključi: "vključi[te|mo]|vklopi[te|mo]|prižg[i|te]" + prižgi: "vključi[te|mo]|vklopi[te|mo]|prižg[i|te]" + izklopi: "izključi[te|mo]|ugasni[te|mo]|izklopi[te]" izključi: "izključi[te|mo]|ugasni[te|mo|izklopi]" + ugasni: "izključi[te|mo]|ugasni[te|mo|izklopi]" spremeni: "spremeni|prilagodi|nastavi|zamenjaj|zmanjšaj|povečaj|znižaj|ohladi|segrej" + numeric_value_set: "(spremeni|nastavi|obrni|zamenjaj|zmanjšaj|znižaj|povečaj|zvišaj|naredi|daj)" odpri: "odpri[te|mo]|dvigni[te|mo]" zapri: "zapri[te|mo]|spusti[te|mo]" katera_je: "kater[i|a|o] je|povej [mi]|katerakoli|katero|kateri|katera" kakšna_je: "kakšna je|povej [mi]" + kakšno_je: "kakšno je|povej [mi]" + katera: "kater[i|a|o]" + kateri: "kater[i|a|o]" + katere: "katere" koliko: "koliko" + kje_je: "kje je|kje|kje so|kje se nahaja[jo|ta]" vse: "[vsi|vsa|vse|vso]" vsa: "[vsi|vsa|vse|vso]" - lock: "vrata" + lock: "vrat[a]|ključavnic(e|a|o)" luč: "luč[i|ke|ko|ki|k]|svetil[a|i|o]|razsvetljav[e|o|a]|svetilk[e|o|a]" skip_words: - "prosim" - "takoj" - "lahko" - - "daj" diff --git a/sentences/sl/binary_sensor_HassGetState.yaml b/sentences/sl/binary_sensor_HassGetState.yaml new file mode 100644 index 0000000000..f1c6c1eb26 --- /dev/null +++ b/sentences/sl/binary_sensor_HassGetState.yaml @@ -0,0 +1,460 @@ +language: sl +intents: + HassGetState: + data: + # https://www.home-assistant.io/integrations/binary_sensor/ + # Battery + - sentences: + - "([ali] je|[ali] so) [baterija|napolnjenost [baterije]|kapaciteta [baterije]] {bs_battery_states:state} [[v|na] ]" + response: one_yesno + + requires_context: + domain: binary_sensor + device_class: battery + slots: + domain: binary_sensor + device_class: battery + + - sentences: + - "([ali] je|[ali] so) [napolnjenost|kapaciteta] [kater(a|e|i)] baterij(a|e) {bs_battery_states:state} [[v|na] ]" + response: any + slots: + domain: binary_sensor + device_class: battery + + - sentences: + - "([ali] so) [vse|vsi] baterij(a|e) {bs_battery_states:state} [[v|na] ]" + response: all + slots: + domain: binary_sensor + device_class: battery + + - sentences: + - "(katera|kateri|katere) baterij(e|a|i) (je|sta|so) {bs_battery_states:state} [[v|na] ]" + response: which + slots: + domain: binary_sensor + device_class: battery + + - sentences: + - "koliko baterij (ima|je) {bs_battery_states:state} [napolnjenost|kapaciteto] [[v|na] ]" + response: how_many + slots: + domain: binary_sensor + device_class: battery + + # Battery charging + - sentences: + - "([ali] je|[ali] so|[ali] se) {bs_battery_charging_states:state} [[v|na] ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: battery_charging + slots: + domain: binary_sensor + device_class: battery_charging + + - sentences: + - "([ali] se) [kater(i|a)] [baterija|telefon] {bs_battery_charging_states:state} [[v|na] ]" + response: any + slots: + domain: binary_sensor + device_class: battery_charging + + - sentences: + - "([ali] se) vs[i|e] (baterije|telefoni) {bs_battery_charging_states:state} [[v|na] ]" + response: all + slots: + domain: binary_sensor + device_class: battery_charging + + - sentences: + - "(katere|kateri|katera) (baterij(a|e|i)|telefon[i|a]) se {bs_battery_charging_states:state} [[v|na] ]" + response: which + slots: + domain: binary_sensor + device_class: battery_charging + + - sentences: + - "koliko (baterij|telefon[ov]) se {bs_battery_charging_states:state} [[v|na] ]" + response: how_many + slots: + domain: binary_sensor + device_class: battery_charging + + # Carbon monoxide + - sentences: + - "([ali] je) ( {bs_carbon_monoxide_states:state}| {bs_carbon_monoxide_states:state} ) [[v|na] ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: carbon_monoxide + slots: + domain: binary_sensor + device_class: carbon_monoxide + + - sentences: + - "([ali] je) kateri (CO2 (senzor|detektor)| (senzor|detektor) ogljikovega monoksida) {bs_carbon_monoxide_states:state} [[v|na] ]" + response: any + slots: + domain: binary_sensor + device_class: carbon_monoxide + + - sentences: + - "([ali je| je]) [kateri] (CO2 (senzor|detektor)| (senzor|detektor) ogljikovega monoksida) [v|na] " + - "([ali je| je]) (zaznan| sprožen| detektiran) (ogljikov monoksid| CO2| CO) [v|na] " + response: any + slots: + domain: binary_sensor + device_class: carbon_monoxide + state: "on" + + - sentences: + - "(ali so| so) [vsi] (senzorji| detektorji) (ogljikovega monoksida| CO) {bs_carbon_monoxide_states:state} [[v|na] ]" + response: all + slots: + domain: binary_sensor + device_class: carbon_monoxide + + - sentences: + - "kateri (senzor[ji]| detektor[ji]) (ogljikovega monoksida| CO) (so| je) {bs_carbon_monoxide_states:state} [[v|na] ]" + response: which + slots: + domain: binary_sensor + device_class: carbon_monoxide + + - sentences: + - "koliko (senzor[jev]| detektor[jev]) (ogljikovega monoksida| CO) je {bs_carbon_monoxide_states:state} [[v|na] ]" + response: how_many + slots: + domain: binary_sensor + device_class: carbon_monoxide + + # Cold + - sentences: + - "([ali] so|[ali] je) {bs_cold_states:state} [[v|na] ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: cold + slots: + domain: binary_sensor + device_class: cold + + - sentences: + - "([ali] so|[ali] je) (kateri senzor| kaj) [zazna[l|no]|detektiral] (hlad[en|no]|mrz[el|lo]) [[v|na] ]" + response: any + slots: + domain: binary_sensor + device_class: cold + state: "on" + + - sentences: + - "[[ali] je|[ali] so] kateri senzor[ji] [je|so] [zaznal|detektiral] (hlad[ni|en|no]| mrz[li|el|lo]) [[v|na] ]" + response: which_bs + slots: + domain: binary_sensor + device_class: cold + state: "on" + + - sentences: + - "koliko senzorjev je [zaznalo|detektiralo] (mrzl[o|ih]| hladn[o|ih]) [[v|na] ]" + response: how_many + slots: + domain: binary_sensor + device_class: cold + state: "on" + + # Connectivity + - sentences: + - "([ali] je|[ali] so) {bs_connectivity_states:state} [[v|na] ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: connectivity + slots: + domain: binary_sensor + device_class: connectivity + + - sentences: + - "([ali] je|[ali] so) katera naprav(a|e) {bs_connectivity_states:state} [[v|na] ]" + response: any + slots: + domain: binary_sensor + device_class: connectivity + + - sentences: + - "[ali] so [vse] naprave {bs_connectivity_states:state} [[v|na] ]" + response: all + slots: + domain: binary_sensor + device_class: connectivity + + - sentences: + - "kater(e|a|i) naprav(e|a|i) (je|sta|so) {bs_connectivity_states:state} [[v|na] ]" + response: which + slots: + domain: binary_sensor + device_class: connectivity + + - sentences: + - "koliko naprav je {bs_connectivity_states:state} [[v|na] ]" + response: how_many + slots: + domain: binary_sensor + device_class: connectivity + + # Door + - sentences: + - "([ali] so) {bs_door_states:state} [[v|na] ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: door + slots: + domain: binary_sensor + device_class: door + + # Garage door + - sentences: + - "([ali] so) {bs_garage_door_states:state} [[v|na] ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: garage_door + slots: + domain: binary_sensor + device_class: garage_door + + # Gas + - sentences: + - "([ali] je) {bs_gas_states:state} [[v|na] ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: gas + slots: + domain: binary_sensor + device_class: gas + + - sentences: + - "([ali] je|[ali] so) {bs_gas_states:state} [kakš[en|ni]] (senzor[ji]|detektor[ji]) plina [[v|na] ]" + response: any + slots: + domain: binary_sensor + device_class: gas + + - sentences: + - "([ali] je) [zaznan[o]|detektiran[o]] [kaj] plin[a] [v|na] " + #- "([ali] je) zaznan plin [v|na] " + response: any + slots: + domain: binary_sensor + device_class: gas + state: "on" + + - sentences: + - "([ali] so) [vsi] (senzorji|detektorji) plina {bs_gas_states:state} [[v|na] ]" + response: all + slots: + domain: binary_sensor + device_class: gas + + - sentences: + - "kater[i] (senzor[ji]|detektor[ji]) plina (je|so) {bs_gas_states:state} [[v|na] ]" + response: which_bs + slots: + domain: binary_sensor + device_class: gas + + - sentences: + - "koliko (senzorjev|detektorjev) plina je {bs_gas_states:state} [[v|na] ]" + response: how_many + slots: + domain: binary_sensor + device_class: gas + + # Heat + - sentences: + - "([ali] je|[ali] so) {bs_heat_states:state} [[v|na] ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: heat + slots: + domain: binary_sensor + device_class: heat + + - sentences: + - "([ali] je) (kaj|kateri|kakšen) [senzor] (vroč[e]|top[lo|el]) [[v|na] ]" + response: any + slots: + domain: binary_sensor + device_class: heat + state: "on" + + - sentences: + - "(kater[a|e|i]) (stvar[i]|senzor[ji]) (je|so) (vroč[a|e]|top[la|el|le|li]) [[v|na] ]" + response: which + slots: + domain: binary_sensor + device_class: heat + state: "on" + + - sentences: + - "koliko (stvari|senzorjev) je (toplih|vročih) [[v|na] ]" + response: how_many + slots: + domain: binary_sensor + device_class: heat + state: "on" + + # Light + - sentences: + - "([ali] je) ({bs_light_states:state} | {bs_light_states:state}) [[v|na] ]" + - "([ali] je|[ali] so) (senzor[ji]|detektor[ji]) {bs_light_states:state} [[v|na] ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: light + slots: + domain: binary_sensor + device_class: light + + - sentences: + - "([ali] je) kateri senzor {bs_light_states:state} svetlobo [[v|na] ]" + response: any + slots: + domain: binary_sensor + device_class: light + + - sentences: + - "([ali] so) vsi senzorji {bs_light_states:state} svetlobo [[v|na] ]" + response: all + slots: + domain: binary_sensor + device_class: light + + - sentences: + - "kateri senzor[ji] (je|so) {bs_light_states:state} svetlobo [[v|na]]" + response: which_bs + slots: + domain: binary_sensor + device_class: light + + - sentences: + - "koliko senzorjev je {bs_light_states:state} svetlobo [[v|na] ]" + response: how_many + slots: + domain: binary_sensor + device_class: light + + # Lock + - sentences: + - "([ali] so|[ali] je) {bs_lock_states:state} [[v|na] ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: lock + slots: + domain: binary_sensor + device_class: lock + + # Moisture + - sentences: + - "([ali] je) [zaznal|detektiral] {bs_moisture_states:state} [[v|na] ]" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: moisture + slots: + domain: binary_sensor + device_class: moisture + + - sentences: + - "([ali] je) [kateri|kakšen] (senzor|detektor) (puščanja|izlitja|lekaže) vode [zaznal|detektiral] {bs_moisture_states:state} [[v|na] ]" + - "([ali] so) tla [[v|na] ] {bs_moisture_states:state} [[v|na] ]" + - "([ali] je) [[v|na] ] kakšn(o|a) {bs_moisture_states:state} [[v|na] ]" + response: any + slots: + domain: binary_sensor + device_class: moisture + + - sentences: + - "([ali] je) [zaznan(a|o)|detektiran(o|a)] (izlitje|poplava|lekaža) [zaznan(a|o)|detektiran(a|o)] [[v|na] ]" + #- "is flooded" + response: any + slots: + domain: binary_sensor + device_class: moisture + state: "on" + + - sentences: + - "([ali] so|[ali] je) [vsi] (senzorji|detektorji) [izlitja|lekaže|poplave] [vode] (zaznali|detektirali) {bs_moisture_states:state} [[v|na] ]" + response: all + slots: + domain: binary_sensor + device_class: moisture + + - sentences: + - "kateri senzor[ji] [izlitja|lekaže|puščanja] vode (je|so) (zaznal[i]|detektiral[i]) {bs_moisture_states:state} [[v|na] ]" + response: which_bs + slots: + domain: binary_sensor + device_class: moisture + + - sentences: + - "koliko (senzorjev|detektorjev) [izlitja|puščanja|lekaže] [vode] je [zaznalo|detektiralo] {bs_moisture_states:state} [[v|na] ]" + response: how_many + slots: + domain: binary_sensor + device_class: moisture + + # Motion + - sentences: + - "([ali] je) [[v|na] ] {bs_motion_states:state}" + response: one_yesno + requires_context: + domain: binary_sensor + device_class: motion + slots: + domain: binary_sensor + device_class: motion + + - sentences: + - "([ali] je|[ali] so) [kakš[en|ni]|kateri] senzor[ji] gibanja {bs_motion_states:state} [[v|na] ]" + response: any + slots: + domain: binary_sensor + device_class: motion + + - sentences: + - "([ali] je) [zaznano|detektirano] kakšno gibanje [zaznano|detektirano] [[v|na] ]" + #- "is there [any] motion [in ]" + response: any + slots: + domain: binary_sensor + device_class: motion + state: "on" + + - sentences: + - "([ali] so) [vsi] (senzorji|detektorji) gibanja {bs_motion_states:state} [[v|na] ]" + response: all + slots: + domain: binary_sensor + device_class: motion + + - sentences: + - "kateri senzor[ji] gibanja (je|so) {bs_motion_states:state} [[v|na] ]" + - "kateri senzor[ji] (je|so) {bs_motion_states:state} gibanje [[v|na] ]" + response: which + slots: + domain: binary_sensor + device_class: motion + + - sentences: + - "koliko senzorjev gibanja je {bs_motion_states:state} [[v|na] ]" + response: how_many + slots: + domain: binary_sensor + device_class: motion diff --git a/sentences/sl/climate_HassClimateGetTemperature.yaml b/sentences/sl/climate_HassClimateGetTemperature.yaml index aa486b3e03..0be5fdf6ed 100644 --- a/sentences/sl/climate_HassClimateGetTemperature.yaml +++ b/sentences/sl/climate_HassClimateGetTemperature.yaml @@ -8,4 +8,4 @@ intents: - " " - "koliko stopinj je [[v|na] ]" - "povej mi [[v|na] ]" - - "kakšna je [] temperatura" + - "na koliko [stopinj] je [nastavljen[a]] [[v|na] ]" diff --git a/sentences/sl/cover_HassTurnOn.yaml b/sentences/sl/cover_HassTurnOn.yaml index da306f6c50..f4e4573636 100644 --- a/sentences/sl/cover_HassTurnOn.yaml +++ b/sentences/sl/cover_HassTurnOn.yaml @@ -16,7 +16,7 @@ intents: slots: device_class: - awning - - blind + - blinds - curtain - door - garage @@ -33,7 +33,7 @@ intents: slots: device_class: - awning - - blind + - blinds - curtain - door - garage diff --git a/sentences/sl/homeassistant_HassNevermind.yaml b/sentences/sl/homeassistant_HassNevermind.yaml new file mode 100644 index 0000000000..2d41ce33cb --- /dev/null +++ b/sentences/sl/homeassistant_HassNevermind.yaml @@ -0,0 +1,10 @@ +language: sl +intents: + HassNevermind: + data: + - sentences: + - "prekini" + - "odnehaj" + - "prekliči" + - "nima veze" + - "pozabi [na] [to] [kar sem rek[el|la]]" diff --git a/sentences/sl/light_HassLightSet.yaml b/sentences/sl/light_HassLightSet.yaml index dbac18c66e..d4c766633b 100644 --- a/sentences/sl/light_HassLightSet.yaml +++ b/sentences/sl/light_HassLightSet.yaml @@ -1,36 +1,51 @@ -language: sl +language: "sl" intents: HassLightSet: data: # brightness - sentences: - - " [luč[ke|i|ko]|svetil[ke|a|ko]|osvetlitev|razsvetljavo] [na] " + - "[] [na] [svetlosti]" + response: "brightness" + requires_context: + domain: light - sentences: - - " [svetlost|osvetlitev|jakost|moč|intenziteto] [luč[ke|i|ko]|svetil[ke|a|ko]|osvetlit[ve|ev]|razsvetljave] [v|na] [na] " - - " [svetlost|osvetlitev|jakost|moč|intenziteto] [luč[ke|i|ko]|svetil[ke|a|ko]|osvetlitev|razsvetljavo] na {brightness_level:brightness}" + - "[] svetlost [v|na] [na] " + - "[] svetlost [na] " + - "[] [v|na] [na] " + slots: + name: "all" response: "brightness" - # color + # Max/Min brightness - sentences: - - " [barv[e|o|i]|odtenek] [luč[ke|i|ko]|svetil[ke|a|ko]|osvetlit[ve|ev]|razsvetljave] [v|na] " - - " [barv[e|o|i|ni]|odtenek] [barv[e|o|i]|odtenek] [luč[ke|i|ko]|svetil[ke|a|ko]|osvetlit[ve|ev]|razsvetljave] [v|na] [v|na] " - - " [luč[ke|i|ko]|svetil[ke|a|ko]|osvetlit[ve|ev]|razsvetljave] [v|na] " - - " [v|na] " - response: "color" + - "[] [na] {brightness_level:brightness} [svetlost]" + - "[] [svetlost] [na] {brightness_level:brightness} [svetlost]" + requires_context: + domain: light + response: "brightness" - # min/max brightness - sentences: - - " [luč[ke|i|ko]|svetil[ke|a|ko]|osvetlitev|razsvetljavo] [na] {brightness_level:brightness}" - - " [svetlost|osvetlitev|jakost|moč|intenziteto] [luč[ke|i|ko]|svetil[ke|a|ko]|osvetlitev|razsvetljavo] [v|na] na {brightness_level:brightness}" - - " [svetlost|osvetlitev|jakost|moč|intenziteto] [luč[ke|i|ko]|svetil[ke|a|ko]|osvetlitev|razsvetljavo] na {brightness_level:brightness}" + - "[] svetlost [v|na] [na] {brightness_level:brightness}" + - "[] [svetlost] [v|na] [na] {brightness_level:brightness} [svetlost]" + - "{brightness_level:brightness} [svetlost] [v|na] " slots: - brightness: 100 - response: brightness + name: "all" + response: "brightness" + # color - sentences: - - " [nočn[e|i||o]] [luč[ke|i|ko]|svetil[ke|a|ko]|osvetlitev|razsvetljavo] [na] {brightness_level:brightness}" + - "[] [barvo] [na] {color} [barvo]" + - "[] {color} " + requires_context: + domain: light + response: "color" + - sentences: + - "[] [barvo] [v|na] [na|v] {color} [barvo]" + - "[] [barvo] [] [vs[o|eh|e]] [] [v|na] [na|v] {color} [barvo]" + - "[] {color} [] [v|na] " + - "[] [v|na] [na|v] {color} [barvo]" slots: - brightness: 1 - response: brightness + name: "all" + response: "color" diff --git a/sentences/sl/light_HassTurnOff.yaml b/sentences/sl/light_HassTurnOff.yaml index ad7cf26522..853dde154e 100644 --- a/sentences/sl/light_HassTurnOff.yaml +++ b/sentences/sl/light_HassTurnOff.yaml @@ -3,10 +3,50 @@ intents: HassTurnOff: data: - sentences: - - " [v|na] [sobi|prostoru] " - - " [vse] [luči|svetilke] [v] " - - " [vsa] [svetila] [v] " - - " [vso] [razsvetljavo] [v] " + - " [vs[a|e|o]] [[v|na] ]" + - " [vs[a|e|o]] [[v|na] ]" + - " [vs[a|e|o]] [[v] ]" + - " [vs[a|e|o]] [[v|na] ]" + - " [vs[a|e|o]] [razsvetljavo] [[v|na] ]" + expansion_rules: + light_devices: "([luč[i]]|[svetil[a|ke|ko|i]]|[razsvetljav[a|e|o]]|stikal[a|o] [za] luč[i|ke|ko])" + requires_context: + domain: "light" + - sentences: + - " [vs[a|e|o]] [v|na] " + - " [vs[a|e|o]] [v|na] " + - " [vs[a|e|o]] [v|na] " + - " [vs[a|e|o]] [razsvetljavo] [v|na] " + - " [vs[a|e|o]] " #eksperiment za 'kuhinjsko luč' + - " [vs[a|e|o]] " #eksperiment za 'kuhinjsko luč' + - " [vs[a|e|o]] " #eksperiment za 'kuhinjsko luč' + expansion_rules: + light_devices: "([luč[i]]|[svetil[a|ke|ko|i]]|[razsvetljav[a|e|o]]|stikal[a|o] [za] luč[i|ke|ko])" slots: domain: "light" response: lights_area + + - sentences: + - "[povsod] [vs[a|e|o]] [povsod]" + - "[povsod] [vs[a|e|o]] [povsod]" + expansion_rules: + light_devices: "([luč[i]]|[svetil[a|ke|ko|i]]|[razsvetljav[a|e|o]]|stikal[a|o] [za] luč[i|ke|ko])" + response: "light_all" + slots: + domain: "light" + name: "all" + + # Turn off lights in the same area as a satellite device + - sentences: + - " [vse] luči " + - " [vse] luči " + - " [vse] luči " + #- "[ the] lights( off;)" + response: "lights_area" + expansion_rules: + in_here: "[[ v] tu[kaj]]|[v [tem] prostoru]" + slots: + domain: "light" + requires_context: + area: + slot: true diff --git a/sentences/sl/light_HassTurnOn.yaml b/sentences/sl/light_HassTurnOn.yaml index 7fac66a44b..f1a01056c1 100644 --- a/sentences/sl/light_HassTurnOn.yaml +++ b/sentences/sl/light_HassTurnOn.yaml @@ -3,10 +3,33 @@ intents: HassTurnOn: data: - sentences: - - " [v|na] " - - " [vs[a|e]] [v] " - - " [vsa] [v] " - - " [vso] [razsvetljavo] [v] " + - " [vs[a|e|o]] [[v|na] ]" + - " [vs[a|e|o]] [[v|na] ]" + - " [vs[a|e|o]] [[v|na] ]" + - " [vs[a|e|o]] [razsvetljavo] [[v|na] ]" + expansion_rules: + light_devices: "([luč[i]]|[svetil[a|ke|ko|i]]|[razsvetljav[a|e|o]]|stikal[a|o] [za] [luč[i|ke|ko]])" + requires_context: + domain: "light" + + - sentences: + - " [vs[a|e|o]] [v|na] " + - " [vs[a|e|o]] " + - " [vs[a|e|o]] [v|na] " + - " [vs[a|e|o]] [v|na] " slots: domain: "light" response: "lights_area" + + # Turn on all lights in the same area as a satellite device + - sentences: + - " [vse] luči " + #- "[ the] lights( on;)" + response: "lights_area" + expansion_rules: + in_here: "[[ v] tu[kaj]]|[v [tem] prostoru]" + slots: + domain: "light" + requires_context: + area: + slot: true diff --git a/sentences/sl/lock_HassGetState.yaml b/sentences/sl/lock_HassGetState.yaml new file mode 100644 index 0000000000..60d1afb9ca --- /dev/null +++ b/sentences/sl/lock_HassGetState.yaml @@ -0,0 +1,36 @@ +language: sl +intents: + HassGetState: + data: + - sentences: + - "(ali so|je |ali je|so) {lock_states:state} [[v|na] ]" + response: one_yesno + requires_context: + domain: lock + slots: + domain: lock + + - sentences: + - "(ali so|ali je|je|so) [katera|kakšna] {lock_states:state} [[v|na] ]" + - "(ali so|ali je|je|so) [katera|kakšna] {lock_states:state} [[v|na] ]" + response: any + slots: + domain: lock + + - sentences: + - "(ali so|so) (vse|vsa) {lock_states:state} [[v|na] ]" + response: all + slots: + domain: lock + + - sentences: + - "(katere|katera) [je|so] {lock_states:state} [[v|na] ]" + response: which + slots: + domain: lock + + - sentences: + - "koliko je {lock_states:state} [[v|na] ]" + response: how_many + slots: + domain: lock diff --git a/sentences/sl/lock_HassTurnOff.yaml b/sentences/sl/lock_HassTurnOff.yaml new file mode 100644 index 0000000000..ebab958dad --- /dev/null +++ b/sentences/sl/lock_HassTurnOff.yaml @@ -0,0 +1,17 @@ +language: sl +intents: + HassTurnOff: + data: + - sentences: + - "odkleni [[v|na] ]" + requires_context: + domain: lock + response: lock + + - sentences: + - "odkleni [vsa|vse] [[v|na] ]" + - "odkleni [vsa|vse] " + slots: + domain: "lock" + name: "all" + response: lock diff --git a/sentences/sl/lock_HassTurnOn.yaml b/sentences/sl/lock_HassTurnOn.yaml new file mode 100644 index 0000000000..740f788419 --- /dev/null +++ b/sentences/sl/lock_HassTurnOn.yaml @@ -0,0 +1,16 @@ +language: sl +intents: + HassTurnOn: + data: + - sentences: + - "zakleni [[v|na] ]" + requires_context: + domain: lock + response: lock + - sentences: + - "zakleni [vse|vsa] [[v|na] ]" + - "zakleni [vse|vsa] " + slots: + domain: "lock" + name: "all" + response: lock diff --git a/sentences/sl/person_HassGetState.yaml b/sentences/sl/person_HassGetState.yaml new file mode 100644 index 0000000000..fc71a6f44f --- /dev/null +++ b/sentences/sl/person_HassGetState.yaml @@ -0,0 +1,44 @@ +language: sl +intents: + HassGetState: + data: + # https://www.home-assistant.io/integrations/person/ + - sentences: + - " " + response: where + requires_context: + domain: person + slots: + domain: person + + - sentences: + - "[ali] je [v|na] {zone:state}" + response: one_yesno + requires_context: + domain: person + slots: + domain: person + + - sentences: + - "[ali] je (nekdo|kdo) [v|na] {zone:state}" + response: any + slots: + domain: person + + - sentences: + - "ali so vsi [v|na] {zone:state}" + response: all + slots: + domain: person + + - sentences: + - "kdo je [v|na] {zone:state}" + response: which + slots: + domain: person + + - sentences: + - "koliko (oseb|ljudi) je [v|na] {zone:state}" + response: how_many + slots: + domain: person diff --git a/sentences/sl/scene_HassTurnOn.yaml b/sentences/sl/scene_HassTurnOn.yaml new file mode 100644 index 0000000000..cf22855a01 --- /dev/null +++ b/sentences/sl/scene_HassTurnOn.yaml @@ -0,0 +1,11 @@ +language: sl +intents: + HassTurnOn: + data: + - sentences: + - "(aktiviraj||zaženi) [sceno] [sceno]" + requires_context: + domain: scene + slots: + domain: scene + response: scene diff --git a/sentences/sl/script_HassTurnOn.yaml b/sentences/sl/script_HassTurnOn.yaml new file mode 100644 index 0000000000..b58bd8b237 --- /dev/null +++ b/sentences/sl/script_HassTurnOn.yaml @@ -0,0 +1,11 @@ +language: sl +intents: + HassTurnOn: + data: + - sentences: + - "(aktiviraj||zaženi) [skripto] " + requires_context: + domain: script + slots: + domain: script + response: script diff --git a/sentences/sl/shopping_list_HassShoppingListAddItem.yaml b/sentences/sl/shopping_list_HassShoppingListAddItem.yaml new file mode 100644 index 0000000000..2fe27b5e1e --- /dev/null +++ b/sentences/sl/shopping_list_HassShoppingListAddItem.yaml @@ -0,0 +1,10 @@ +language: sl +intents: + HassShoppingListAddItem: + data: + - sentences: + - (dodaj| daj) (v|na) [moj] + response: item_added + expansion_rules: + my_list: "[nakupovalni] (seznam|lista) [za] [nakup[e]|nabavo|trgovino|šoping|fasungo]" + item: "{shopping_list_item:item}" diff --git a/sentences/sl/todo_HassListAddItem.yaml b/sentences/sl/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..fdb6abae68 --- /dev/null +++ b/sentences/sl/todo_HassListAddItem.yaml @@ -0,0 +1,12 @@ +language: "sl" +intents: + HassListAddItem: + data: + - sentences: + - (dodaj| daj) na [seznam|listo] [za] + response: item_added + requires_context: + domain: todo + expansion_rules: + my_list: "[moj|skupen|družinski|tedenski] [seznam|listo] [za] {name}" + item: "{shopping_list_item:item}" diff --git a/sentences/sl/weather_HassGetWeather.yaml b/sentences/sl/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..a928aaf38d --- /dev/null +++ b/sentences/sl/weather_HassGetWeather.yaml @@ -0,0 +1,8 @@ +language: sl +intents: + HassGetWeather: + data: + - sentences: + - " vreme [[ v| na] ]" + requires_context: + domain: weather diff --git a/sentences/uk/_common.yaml b/sentences/uk/_common.yaml index bc3a24d4b8..b7c9f2f692 100644 --- a/sentences/uk/_common.yaml +++ b/sentences/uk/_common.yaml @@ -28,6 +28,10 @@ lists: out: "purple" - in: "коричневий | коричнев(им|ою|ого)" out: "brown" + - in: "рожевий | рожев(им|ою|ого)" + out: "pink" + - in: "бірюзовий | бірюзов(им|ою|ого)" + out: "turquoise" brightness: range: type: "percentage" @@ -44,6 +48,18 @@ lists: out: "celsius" - in: "f | фаренгейту | за фаренгейтом" out: "fahrenheit" + brightness_level: + values: + - in: "максим(альна|ий) | максимум | [як] найяскравіше | [дуже|над] яскрав(о|ий)" + out: 100 + - in: "три чверті" + out: 75 + - in: "середн(ій|я|ю) | (на|в|у) половин(а|у) | [у|в] півсили" + out: 50 + - in: "(на) чверть" + out: 25 + - in: "мінімум | мінімальний| тускл(ий|о) | найтускліший | приглуш(ений|но)" + out: 1 on_off_states: values: - in: "(в|у)вімкнен(ий|на|і|их|о) | (в|у)вімкнут(ий|а|і|их|о)" @@ -70,7 +86,7 @@ lists: out: "closing" cover_classes: values: - - in: awning[s] + - in: тент[и] out: awning - in: жалюзі out: blind @@ -82,13 +98,211 @@ lists: out: garage - in: брам[а|и] | вор(о|і)т[а] out: gate - - in: shade[s] + - in: ролет[и] | заслінк(а|и) out: shade - in: ставні | ставень out: shutter - in: вікн(о|а) | вікон out: window + # Lock domain + lock_states: + values: + - in: "закрит(о|ий|а) | замкнен(о|ий|а) | зачинен(о|ий|а)" + out: "locked" + - in: "відкрит(о|ий|а) | відімкнен(о|ий|а) | відчинен(о|ий|а)" + out: "unlocked" + + # binary_sensor + bs_battery_states: + values: + - in: "низький" + out: "on" + - in: "нормальний" + out: "off" + + bs_battery_charging_states: + values: + - in: "заряджається" + out: "on" + - in: "не заряджається" + out: "off" + + bs_carbon_monoxide_states: + values: + - in: "виявлено" + out: "on" + - in: "чисто" + out: "off" + + bs_cold_states: + values: + - in: "холодно" + out: "on" + - in: "нормально" + out: "off" + + bs_connectivity_states: + values: + - in: "підключено" + out: "on" + - in: "відключено" + out: "off" + + bs_door_states: + values: + - in: "відкриті" + out: "on" + - in: "закриті" + out: "off" + + bs_garage_door_states: + values: + - in: "відкриті" + out: "on" + - in: "закриті" + out: "off" + + bs_gas_states: + values: + - in: "виявлено" + out: "on" + - in: "чисто" + out: "off" + + bs_heat_states: + values: + - in: "гаряче" + out: "on" + - in: "нормально" + out: "off" + + bs_light_states: + values: + - in: "виявлено" + out: "on" + - in: "не виявлено" + out: "off" + + bs_lock_states: + values: + - in: "відкрито" + out: "on" + - in: "закрито" + out: "off" + + bs_moisture_states: + values: + - in: "волого" + out: "on" + - in: "сухо" + out: "off" + + bs_motion_states: + values: + - in: "виявлено" + out: "on" + - in: "чисто" + out: "off" + + bs_occupancy_states: + values: + - in: "виявлено" + out: "on" + - in: "чисто" + out: "off" + + bs_opening_states: + values: + - in: "відкрито" + out: "on" + - in: "закрито" + out: "off" + + bs_plug_states: + values: + - in: "під'єднано" + out: "on" + - in: "від'єднано" + out: "off" + + bs_power_states: + values: + - in: "(увімкнено|виявлено)" + out: "on" + - in: "(вимкнено|не виявлено)" + out: "off" + + bs_presence_states: + values: + - in: "(вдома|виявлено)" + out: "on" + - in: "(не вдома|не виявлено)" + out: "off" + + bs_problem_states: + values: + - in: "виявлено" + out: "on" + - in: "все добре" + out: "off" + + bs_running_states: + values: + - in: "запущено" + out: "on" + - in: "не запущено" + out: "off" + + bs_safety_states: + values: + - in: "небезпечно" + out: "on" + - in: "безпечно" + out: "off" + + bs_smoke_states: + values: + - in: "виявлено" + out: "on" + - in: "чисто" + out: "off" + + bs_sound_states: + values: + - in: "виявлено" + out: "on" + - in: "чисто" + out: "off" + + bs_tamper_states: + values: + - in: "виявлено" + out: "on" + - in: "чисто" + out: "off" + + bs_update_states: + values: + - in: "має оновлення" + out: "on" + - in: "(оновлено|остання версія)" + out: "off" + + bs_vibration_states: + values: + - in: "(виявлено|вібрує|вібрація)" + out: "on" + - in: "(чисто|не вібрує|нема вібрації)" + out: "off" + + bs_window_states: + values: + - in: "відкрито" + out: "on" + - in: "закрито" + out: "closed" + shopping_list_item: wildcard: true diff --git a/sentences/uk/homeassistant_HassNevermind.yaml b/sentences/uk/homeassistant_HassNevermind.yaml new file mode 100644 index 0000000000..380d34c035 --- /dev/null +++ b/sentences/uk/homeassistant_HassNevermind.yaml @@ -0,0 +1,9 @@ +language: uk +intents: + HassNevermind: + data: + - sentences: + - "не зважай" + - "не важливо" + - "не звертай уваги" + - "скасу(й|вати)" diff --git a/sentences/uk/script_HassTurnOn.yaml b/sentences/uk/script_HassTurnOn.yaml new file mode 100644 index 0000000000..7d991fadc7 --- /dev/null +++ b/sentences/uk/script_HassTurnOn.yaml @@ -0,0 +1,12 @@ +language: uk +intents: + HassTurnOn: + data: + - sentences: + - "[запусти|почни|стартуй|активуй] [скрипт]" + - "[запусти|почни|стартуй|активуй] скрипт " + requires_context: + domain: script + slots: + domain: script + response: script diff --git a/sentences/uk/todo_HassListAddItem.yaml b/sentences/uk/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..db02dd68c2 --- /dev/null +++ b/sentences/uk/todo_HassListAddItem.yaml @@ -0,0 +1,13 @@ +language: uk +intents: + HassListAddItem: + data: + - sentences: + - додай (в|до) + - добав (в|до) + response: item_added + requires_context: + domain: todo + expansion_rules: + my_list: "[ мій| мої| мого][ список| списку] {name}" + item: "{shopping_list_item:item}" diff --git a/shared/__init__.py b/shared/__init__.py index ddf34ea68b..1f1cd15c3a 100644 --- a/shared/__init__.py +++ b/shared/__init__.py @@ -1,4 +1,5 @@ from dataclasses import dataclass, field +from functools import partial from typing import Any, Dict, Optional, List, Set, Tuple from hassil import parse_sentence @@ -60,6 +61,9 @@ def get_matched_states( if result.intent.name in ("HassClimateGetTemperature", "HassClimateSetTemperature"): # Match climate entities only states = [state for state in states if state.domain == "climate"] + elif result.intent.name in ("HassGetWeather",): + # Match weather entities only + states = [state for state in states if state.domain == "weather"] # Implement some matching logic from Home Assistant entity_name: Optional[str] = None @@ -177,11 +181,25 @@ def render_response( for entity in result.entities_list }, "state": state1, - "query": {"matched": matched, "unmatched": unmatched, "total_results": len(matched) + len(unmatched)}, + "query": { + "matched": matched, + "unmatched": unmatched, + "total_results": len(matched) + len(unmatched), + }, + "state_attr": partial(state_attr, matched), } ) +def state_attr(states: List[State], entity_id: str, attr_name: str) -> Any | None: + """Mimic state_attr from Home Assistant.""" + for state in states: + if state.entity_id == entity_id: + return state.attributes.get(attr_name) + + return None + + def get_slot_lists(fixtures: dict[str, Any]) -> dict[str, SlotList]: # Load test areas and entities for language slot_lists: dict[str, SlotList] = {} diff --git a/tests/ar/_fixtures.yaml b/tests/ar/_fixtures.yaml index bcb2766882..f7778b44ce 100644 --- a/tests/ar/_fixtures.yaml +++ b/tests/ar/_fixtures.yaml @@ -213,16 +213,16 @@ entities: - name: منظم الحراره id: "climate.reception_thermostat" area: "reception" - state: "22" + state: "heat" attributes: - unit_of_measurement: "°C" + current_temperature: 22 - name: منظم حرارة غرفة المعيشة id: "climate.living_room_thermostat" area: "living_room" - state: "22" + state: "heat" attributes: - unit_of_measurement: "°C" + current_temperature: 22 # SENSORS - name: درجة الحرارة الخارجية diff --git a/tests/ar/climate_HassClimateGetTemperature.yaml b/tests/ar/climate_HassClimateGetTemperature.yaml index b01710b68d..58d2df507a 100644 --- a/tests/ar/climate_HassClimateGetTemperature.yaml +++ b/tests/ar/climate_HassClimateGetTemperature.yaml @@ -5,7 +5,7 @@ tests: - "ماذا تكون درجة الحرارة" intent: name: HassClimateGetTemperature - response: "22 °C" + response: "22" - sentences: - "ما هي درجة حرارة غرفة المعيشة" @@ -15,7 +15,7 @@ tests: name: HassClimateGetTemperature slots: area: غرفة المعيشة - response: "22 °C" + response: "22" - sentences: - "كم هي دافئة في غرفة المعيشة" @@ -24,4 +24,4 @@ tests: name: HassClimateGetTemperature slots: area: غرفة المعيشة - response: "22 °C" + response: "22" diff --git a/tests/ar/homeassistant_HassGetState.yaml b/tests/ar/homeassistant_HassGetState.yaml index 79ded0fdc9..706415010d 100644 --- a/tests/ar/homeassistant_HassGetState.yaml +++ b/tests/ar/homeassistant_HassGetState.yaml @@ -22,7 +22,7 @@ tests: name: HassGetState slots: name: "منظم حرارة غرفة المعيشة" - response: "حالة منظم حرارة غرفة المعيشة هي 22 °C" + response: "حالة منظم حرارة غرفة المعيشة هي heat" - sentences: - "ما هي حالة منظم الحراره في غرفة استقبال الضيوف" @@ -31,7 +31,7 @@ tests: slots: name: "منظم الحراره" area: "غرفة استقبال الضيوف" - response: "حالة منظم الحراره هي 22 °C" + response: "حالة منظم الحراره هي heat" - sentences: - "ما هي حالة ستارة غرفة النوم" diff --git a/tests/cs/_fixtures.yaml b/tests/cs/_fixtures.yaml index 3f8362b7e4..e5dd6efc7f 100644 --- a/tests/cs/_fixtures.yaml +++ b/tests/cs/_fixtures.yaml @@ -89,3 +89,7 @@ entities: id: "scene.party" attributes: domain: scene + + - name: "Ovoce a zelenina" + id: "todo.ovoce_a_zelenina" + state: "" diff --git a/tests/cs/light_HassTurnOff.yaml b/tests/cs/light_HassTurnOff.yaml index 896fbb7425..8b0d74bac6 100644 --- a/tests/cs/light_HassTurnOff.yaml +++ b/tests/cs/light_HassTurnOff.yaml @@ -5,6 +5,7 @@ tests: - "vypnout světla v kuchyni" - "zhasni všechna světla v kuchyni" - "zhasni světla v kuchyni" + - "zhasni v kuchyni" intent: name: HassTurnOff slots: @@ -41,7 +42,6 @@ tests: name: HassTurnOff slots: domain: light - area: all name: all response: - "Všechna světla byla zhasnuta" diff --git a/tests/cs/light_HassTurnOn.yaml b/tests/cs/light_HassTurnOn.yaml index 31812d7d82..1c13ed8282 100644 --- a/tests/cs/light_HassTurnOn.yaml +++ b/tests/cs/light_HassTurnOn.yaml @@ -2,7 +2,9 @@ language: cs tests: - sentences: - "rozsviť světlo lampička v obývacím pokoji" + - "rozsviť lampičku v obývacím pokoji" - "zapni světlo lampička v obývacím pokoji" + - "zapni lampičku v obývacím pokoji" intent: name: HassTurnOn slots: @@ -14,10 +16,10 @@ tests: response: "Rozsvíceno" - sentences: + - "zapni předsíň" - "předsíň rozsviť" - "rozsviť předsíň" - "zapni světlo předsíň" - - "světlo předsíň zapni" intent: name: HassTurnOn slots: @@ -29,6 +31,8 @@ tests: - "zapni všechna světla v obývacím pokoji" - "zapni světla v obýváku" - "v obývacím pokoji zapni všechna světla" + - "rozsviť v obývacím pokoji" + - "rozsviť světla v obývacím pokoji" intent: name: HassTurnOn slots: diff --git a/tests/cs/todo_HassListAddItem.yaml b/tests/cs/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..4d99ffae79 --- /dev/null +++ b/tests/cs/todo_HassListAddItem.yaml @@ -0,0 +1,14 @@ +language: cs +tests: + - sentences: + - přidej jahody mražený na seznam ovoce a zelenina + - přidej jahody mražený do seznamu ovoce a zelenina + - připiš jahody mražený do seznamu ovoce a zelenina + - přidej jahody mražený na ovoce a zelenina + - dej jahody mražený do ovoce a zelenina + intent: + name: HassListAddItem + slots: + item: "jahody mražený " + name: "Ovoce a zelenina" + response: "Přidáno: jahody mražený" diff --git a/tests/de-CH/_fixtures.yaml b/tests/de-CH/_fixtures.yaml index 0ad4a9193e..f705c45ada 100644 --- a/tests/de-CH/_fixtures.yaml +++ b/tests/de-CH/_fixtures.yaml @@ -83,3 +83,16 @@ entities: id: lock.garage_door area: "garage" state: "unlocked" + + #lists + - name: "Ufgabe" + id: "todo.ufgabe" + state: "" + + #weather + - name: "Bärn" + id: "weather.bern" + state: "rainy" + attributes: + temperature: "8" + temperature_unit: "°C" diff --git a/tests/de-CH/shopping_list_HassShoppingListAddItem.yaml b/tests/de-CH/shopping_list_HassShoppingListAddItem.yaml index ed47dfb1ba..977f44d5ba 100644 --- a/tests/de-CH/shopping_list_HassShoppingListAddItem.yaml +++ b/tests/de-CH/shopping_list_HassShoppingListAddItem.yaml @@ -6,4 +6,4 @@ tests: name: HassShoppingListAddItem slots: item: "miuch " - response: "Ha miuch uf d Lyschte gsetzt" + response: "Ha miuch uf d Yychoufslyschte gsetzt" diff --git a/tests/de-CH/todo_HassListAddItem.yaml b/tests/de-CH/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..f81ddf086e --- /dev/null +++ b/tests/de-CH/todo_HassListAddItem.yaml @@ -0,0 +1,12 @@ +language: de-CH +tests: + - sentences: + - "Setz gschänk choufe uf d'ufgabe-Lyschte" + - "Setz gschänk choufe uf Lyschte ufgabe" + - "Setz gschänk choufe uf mini ufgabe Lyschte" + intent: + name: HassListAddItem + slots: + item: "gschänk choufe " + name: "Ufgabe" + response: "Ha gschänk choufe uf d Lyschte ufgabe gsetzt" diff --git a/tests/de-CH/weather_HassGetWeather.yaml b/tests/de-CH/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..e1e12902ce --- /dev/null +++ b/tests/de-CH/weather_HassGetWeather.yaml @@ -0,0 +1,17 @@ +language: de-CH +tests: + - sentences: + - "Was isch für Wätter?" + - "Weles Wätter isch?" + intent: + name: HassGetWeather + response: Es isch 8 °C und rägnerisch + + - sentences: + - "wie isch ds Wätter z Bärn?" + - "weles Wätter isch z Bärn?" + intent: + name: HassGetWeather + slots: + name: Bärn + response: Es isch 8 °C und rägnerisch diff --git a/tests/de/_fixtures.yaml b/tests/de/_fixtures.yaml index ab088af12b..1ecc5d5244 100644 --- a/tests/de/_fixtures.yaml +++ b/tests/de/_fixtures.yaml @@ -47,15 +47,15 @@ entities: - name: Wohnzimmerthermostat id: climate.living_room area: living_room - state: "22" + state: "heat" attributes: - unit_of_measurement: "°C" + current_temperature: 22 - name: Küchenthermostat id: climate.kitchen area: kitchen - state: "24" + state: "heat" attributes: - unit_of_measurement: "°C" + current_temperature: 24 - name: "Vorhang links" id: "cover.wohnzimmer_vorhang_links" area: living_room diff --git a/tests/de/climate_HassClimateGetTemperature.yaml b/tests/de/climate_HassClimateGetTemperature.yaml index 99f9b8b7b2..0e687a1286 100644 --- a/tests/de/climate_HassClimateGetTemperature.yaml +++ b/tests/de/climate_HassClimateGetTemperature.yaml @@ -15,7 +15,7 @@ tests: name: HassClimateGetTemperature slots: area: Wohnzimmer - response: "22 °C" + response: "22" - sentences: - Wie hoch ist die Temperatur der Küche? @@ -23,13 +23,13 @@ tests: name: HassClimateGetTemperature slots: area: Küche - response: "24 °C" + response: "24" - sentences: - Wie hoch ist die Temperatur? intent: name: HassClimateGetTemperature - response: "22 °C" + response: "22" - sentences: - Wie hoch ist die Temperatur von dem Wohnzimmerthermostat? @@ -40,7 +40,7 @@ tests: name: HassClimateGetTemperature slots: name: Wohnzimmerthermostat - response: "22 °C" + response: "22" - sentences: - Wie hoch ist die Temperatur von dem Thermostat im Wohnzimmer? @@ -51,4 +51,4 @@ tests: name: HassClimateGetTemperature slots: area: Wohnzimmer - response: "22 °C" + response: "22" diff --git a/tests/de/climate_HassClimateSetTemperature.yaml b/tests/de/climate_HassClimateSetTemperature.yaml index 91c9829524..1ea947823c 100644 --- a/tests/de/climate_HassClimateSetTemperature.yaml +++ b/tests/de/climate_HassClimateSetTemperature.yaml @@ -2,8 +2,11 @@ language: de tests: - sentences: - Stelle im Wohnzimmer die Temperatur auf 30 Grad Celsius + - Stelle im Wohnzimmer die Temperatur auf 30 °C - Setze im Wohnzimmer die Temperatur auf 30 Grad Celsius + - Setze im Wohnzimmer die Temperatur auf 30 °C - Ändere im Wohnzimmer die Temperatur auf 30 Grad Celsius + - Ändere im Wohnzimmer die Temperatur auf 30 °C intent: name: HassClimateSetTemperature slots: @@ -14,7 +17,9 @@ tests: - sentences: - Stelle die Temperatur auf 20 Grad Celsius + - Stelle die Temperatur auf 20 °C - Ändere die Temperatur auf 20 Grad Celsius + - Ändere die Temperatur auf 20 °C intent: name: HassClimateSetTemperature slots: @@ -24,8 +29,11 @@ tests: - sentences: - Stelle die Temperatur vom Wohnzimmerthermostat auf 25 Grad Celsius + - Stelle die Temperatur vom Wohnzimmerthermostat auf 25 °C - Setze die Temperatur vom Wohnzimmerthermostat auf 25 Grad Celsius + - Setze die Temperatur vom Wohnzimmerthermostat auf 25 °C - Ändere die Temperatur vom Wohnzimmerthermostat auf 25 Grad Celsius + - Ändere die Temperatur vom Wohnzimmerthermostat auf 25 °C intent: name: HassClimateSetTemperature slots: diff --git a/tests/de/cover_HassTurnOff.yaml b/tests/de/cover_HassTurnOff.yaml index 52d9610322..b8d2b615be 100644 --- a/tests/de/cover_HassTurnOff.yaml +++ b/tests/de/cover_HassTurnOff.yaml @@ -4,6 +4,7 @@ tests: - schließ das Rollo links - Rollo links schliessen - mach das Rollo links herunter + - macht das Rollo links herunter - Rollo links heruntermachen - Rollo links zumachen - Rollo links herunter @@ -18,6 +19,8 @@ tests: - schließ den Vorhang links - Vorhang links schliessen - mach den Vorhang links herunter + - macht den Vorhang links herunter + intent: name: HassTurnOff slots: @@ -34,6 +37,10 @@ tests: - mach im Garten die Tore zu - mach das Tor im Garten zu - mach die Tore im Garten zu + - macht im Garten das Tor zu + - macht im Garten die Tore zu + - macht das Tor im Garten zu + - macht die Tore im Garten zu - mache im Garten das Tor zu - mache im Garten die Tore zu - mache das Tor im Garten zu @@ -50,6 +57,8 @@ tests: - schließe alle Tore im Garten - mach im Garten alle Tore zu - mach alle Tore im Garten zu + - macht im Garten alle Tore zu + - macht alle Tore im Garten zu - mache im Garten alle Tore zu - mache alle Tore im Garten zu intent: @@ -68,6 +77,10 @@ tests: - mach in der Garage die Garagentore zu - mach das Garagentor in der Garage zu - mach die Garagentore in der Garage zu + - macht in der Garage das Garagentor zu + - macht in der Garage die Garagentore zu + - macht das Garagentor in der Garage zu + - macht die Garagentore in der Garage zu - mache in der Garage das Garagentor zu - mache in der Garage die Garagentore zu - mache das Garagentor in der Garage zu @@ -76,6 +89,10 @@ tests: - mach in der Garage die Garagentore runter - mach das Garagentor in der Garage runter - mach die Garagentore in der Garage runter + - macht in der Garage das Garagentor runter + - macht in der Garage die Garagentore runter + - macht das Garagentor in der Garage runter + - macht die Garagentore in der Garage runter - mache in der Garage das Garagentor runter - mache in der Garage die Garagentore runter - mache das Garagentor in der Garage runter @@ -92,10 +109,14 @@ tests: - schließe alle Garagentore in der Garage - mach in der Garage alle Garagentore zu - mach alle Garagentore in der Garage zu + - macht in der Garage alle Garagentore zu + - macht alle Garagentore in der Garage zu - mache in der Garage alle Garagentore zu - mache alle Garagentore in der Garage zu - mach in der Garage alle Garagentore runter - mach alle Garagentore in der Garage runter + - macht in der Garage alle Garagentore runter + - macht alle Garagentore in der Garage runter - mache in der Garage alle Garagentore runter - mache alle Garagentore in der Garage runter intent: @@ -114,16 +135,24 @@ tests: - mach im Wohnzimmer die Rollos zu - mach das Rollo im Wohnzimmer zu - mach die Rollos im Wohnzimmer zu + - macht im Wohnzimmer das Rollo zu + - macht im Wohnzimmer die Rollos zu + - macht das Rollo im Wohnzimmer zu + - macht die Rollos im Wohnzimmer zu - mache im Wohnzimmer das Rollo zu - mache im Wohnzimmer die Rollos zu - mache das Rollo im Wohnzimmer zu - mache die Rollos im Wohnzimmer zu - mach im Wohnzimmer das Rollo runter - mach im Wohnzimmer die Rollos runter + - macht im Wohnzimmer das Rollo runter + - macht im Wohnzimmer die Rollos runter - mache im Wohnzimmer das Rollo runter - mache im Wohnzimmer die Rollos runter - mach das Rollo im Wohnzimmer runter - mach die Rollos im Wohnzimmer runter + - macht das Rollo im Wohnzimmer runter + - macht die Rollos im Wohnzimmer runter - mache das Rollo im Wohnzimmer runter - mache die Rollos im Wohnzimmer runter - schließe im Wohnzimmer den Rollladen @@ -132,8 +161,12 @@ tests: - schließe die Rollläden im Wohnzimmer - mach im Wohnzimmer den Rollladen zu - mach im Wohnzimmer die Rollläden zu + - macht im Wohnzimmer den Rollladen zu + - macht im Wohnzimmer die Rollläden zu - mach den Rollladen im Wohnzimmer zu - mach die Rollläden im Wohnzimmer zu + - macht den Rollladen im Wohnzimmer zu + - macht die Rollläden im Wohnzimmer zu - mache im Wohnzimmer den Rollladen zu - mache im Wohnzimmer die Rollläden zu - mache den Rollladen im Wohnzimmer zu @@ -142,6 +175,10 @@ tests: - mach im Wohnzimmer die Rollläden runter - mach den Rollladen im Wohnzimmer runter - mach die Rollläden im Wohnzimmer runter + - macht im Wohnzimmer den Rollladen runter + - macht im Wohnzimmer die Rollläden runter + - macht den Rollladen im Wohnzimmer runter + - macht die Rollläden im Wohnzimmer runter - mache im Wohnzimmer den Rollladen runter - mache im Wohnzimmer die Rollläden runter - mache den Rollladen im Wohnzimmer runter @@ -154,6 +191,10 @@ tests: - mach im Wohnzimmer die Abdeckungen zu - mach die Abdeckung im Wohnzimmer zu - mach die Abdeckungen im Wohnzimmer zu + - macht im Wohnzimmer die Abdeckung zu + - macht im Wohnzimmer die Abdeckungen zu + - macht die Abdeckung im Wohnzimmer zu + - macht die Abdeckungen im Wohnzimmer zu - mache im Wohnzimmer die Abdeckung zu - mache im Wohnzimmer die Abdeckungen zu - mache die Abdeckung im Wohnzimmer zu @@ -162,6 +203,10 @@ tests: - mach im Wohnzimmer die Abdeckungen runter - mach die Abdeckung im Wohnzimmer runter - mach die Abdeckungen im Wohnzimmer runter + - macht im Wohnzimmer die Abdeckung runter + - macht im Wohnzimmer die Abdeckungen runter + - macht die Abdeckung im Wohnzimmer runter + - macht die Abdeckungen im Wohnzimmer runter - mache im Wohnzimmer die Abdeckung runter - mache im Wohnzimmer die Abdeckungen runter - mache die Abdeckung im Wohnzimmer runter @@ -174,6 +219,10 @@ tests: - mach im Wohnzimmer die Jalousien zu - mach die Jalousie im Wohnzimmer zu - mach die Jalousien im Wohnzimmer zu + - macht im Wohnzimmer die Jalousie zu + - macht im Wohnzimmer die Jalousien zu + - macht die Jalousie im Wohnzimmer zu + - macht die Jalousien im Wohnzimmer zu - mache im Wohnzimmer die Jalousie zu - mache im Wohnzimmer die Jalousien zu - mache die Jalousie im Wohnzimmer zu @@ -182,6 +231,10 @@ tests: - mach im Wohnzimmer die Jalousien runter - mach die Jalousie im Wohnzimmer runter - mach die Jalousien im Wohnzimmer runter + - macht im Wohnzimmer die Jalousie runter + - macht im Wohnzimmer die Jalousien runter + - macht die Jalousie im Wohnzimmer runter + - macht die Jalousien im Wohnzimmer runter - mache im Wohnzimmer die Jalousie runter - mache im Wohnzimmer die Jalousien runter - mache die Jalousie im Wohnzimmer runter @@ -194,16 +247,24 @@ tests: - mach im Wohnzimmer die Vorhänge zu - mach den Vorhang im Wohnzimmer zu - mach die Vorhänge im Wohnzimmer zu + - macht im Wohnzimmer den Vorhang zu + - macht im Wohnzimmer die Vorhänge zu + - macht den Vorhang im Wohnzimmer zu + - macht die Vorhänge im Wohnzimmer zu - mache im Wohnzimmer den Vorhang zu - mache im Wohnzimmer die Vorhänge zu - mache den Vorhang im Wohnzimmer zu - mache die Vorhänge im Wohnzimmer zu - mach im Wohnzimmer den Vorhang runter - mach im Wohnzimmer die Vorhänge runter + - macht im Wohnzimmer den Vorhang runter + - macht im Wohnzimmer die Vorhänge runter - mache im Wohnzimmer den Vorhang runter - mache im Wohnzimmer die Vorhänge runter - mach den Vorhang im Wohnzimmer runter - mach die Vorhänge im Wohnzimmer runter + - macht den Vorhang im Wohnzimmer runter + - macht die Vorhänge im Wohnzimmer runter - mache den Vorhang im Wohnzimmer runter - mache die Vorhänge im Wohnzimmer runter - Raffstore im Wohnzimmer schließen @@ -222,28 +283,40 @@ tests: - schließe alle Rollos im Wohnzimmer - mach im Wohnzimmer alle Rollos zu - mach alle Rollos im Wohnzimmer zu + - macht im Wohnzimmer alle Rollos zu + - macht alle Rollos im Wohnzimmer zu - mache im Wohnzimmer alle Rollos zu - mache alle Rollos im Wohnzimmer zu - mach im Wohnzimmer alle Rollos runter + - macht im Wohnzimmer alle Rollos runter - mache im Wohnzimmer alle Rollos runter - mach alle Rollos im Wohnzimmer runter + - macht alle Rollos im Wohnzimmer runter - mache alle Rollos im Wohnzimmer runter - schließe im Wohnzimmer alle Rollläden - schließe alle Rollläden im Wohnzimmer - mach im Wohnzimmer alle Rollläden zu - mach alle Rollläden im Wohnzimmer zu + - macht im Wohnzimmer alle Rollläden zu + - macht alle Rollläden im Wohnzimmer zu - mache im Wohnzimmer alle Rollläden zu - mache alle Rollläden im Wohnzimmer zu - mach im Wohnzimmer alle Rollläden runter - mach alle Rollläden im Wohnzimmer runter + - macht im Wohnzimmer alle Rollläden runter + - macht alle Rollläden im Wohnzimmer runter - mache im Wohnzimmer alle Rollläden runter - mache alle Rollläden im Wohnzimmer runter - schließe im Wohnzimmer alle Abdeckungen - schließe alle Abdeckungen im Wohnzimmer - mach im Wohnzimmer alle Abdeckungen zu - mach alle Abdeckungen im Wohnzimmer zu + - macht im Wohnzimmer alle Abdeckungen zu + - macht alle Abdeckungen im Wohnzimmer zu - mache im Wohnzimmer alle Abdeckungen zu - mache alle Abdeckungen im Wohnzimmer zu + - macht im Wohnzimmer alle Abdeckungen runter + - macht alle Abdeckungen im Wohnzimmer runter - mach im Wohnzimmer alle Abdeckungen runter - mach alle Abdeckungen im Wohnzimmer runter - mache im Wohnzimmer alle Abdeckungen runter @@ -252,10 +325,14 @@ tests: - schließe alle Jalousien im Wohnzimmer - mach im Wohnzimmer alle Jalousien zu - mach alle Jalousien im Wohnzimmer zu + - macht im Wohnzimmer alle Jalousien zu + - macht alle Jalousien im Wohnzimmer zu - mache im Wohnzimmer alle Jalousien zu - mache alle Jalousien im Wohnzimmer zu - mach im Wohnzimmer alle Jalousien runter - mach alle Jalousien im Wohnzimmer runter + - macht im Wohnzimmer alle Jalousien runter + - macht alle Jalousien im Wohnzimmer runter - mache im Wohnzimmer alle Jalousien runter - mache alle Jalousien im Wohnzimmer runter - schließe im Wohnzimmer alle Vorhänge @@ -279,44 +356,57 @@ tests: - schließ alle Jalousien - schließe alle Jalousien - mach alle Jalousien zu + - macht alle Jalousien zu - mache alle Jalousien zu - mach alle Jalousien runter + - macht alle Jalousien runter - mache alle Jalousien runter - schließ alle Vorhänge - schließe alle Vorhänge - mach alle Vorhänge zu + - macht alle Vorhänge zu - mache alle Vorhänge zu + - macht alle Vorhänge runter - mach alle Vorhänge runter - mache alle Vorhänge runter - schließ alle Tore - schließe alle Tore - mach alle Tore zu + - macht alle Tore zu - mache alle Tore zu - schließ alle Garagentore - schließe alle Garagentore - schließ alle Garagen - schließe alle Garagen - mach alle Garagen zu + - macht alle Garagen zu - mache alle Garagen zu - mach alle Garagen runter + - macht alle Garagen runter - mache alle Garagen runter - schließ alle Rollos - schließe alle Rollos - mach alle Rollos zu + - macht alle Rollos zu - mache alle Rollos zu - mach alle Rollos runter + - macht alle Rollos runter - mache alle Rollos runter - schließ alle Rollläden - schließe alle Rollläden - mach alle Rollläden zu + - macht alle Rollläden zu - mache alle Rollläden zu - mach alle Rollläden runter + - macht alle Rollläden runter - mache alle Rollläden runter - schließ alle Abdeckungen - schließe alle Abdeckungen - mach alle Abdeckungen zu + - macht alle Abdeckungen zu - mache alle Abdeckungen zu - mach alle Abdeckungen runter + - macht alle Abdeckungen runter - mache alle Abdeckungen runter intent: name: HassTurnOff diff --git a/tests/de/cover_HassTurnOn.yaml b/tests/de/cover_HassTurnOn.yaml index 8eb96e4a33..c6b65b875b 100644 --- a/tests/de/cover_HassTurnOn.yaml +++ b/tests/de/cover_HassTurnOn.yaml @@ -4,6 +4,7 @@ tests: - öffne das Rollo rechts - Rollo rechts öffnen - mach das Rollo rechts hoch + - macht das Rollo rechts hoch - Rollo rechts hochmachen - Rollo rechts aufmachen - Rollo rechts hoch @@ -18,6 +19,8 @@ tests: - öffne den Vorhang rechts - Vorhang rechts öffnen - mach den Vorhang rechts hoch + - macht den Vorhang rechts hoch + intent: name: HassTurnOn slots: @@ -34,6 +37,10 @@ tests: - mach im Garten die Tore auf - mach das Tor im Garten auf - mach die Tore im Garten auf + - macht im Garten das Tor auf + - macht im Garten die Tore auf + - macht das Tor im Garten auf + - macht die Tore im Garten auf - mache im Garten das Tor auf - mache im Garten die Tore auf - mache das Tor im Garten auf @@ -50,6 +57,8 @@ tests: - öffne alle Tore im Garten - mach im Garten alle Tore auf - mach alle Tore im Garten auf + - macht im Garten alle Tore auf + - macht alle Tore im Garten auf - mache im Garten alle Tore auf - mache alle Tore im Garten auf intent: @@ -68,6 +77,10 @@ tests: - mach in der Garage die Garagentore auf - mach das Garagentor in der Garage auf - mach die Garagentore in der Garage auf + - macht in der Garage das Garagentor auf + - macht in der Garage die Garagentore auf + - macht das Garagentor in der Garage auf + - macht die Garagentore in der Garage auf - mache in der Garage das Garagentor auf - mache in der Garage die Garagentore auf - mache das Garagentor in der Garage auf @@ -76,6 +89,10 @@ tests: - mach in der Garage die Garagentore rauf - mach das Garagentor in der Garage rauf - mach die Garagentore in der Garage rauf + - macht in der Garage das Garagentor rauf + - macht in der Garage die Garagentore rauf + - macht das Garagentor in der Garage rauf + - macht die Garagentore in der Garage rauf - mache in der Garage das Garagentor rauf - mache in der Garage die Garagentore rauf - mache das Garagentor in der Garage rauf @@ -84,6 +101,10 @@ tests: - mach in der Garage die Garagentore hoch - mach das Garagentor in der Garage hoch - mach die Garagentore in der Garage hoch + - macht in der Garage das Garagentor hoch + - macht in der Garage die Garagentore hoch + - macht das Garagentor in der Garage hoch + - macht die Garagentore in der Garage hoch - mache in der Garage das Garagentor hoch - mache in der Garage die Garagentore hoch - mache das Garagentor in der Garage hoch @@ -100,14 +121,20 @@ tests: - öffne alle Garagentore in der Garage - mach in der Garage alle Garagentore auf - mach alle Garagentore in der Garage auf + - macht in der Garage alle Garagentore auf + - macht alle Garagentore in der Garage auf - mache in der Garage alle Garagentore auf - mache alle Garagentore in der Garage auf - mach in der Garage alle Garagentore rauf - mach alle Garagentore in der Garage rauf + - macht in der Garage alle Garagentore rauf + - macht alle Garagentore in der Garage rauf - mache in der Garage alle Garagentore rauf - mache alle Garagentore in der Garage rauf - mach in der Garage alle Garagentore hoch - mach alle Garagentore in der Garage hoch + - macht in der Garage alle Garagentore hoch + - macht alle Garagentore in der Garage hoch - mache in der Garage alle Garagentore hoch - mache alle Garagentore in der Garage hoch intent: @@ -126,6 +153,10 @@ tests: - mach im Wohnzimmer die Rollos auf - mach das Rollo im Wohnzimmer auf - mach die Rollos im Wohnzimmer auf + - macht im Wohnzimmer das Rollo auf + - macht im Wohnzimmer die Rollos auf + - macht das Rollo im Wohnzimmer auf + - macht die Rollos im Wohnzimmer auf - mache im Wohnzimmer das Rollo auf - mache im Wohnzimmer die Rollos auf - mache das Rollo im Wohnzimmer auf @@ -134,6 +165,10 @@ tests: - mach im Wohnzimmer die Rollos hoch - mach das Rollo im Wohnzimmer hoch - mach die Rollos im Wohnzimmer hoch + - macht im Wohnzimmer das Rollo hoch + - macht im Wohnzimmer die Rollos hoch + - macht das Rollo im Wohnzimmer hoch + - macht die Rollos im Wohnzimmer hoch - mache im Wohnzimmer das Rollo hoch - mache im Wohnzimmer die Rollos hoch - mache das Rollo im Wohnzimmer hoch @@ -142,6 +177,10 @@ tests: - mach im Wohnzimmer die Rollos rauf - mach das Rollo im Wohnzimmer rauf - mach die Rollos im Wohnzimmer rauf + - macht im Wohnzimmer das Rollo rauf + - macht im Wohnzimmer die Rollos rauf + - macht das Rollo im Wohnzimmer rauf + - macht die Rollos im Wohnzimmer rauf - mache im Wohnzimmer das Rollo rauf - mache im Wohnzimmer die Rollos rauf - mache das Rollo im Wohnzimmer rauf @@ -154,6 +193,10 @@ tests: - mach im Wohnzimmer die Vorhänge auf - mach den Vorhang im Wohnzimmer auf - mach die Vorhänge im Wohnzimmer auf + - macht im Wohnzimmer den Vorhang auf + - macht im Wohnzimmer die Vorhänge auf + - macht den Vorhang im Wohnzimmer auf + - macht die Vorhänge im Wohnzimmer auf - mache im Wohnzimmer den Vorhang auf - mache im Wohnzimmer die Vorhänge auf - mache den Vorhang im Wohnzimmer auf @@ -162,6 +205,10 @@ tests: - mach im Wohnzimmer die Vorhänge hoch - mach den Vorhang im Wohnzimmer hoch - mach die Vorhänge im Wohnzimmer hoch + - macht im Wohnzimmer den Vorhang hoch + - macht im Wohnzimmer die Vorhänge hoch + - macht den Vorhang im Wohnzimmer hoch + - macht die Vorhänge im Wohnzimmer hoch - mache im Wohnzimmer den Vorhang hoch - mache im Wohnzimmer die Vorhänge hoch - mache den Vorhang im Wohnzimmer hoch @@ -170,6 +217,10 @@ tests: - mach im Wohnzimmer die Vorhänge rauf - mach den Vorhang im Wohnzimmer rauf - mach die Vorhänge im Wohnzimmer rauf + - macht im Wohnzimmer den Vorhang rauf + - macht im Wohnzimmer die Vorhänge rauf + - macht den Vorhang im Wohnzimmer rauf + - macht die Vorhänge im Wohnzimmer rauf - mache im Wohnzimmer den Vorhang rauf - mache im Wohnzimmer die Vorhänge rauf - mache den Vorhang im Wohnzimmer rauf @@ -182,6 +233,10 @@ tests: - mach im Wohnzimmer die Rollläden auf - mach den Rollladen im Wohnzimmer auf - mach die Rollläden im Wohnzimmer auf + - macht im Wohnzimmer den Rollladen auf + - macht im Wohnzimmer die Rollläden auf + - macht den Rollladen im Wohnzimmer auf + - macht die Rollläden im Wohnzimmer auf - mache im Wohnzimmer den Rollladen auf - mache im Wohnzimmer die Rollläden auf - mache den Rollladen im Wohnzimmer auf @@ -190,6 +245,10 @@ tests: - mach im Wohnzimmer die Rollläden hoch - mach den Rollladen im Wohnzimmer hoch - mach die Rollläden im Wohnzimmer hoch + - macht im Wohnzimmer den Rollladen hoch + - macht im Wohnzimmer die Rollläden hoch + - macht den Rollladen im Wohnzimmer hoch + - macht die Rollläden im Wohnzimmer hoch - mache im Wohnzimmer den Rollladen hoch - mache im Wohnzimmer die Rollläden hoch - mache den Rollladen im Wohnzimmer hoch @@ -198,6 +257,10 @@ tests: - mach im Wohnzimmer die Rollläden rauf - mach den Rollladen im Wohnzimmer rauf - mach die Rollläden im Wohnzimmer rauf + - macht im Wohnzimmer den Rollladen rauf + - macht im Wohnzimmer die Rollläden rauf + - macht den Rollladen im Wohnzimmer rauf + - macht die Rollläden im Wohnzimmer rauf - mache im Wohnzimmer den Rollladen rauf - mache im Wohnzimmer die Rollläden rauf - mache den Rollladen im Wohnzimmer rauf @@ -210,6 +273,10 @@ tests: - mach im Wohnzimmer die Abdeckungen auf - mach die Abdeckung im Wohnzimmer auf - mach die Abdeckungen im Wohnzimmer auf + - macht im Wohnzimmer die Abdeckung auf + - macht im Wohnzimmer die Abdeckungen auf + - macht die Abdeckung im Wohnzimmer auf + - macht die Abdeckungen im Wohnzimmer auf - mache im Wohnzimmer die Abdeckung auf - mache im Wohnzimmer die Abdeckungen auf - mache die Abdeckung im Wohnzimmer auf @@ -218,6 +285,10 @@ tests: - mach im Wohnzimmer die Abdeckungen hoch - mach die Abdeckung im Wohnzimmer hoch - mach die Abdeckungen im Wohnzimmer hoch + - macht im Wohnzimmer die Abdeckung hoch + - macht im Wohnzimmer die Abdeckungen hoch + - macht die Abdeckung im Wohnzimmer hoch + - macht die Abdeckungen im Wohnzimmer hoch - mache im Wohnzimmer die Abdeckung hoch - mache im Wohnzimmer die Abdeckungen hoch - mache die Abdeckung im Wohnzimmer hoch @@ -226,6 +297,10 @@ tests: - mach im Wohnzimmer die Abdeckungen rauf - mach die Abdeckung im Wohnzimmer rauf - mach die Abdeckungen im Wohnzimmer rauf + - macht im Wohnzimmer die Abdeckung rauf + - macht im Wohnzimmer die Abdeckungen rauf + - macht die Abdeckung im Wohnzimmer rauf + - macht die Abdeckungen im Wohnzimmer rauf - mache im Wohnzimmer die Abdeckung rauf - mache im Wohnzimmer die Abdeckungen rauf - mache die Abdeckung im Wohnzimmer rauf @@ -238,6 +313,10 @@ tests: - mach im Wohnzimmer die Jalousien auf - mach die Jalousie im Wohnzimmer auf - mach die Jalousien im Wohnzimmer auf + - macht im Wohnzimmer die Jalousie auf + - macht im Wohnzimmer die Jalousien auf + - macht die Jalousie im Wohnzimmer auf + - macht die Jalousien im Wohnzimmer auf - mache im Wohnzimmer die Jalousie auf - mache im Wohnzimmer die Jalousien auf - mache die Jalousie im Wohnzimmer auf @@ -246,6 +325,10 @@ tests: - mach im Wohnzimmer die Jalousien hoch - mach die Jalousie im Wohnzimmer hoch - mach die Jalousien im Wohnzimmer hoch + - macht im Wohnzimmer die Jalousie hoch + - macht im Wohnzimmer die Jalousien hoch + - macht die Jalousie im Wohnzimmer hoch + - macht die Jalousien im Wohnzimmer hoch - mache im Wohnzimmer die Jalousie hoch - mache im Wohnzimmer die Jalousien hoch - mache die Jalousie im Wohnzimmer hoch @@ -254,6 +337,10 @@ tests: - mach im Wohnzimmer die Jalousien rauf - mach die Jalousie im Wohnzimmer rauf - mach die Jalousien im Wohnzimmer rauf + - macht im Wohnzimmer die Jalousie rauf + - macht im Wohnzimmer die Jalousien rauf + - macht die Jalousie im Wohnzimmer rauf + - macht die Jalousien im Wohnzimmer rauf - mache im Wohnzimmer die Jalousie rauf - mache im Wohnzimmer die Jalousien rauf - mache die Jalousie im Wohnzimmer rauf @@ -274,70 +361,100 @@ tests: - öffne alle Rollos im Wohnzimmer - mach im Wohnzimmer alle Rollos auf - mach alle Rollos im Wohnzimmer auf + - macht im Wohnzimmer alle Rollos auf + - macht alle Rollos im Wohnzimmer auf - mache im Wohnzimmer alle Rollos auf - mache alle Rollos im Wohnzimmer auf - mach im Wohnzimmer alle Rollos hoch - mach alle Rollos im Wohnzimmer hoch + - macht im Wohnzimmer alle Rollos hoch + - macht alle Rollos im Wohnzimmer hoch - mache im Wohnzimmer alle Rollos hoch - mache alle Rollos im Wohnzimmer hoch - mach im Wohnzimmer alle Rollos rauf - mach alle Rollos im Wohnzimmer rauf + - macht im Wohnzimmer alle Rollos rauf + - macht alle Rollos im Wohnzimmer rauf - mache im Wohnzimmer alle Rollos rauf - mache alle Rollos im Wohnzimmer rauf - öffne im Wohnzimmer alle Vorhänge - öffne alle Vorhänge im Wohnzimmer - mach im Wohnzimmer alle Vorhänge auf - mach alle Vorhänge im Wohnzimmer auf + - macht im Wohnzimmer alle Vorhänge auf + - macht alle Vorhänge im Wohnzimmer auf - mache im Wohnzimmer alle Vorhänge auf - mache alle Vorhänge im Wohnzimmer auf - mach im Wohnzimmer alle Vorhänge hoch - mach alle Vorhänge im Wohnzimmer hoch + - macht im Wohnzimmer alle Vorhänge hoch + - macht alle Vorhänge im Wohnzimmer hoch - mache im Wohnzimmer alle Vorhänge hoch - mache alle Vorhänge im Wohnzimmer hoch - mach im Wohnzimmer alle Vorhänge rauf - mach alle Vorhänge im Wohnzimmer rauf + - macht im Wohnzimmer alle Vorhänge rauf + - macht alle Vorhänge im Wohnzimmer rauf - mache im Wohnzimmer alle Vorhänge rauf - mache alle Vorhänge im Wohnzimmer rauf - öffne im Wohnzimmer alle Rollläden - öffne alle Rollläden im Wohnzimmer - mach im Wohnzimmer alle Rollläden auf - mach alle Rollläden im Wohnzimmer auf + - macht im Wohnzimmer alle Rollläden auf + - macht alle Rollläden im Wohnzimmer auf - mache im Wohnzimmer alle Rollläden auf - mache alle Rollläden im Wohnzimmer auf - mach im Wohnzimmer alle Rollläden hoch - mach alle Rollläden im Wohnzimmer hoch + - macht im Wohnzimmer alle Rollläden hoch + - macht alle Rollläden im Wohnzimmer hoch - mache im Wohnzimmer alle Rollläden hoch - mache alle Rollläden im Wohnzimmer hoch - mach im Wohnzimmer alle Rollläden rauf - mach alle Rollläden im Wohnzimmer rauf + - macht im Wohnzimmer alle Rollläden rauf + - macht alle Rollläden im Wohnzimmer rauf - mache im Wohnzimmer alle Rollläden rauf - mache alle Rollläden im Wohnzimmer rauf - öffne im Wohnzimmer alle Abdeckungen - öffne alle Abdeckungen im Wohnzimmer - mach im Wohnzimmer alle Abdeckungen auf - mach alle Abdeckungen im Wohnzimmer auf + - macht im Wohnzimmer alle Abdeckungen auf + - macht alle Abdeckungen im Wohnzimmer auf - mache im Wohnzimmer alle Abdeckungen auf - mache alle Abdeckungen im Wohnzimmer auf - mach im Wohnzimmer alle Abdeckungen hoch - mach alle Abdeckungen im Wohnzimmer hoch + - macht im Wohnzimmer alle Abdeckungen hoch + - macht alle Abdeckungen im Wohnzimmer hoch - mache im Wohnzimmer alle Abdeckungen hoch - mache alle Abdeckungen im Wohnzimmer hoch - mach im Wohnzimmer alle Abdeckungen rauf - mach alle Abdeckungen im Wohnzimmer rauf + - macht im Wohnzimmer alle Abdeckungen rauf + - macht alle Abdeckungen im Wohnzimmer rauf - mache im Wohnzimmer alle Abdeckungen rauf - mache alle Abdeckungen im Wohnzimmer rauf - öffne im Wohnzimmer alle Jalousien - öffne alle Jalousien im Wohnzimmer - mach im Wohnzimmer alle Jalousien auf - mach alle Jalousien im Wohnzimmer auf + - macht im Wohnzimmer alle Jalousien auf + - macht alle Jalousien im Wohnzimmer auf - mache im Wohnzimmer alle Jalousien auf - mache alle Jalousien im Wohnzimmer auf - mach im Wohnzimmer alle Jalousien hoch - mach alle Jalousien im Wohnzimmer hoch + - macht im Wohnzimmer alle Jalousien hoch + - macht alle Jalousien im Wohnzimmer hoch - mache im Wohnzimmer alle Jalousien hoch - mache alle Jalousien im Wohnzimmer hoch - mach im Wohnzimmer alle Jalousien rauf - mach alle Jalousien im Wohnzimmer rauf + - macht im Wohnzimmer alle Jalousien rauf + - macht alle Jalousien im Wohnzimmer rauf - mache im Wohnzimmer alle Jalousien rauf - mache alle Jalousien im Wohnzimmer rauf intent: @@ -350,49 +467,68 @@ tests: - sentences: - öffne alle Jalousien - mach alle Jalousien auf + - macht alle Jalousien auf - mache alle Jalousien auf - mach alle Jalousien rauf + - macht alle Jalousien rauf - mache alle Jalousien rauf - mach alle Jalousien hoch + - macht alle Jalousien hoch - mache alle Jalousien hoch - öffne alle Vorhänge - mach alle Vorhänge auf + - macht alle Vorhänge auf - mache alle Vorhänge auf - mach alle Vorhänge rauf + - macht alle Vorhänge rauf - mache alle Vorhänge rauf - mach alle Vorhänge hoch + - macht alle Vorhänge hoch - mache alle Vorhänge hoch - öffne alle Tore - mach alle Tore auf + - macht alle Tore auf - mache alle Tore auf - öffne alle Garagentore - öffne alle Garagen - mach alle Garagen auf + - macht alle Garagen auf - mache alle Garagen auf - mach alle Garagen rauf + - macht alle Garagen rauf - mache alle Garagen rauf - mach alle Garagen hoch + - macht alle Garagen hoch - mache alle Garagen hoch - öffne alle Rollos - mach alle Rollos auf + - macht alle Rollos auf - mache alle Rollos auf - mach alle Rollos rauf + - macht alle Rollos rauf - mache alle Rollos rauf - mach alle Rollos hoch + - macht alle Rollos hoch - mache alle Rollos hoch - öffne alle Rollläden - mach alle Rollläden auf + - macht alle Rollläden auf - mache alle Rollläden auf - mach alle Rollläden rauf + - macht alle Rollläden rauf - mache alle Rollläden rauf - mach alle Rollläden hoch + - macht alle Rollläden hoch - mache alle Rollläden hoch - öffne alle Abdeckungen - mach alle Abdeckungen auf + - macht alle Abdeckungen auf - mache alle Abdeckungen auf - mach alle Abdeckungen rauf + - macht alle Abdeckungen rauf - mache alle Abdeckungen rauf - mach alle Abdeckungen hoch + - macht alle Abdeckungen hoch - mache alle Abdeckungen hoch intent: name: HassTurnOn diff --git a/tests/de/fan_HassTurnOff.yaml b/tests/de/fan_HassTurnOff.yaml index 829dcac38d..60e9fd3cf7 100644 --- a/tests/de/fan_HassTurnOff.yaml +++ b/tests/de/fan_HassTurnOff.yaml @@ -2,6 +2,12 @@ language: de tests: - sentences: # Ventilator + - mach den Ventilator im Wohnzimmer aus + - mach die Ventilatoren im Wohnzimmer aus + - mach alle Ventilatoren im Wohnzimmer aus + - macht den Ventilator im Wohnzimmer aus + - macht die Ventilatoren im Wohnzimmer aus + - macht alle Ventilatoren im Wohnzimmer aus - schalte den Ventilator im Wohnzimmer aus - schalte die Ventilatoren im Wohnzimmer aus - schalte alle Ventilatoren im Wohnzimmer aus @@ -20,6 +26,24 @@ tests: - schalte im Wohnzimmer den Ventilator ab - schalte im Wohnzimmer die Ventilatoren ab - schalte im Wohnzimmer alle Ventilatoren ab + - schaltet den Ventilator im Wohnzimmer aus + - schaltet die Ventilatoren im Wohnzimmer aus + - schaltet alle Ventilatoren im Wohnzimmer aus + - schaltet den Ventilator im Wohnzimmer ab + - schaltet die Ventilatoren im Wohnzimmer ab + - schaltet alle Ventilatoren im Wohnzimmer ab + - schaltet in dem Wohnzimmer den Ventilator aus + - schaltet in dem Wohnzimmer die Ventilatoren aus + - schaltet in dem Wohnzimmer alle Ventilatoren aus + - schaltet in dem Wohnzimmer den Ventilator ab + - schaltet in dem Wohnzimmer die Ventilatoren ab + - schaltet in dem Wohnzimmer alle Ventilatoren ab + - schaltet im Wohnzimmer den Ventilator aus + - schaltet im Wohnzimmer die Ventilatoren aus + - schaltet im Wohnzimmer alle Ventilatoren aus + - schaltet im Wohnzimmer den Ventilator ab + - schaltet im Wohnzimmer die Ventilatoren ab + - schaltet im Wohnzimmer alle Ventilatoren ab - stoppe den Ventilator im Wohnzimmer - stoppe die Ventilatoren im Wohnzimmer - stoppe alle Ventilatoren im Wohnzimmer @@ -61,6 +85,24 @@ tests: - schalte in dem Wohnzimmer den Lüfter ab - schalte in dem Wohnzimmer die Lüfter ab - schalte in dem Wohnzimmer alle Lüfter ab + - schaltet den Lüfter im Wohnzimmer aus + - schaltet die Lüfter im Wohnzimmer aus + - schaltet alle Lüfter im Wohnzimmer aus + - schaltet den Lüfter im Wohnzimmer ab + - schaltet die Lüfter im Wohnzimmer ab + - schaltet alle Lüfter im Wohnzimmer ab + - schaltet im Wohnzimmer den Lüfter aus + - schaltet im Wohnzimmer die Lüfter aus + - schaltet im Wohnzimmer alle Lüfter aus + - schaltet im Wohnzimmer den Lüfter ab + - schaltet im Wohnzimmer die Lüfter ab + - schaltet im Wohnzimmer alle Lüfter ab + - schaltet in dem Wohnzimmer den Lüfter aus + - schaltet in dem Wohnzimmer die Lüfter aus + - schaltet in dem Wohnzimmer alle Lüfter aus + - schaltet in dem Wohnzimmer den Lüfter ab + - schaltet in dem Wohnzimmer die Lüfter ab + - schaltet in dem Wohnzimmer alle Lüfter ab - stoppe den Lüfter im Wohnzimmer - stoppe die Lüfter im Wohnzimmer - stoppe alle Lüfter im Wohnzimmer @@ -92,6 +134,7 @@ tests: - sentences: # Ventilator - schalte alle Ventilatoren aus + - schaltet alle Ventilatoren aus - stoppe alle Ventilatoren - stoppe alle Ventilatoren ab - alle Ventilatoren ausschalten @@ -100,6 +143,7 @@ tests: # Lüfter - schalte alle Lüfter aus + - schaltet alle Lüfter aus - stoppe alle Lüfter - stoppe alle Lüfter ab - alle Lüfter ausschalten diff --git a/tests/de/fan_HassTurnOn.yaml b/tests/de/fan_HassTurnOn.yaml index 9ae7b0c4b9..073c5fd9c9 100644 --- a/tests/de/fan_HassTurnOn.yaml +++ b/tests/de/fan_HassTurnOn.yaml @@ -20,6 +20,24 @@ tests: - schalte im Wohnzimmer den Ventilator an - schalte im Wohnzimmer die Ventilatoren an - schalte im Wohnzimmer alle Ventilatoren an + - schaltet den Ventilator im Wohnzimmer ein + - schaltet die Ventilatoren im Wohnzimmer ein + - schaltet alle Ventilatoren im Wohnzimmer ein + - schaltet den Ventilator im Wohnzimmer an + - schaltet die Ventilatoren im Wohnzimmer an + - schaltet alle Ventilatoren im Wohnzimmer an + - schaltet in dem Wohnzimmer den Ventilator ein + - schaltet in dem Wohnzimmer die Ventilatoren ein + - schaltet in dem Wohnzimmer alle Ventilatoren ein + - schaltet in dem Wohnzimmer den Ventilator an + - schaltet in dem Wohnzimmer die Ventilatoren an + - schaltet in dem Wohnzimmer alle Ventilatoren an + - schaltet im Wohnzimmer den Ventilator ein + - schaltet im Wohnzimmer die Ventilatoren ein + - schaltet im Wohnzimmer alle Ventilatoren ein + - schaltet im Wohnzimmer den Ventilator an + - schaltet im Wohnzimmer die Ventilatoren an + - schaltet im Wohnzimmer alle Ventilatoren an - starte den Ventilator im Wohnzimmer - starte die Ventilatoren im Wohnzimmer - starte alle Ventilatoren im Wohnzimmer @@ -58,6 +76,25 @@ tests: - mach im Wohnzimmer die Ventilatoren an - mach im Wohnzimmer alle Ventilatoren an + - macht den Ventilator im Wohnzimmer ein + - macht die Ventilatoren im Wohnzimmer ein + - macht alle Ventilatoren im Wohnzimmer ein + - macht den Ventilator im Wohnzimmer an + - macht die Ventilatoren im Wohnzimmer an + - macht alle Ventilatoren im Wohnzimmer an + - macht in dem Wohnzimmer den Ventilator ein + - macht in dem Wohnzimmer die Ventilatoren ein + - macht in dem Wohnzimmer alle Ventilatoren ein + - macht in dem Wohnzimmer den Ventilator an + - macht in dem Wohnzimmer die Ventilatoren an + - macht in dem Wohnzimmer alle Ventilatoren an + - macht im Wohnzimmer den Ventilator ein + - macht im Wohnzimmer die Ventilatoren ein + - macht im Wohnzimmer alle Ventilatoren ein + - macht im Wohnzimmer den Ventilator an + - macht im Wohnzimmer die Ventilatoren an + - macht im Wohnzimmer alle Ventilatoren an + - mache den Ventilator im Wohnzimmer ein - mache die Ventilatoren im Wohnzimmer ein - mache alle Ventilatoren im Wohnzimmer ein @@ -100,6 +137,25 @@ tests: - schalte in dem Wohnzimmer den Lüfter an - schalte in dem Wohnzimmer die Lüfter an - schalte in dem Wohnzimmer alle Lüfter an + + - schaltet den Lüfter im Wohnzimmer ein + - schaltet die Lüfter im Wohnzimmer ein + - schaltet alle Lüfter im Wohnzimmer ein + - schaltet den Lüfter im Wohnzimmer an + - schaltet die Lüfter im Wohnzimmer an + - schaltet alle Lüfter im Wohnzimmer an + - schaltet im Wohnzimmer den Lüfter ein + - schaltet im Wohnzimmer die Lüfter ein + - schaltet im Wohnzimmer alle Lüfter ein + - schaltet im Wohnzimmer den Lüfter an + - schaltet im Wohnzimmer die Lüfter an + - schaltet im Wohnzimmer alle Lüfter an + - schaltet in dem Wohnzimmer den Lüfter ein + - schaltet in dem Wohnzimmer die Lüfter ein + - schaltet in dem Wohnzimmer alle Lüfter ein + - schaltet in dem Wohnzimmer den Lüfter an + - schaltet in dem Wohnzimmer die Lüfter an + - schaltet in dem Wohnzimmer alle Lüfter an - starte den Lüfter im Wohnzimmer an - starte die Lüfter im Wohnzimmer an - starte alle Lüfter im Wohnzimmer an @@ -128,6 +184,24 @@ tests: - mach in dem Wohnzimmer den Lüfter an - mach in dem Wohnzimmer die Lüfter an - mach in dem Wohnzimmer alle Lüfter an + - macht den Lüfter im Wohnzimmer ein + - macht die Lüfter im Wohnzimmer ein + - macht alle Lüfter im Wohnzimmer ein + - macht den Lüfter im Wohnzimmer an + - macht die Lüfter im Wohnzimmer an + - macht alle Lüfter im Wohnzimmer an + - macht im Wohnzimmer den Lüfter ein + - macht im Wohnzimmer die Lüfter ein + - macht im Wohnzimmer alle Lüfter ein + - macht im Wohnzimmer den Lüfter an + - macht im Wohnzimmer die Lüfter an + - macht im Wohnzimmer alle Lüfter an + - macht in dem Wohnzimmer den Lüfter ein + - macht in dem Wohnzimmer die Lüfter ein + - macht in dem Wohnzimmer alle Lüfter ein + - macht in dem Wohnzimmer den Lüfter an + - macht in dem Wohnzimmer die Lüfter an + - macht in dem Wohnzimmer alle Lüfter an - mache den Lüfter im Wohnzimmer ein - mache die Lüfter im Wohnzimmer ein @@ -161,10 +235,13 @@ tests: - sentences: # Ventilator - schalte alle Ventilatoren ein + - schaltet alle Ventilatoren ein - starte alle Ventilatoren - starte alle Ventilatoren an - mach alle Ventilatoren ein - mach alle Ventilatoren an + - macht alle Ventilatoren ein + - macht alle Ventilatoren an - mache alle Ventilatoren ein - mache alle Ventilatoren an - alle Ventilatoren einschalten @@ -174,10 +251,13 @@ tests: # Lüfter - schalte alle Lüfter ein - schalte alle Lüfter an + - schaltet alle Lüfter an - starte alle Lüfter - starte alle Lüfter an - mach alle Lüfter ein - mach alle Lüfter an + - macht alle Lüfter ein + - macht alle Lüfter an - mache alle Lüfter ein - mache alle Lüfter an - alle Lüfter einschalten diff --git a/tests/de/homeassistant_HassNevermind.yaml b/tests/de/homeassistant_HassNevermind.yaml index 0b1a8fd928..b1fe060e72 100644 --- a/tests/de/homeassistant_HassNevermind.yaml +++ b/tests/de/homeassistant_HassNevermind.yaml @@ -5,5 +5,6 @@ tests: - "egal" - "abbrechen" - "Abbruch" + - "nichts" intent: name: HassNevermind diff --git a/tests/de/homeassistant_HassTurnOff.yaml b/tests/de/homeassistant_HassTurnOff.yaml index 8dff4f4885..fc02e2b413 100644 --- a/tests/de/homeassistant_HassTurnOff.yaml +++ b/tests/de/homeassistant_HassTurnOff.yaml @@ -2,8 +2,10 @@ language: de tests: - sentences: - schalte die Schlafzimmerlampe aus + - schaltet die Schlafzimmerlampe aus - mach die Schlafzimmerlampe aus - schalte bitte die Schlafzimmerlampe aus + - schaltet bitte die Schlafzimmerlampe aus - bitte schalte die Schlafzimmerlampe aus - bitte die Schlafzimmerlampe ausschalten - Schlafzimmerlampe ausschalten diff --git a/tests/de/homeassistant_HassTurnOn.yaml b/tests/de/homeassistant_HassTurnOn.yaml index 371af3b807..4109517387 100644 --- a/tests/de/homeassistant_HassTurnOn.yaml +++ b/tests/de/homeassistant_HassTurnOn.yaml @@ -2,6 +2,7 @@ language: de tests: - sentences: - schalte den Deckenventilator ein + - schaltet den Deckenventilator ein - schalte den Deckenventilator an - mache den Deckenventilator an - starte den Deckenventilator diff --git a/tests/de/light_HassTurnOff.yaml b/tests/de/light_HassTurnOff.yaml index 89990bce62..a124e73fcb 100644 --- a/tests/de/light_HassTurnOff.yaml +++ b/tests/de/light_HassTurnOff.yaml @@ -5,15 +5,25 @@ tests: - Schalte die Lichter in der Küche aus - Schalte alle Lichter in der Küche aus - Schalte in der Küche alle Lichter aus + - Schaltet das Licht in der Küche aus + - Schaltet die Lichter in der Küche aus + - Schaltet alle Lichter in der Küche aus + - Schaltet in der Küche alle Lichter aus - Mach das Licht in der Küche aus - Mach die Lichter in der Küche aus - Mach alle Lichter in der Küche aus + - Macht das Licht in der Küche aus + - Macht die Lichter in der Küche aus + - Macht alle Lichter in der Küche aus - Mache das Licht in der Küche aus - Mache die Lichter in der Küche aus - Mache alle Lichter in der Küche aus - Mach in der Küche das Licht aus - Mach in der Küche die Lichter aus - Mach in der Küche alle Lichter aus + - Macht in der Küche das Licht aus + - Macht in der Küche die Lichter aus + - Macht in der Küche alle Lichter aus - Mache in der Küche das Licht aus - Mache in der Küche die Lichter aus - Mache in der Küche alle Lichter aus @@ -21,15 +31,25 @@ tests: - Schalte die Lichter in der Küche ab - Schalte alle Lichter in der Küche ab - Schalte in der Küche alle Lichter ab + - Schaltet das Licht in der Küche ab + - Schaltet die Lichter in der Küche ab + - Schaltet alle Lichter in der Küche ab + - Schaltet in der Küche alle Lichter ab - Mach das Licht in der Küche ab - Mach die Lichter in der Küche ab - Mach alle Lichter in der Küche ab + - Macht das Licht in der Küche ab + - Macht die Lichter in der Küche ab + - Macht alle Lichter in der Küche ab - Mache das Licht in der Küche ab - Mache die Lichter in der Küche ab - Mache alle Lichter in der Küche ab - Mach in der Küche das Licht ab - Mach in der Küche die Lichter ab - Mach in der Küche alle Lichter ab + - Macht in der Küche das Licht ab + - Macht in der Küche die Lichter ab + - Macht in der Küche alle Lichter ab - Mache in der Küche das Licht ab - Mache in der Küche die Lichter ab - Mache in der Küche alle Lichter ab @@ -55,16 +75,21 @@ tests: - sentences: - Schalte alle Lichter aus + - Schaltet alle Lichter aus - Mach alle Lichter aus + - Macht alle Lichter aus - Mache alle Lichter aus - Schalte alle Lichter ab + - Schaltet alle Lichter ab - Mach alle Lichter ab + - Macht alle Lichter ab - Mache alle Lichter ab - Alle Lichter ausschalten - Könntest du jetzt alle Lichter ausmachen - Mach mal alle Lampen aus - Mach die Lichter aus - Schalte die ganze Beleuchtung aus + - Schaltet die ganze Beleuchtung aus - Alle Lichter aus intent: name: HassTurnOff diff --git a/tests/de/light_HassTurnOn.yaml b/tests/de/light_HassTurnOn.yaml index 2a2a92bf7d..b823645b10 100644 --- a/tests/de/light_HassTurnOn.yaml +++ b/tests/de/light_HassTurnOn.yaml @@ -5,15 +5,25 @@ tests: - Schalte die Lichter in der Küche an - Schalte alle Lichter in der Küche an - Schalte in der Küche alle Lichter an + - Schaltet das Licht in der Küche an + - Schaltet die Lichter in der Küche an + - Schaltet alle Lichter in der Küche an + - Schaltet in der Küche alle Lichter an - Mach das Licht in der Küche an - Mach die Lichter in der Küche an - Mach alle Lichter in der Küche an + - Macht das Licht in der Küche an + - Macht die Lichter in der Küche an + - Macht alle Lichter in der Küche an - Mache das Licht in der Küche an - Mache die Lichter in der Küche an - Mache alle Lichter in der Küche an - Mach in der Küche das Licht an - Mach in der Küche die Lichter an - Mach in der Küche alle Lichter an + - Macht in der Küche das Licht an + - Macht in der Küche die Lichter an + - Macht in der Küche alle Lichter an - Mache in der Küche das Licht an - Mache in der Küche die Lichter an - Mache in der Küche alle Lichter an @@ -21,15 +31,25 @@ tests: - Schalte die Lichter in der Küche ein - Schalte alle Lichter in der Küche ein - Schalte in der Küche alle Lichter ein + - Schaltet das Licht in der Küche ein + - Schaltet die Lichter in der Küche ein + - Schaltet alle Lichter in der Küche ein + - Schaltet in der Küche alle Lichter ein - Mach das Licht in der Küche ein - Mach die Lichter in der Küche ein - Mach alle Lichter in der Küche ein + - Macht das Licht in der Küche ein + - Macht die Lichter in der Küche ein + - Macht alle Lichter in der Küche ein - Mache das Licht in der Küche ein - Mache die Lichter in der Küche ein - Mache alle Lichter in der Küche ein - Mach in der Küche das Licht ein - Mach in der Küche die Lichter ein - Mach in der Küche alle Lichter ein + - Macht in der Küche das Licht ein + - Macht in der Küche die Lichter ein + - Macht in der Küche alle Lichter ein - Mache in der Küche das Licht ein - Mache in der Küche die Lichter ein - Mache in der Küche alle Lichter ein @@ -57,10 +77,14 @@ tests: - sentences: - Schalte alle Lichter an + - Schaltet alle Lichter an - Mach alle Lichter an + - Macht alle Lichter an - Mache alle Lichter an - Schalte alle Lichter ein + - Schaltet alle Lichter ein - Mach alle Lichter ein + - Macht alle Lichter ein - Mache alle Lichter ein - Alle Lichter einschalten - Könntest du jetzt alle Lichter anmachen diff --git a/tests/de/lock_HassTurnOff.yaml b/tests/de/lock_HassTurnOff.yaml index 3a1bc26a6f..b1985c4471 100644 --- a/tests/de/lock_HassTurnOff.yaml +++ b/tests/de/lock_HassTurnOff.yaml @@ -27,6 +27,7 @@ tests: - "im Flur die Haustür öffnen" - "öffne im Flur die Haustür" - "mach im Flur die Haustür auf" + - "macht im Flur die Haustür auf" - "entriegle die Haustür im Flur" - "entriegel im Flur die Haustür" intent: @@ -44,6 +45,7 @@ tests: - "im Flur das Schloss öffnen" - "öffne im Flur alle Schlösser" - "mach im Flur die Türen auf" + - "macht im Flur die Türen auf" - "entriegle alle Türen im Flur" - "entriegel im Flur die Türen" intent: diff --git a/tests/de/lock_HassTurnOn.yaml b/tests/de/lock_HassTurnOn.yaml index a2a3cdb0f1..a44fef55b8 100644 --- a/tests/de/lock_HassTurnOn.yaml +++ b/tests/de/lock_HassTurnOn.yaml @@ -3,6 +3,7 @@ tests: - sentences: - "schließe die Haustür zu" - "mach die Haustür zu" + - "macht die Haustür zu" - "sperre die Haustür zu" - "schließe die Haustür ab" - "sperre die Haustür ab" diff --git a/tests/el/_fixtures.yaml b/tests/el/_fixtures.yaml index cb73fc1d87..fa1334173a 100644 --- a/tests/el/_fixtures.yaml +++ b/tests/el/_fixtures.yaml @@ -307,3 +307,27 @@ entities: out: "on" attributes: device_class: window + + - name: "Αθήνα" + id: "weather.athens" + state: + in: "Με καταιγίδες και βροχή" + out: "lightning-rainy" + attributes: + temperature: "8" + temperature_unit: "°C" + untranslated_state: "lightning-rainy" + + - name: "Θεσσαλονίκη" + id: "weather.thessaloniki" + state: + in: "και καθαρός" + out: "clear" + attributes: + temperature: "25" + temperature_unit: "°C" + untranslated_state: "clear" + + - name: "Κύρια" + id: "todo.kyria" + state: "" diff --git a/tests/el/todo_HassListAddItem.yaml b/tests/el/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..d4a976dd98 --- /dev/null +++ b/tests/el/todo_HassListAddItem.yaml @@ -0,0 +1,11 @@ +language: el +tests: + - sentences: + - Πρόσθεσε τα μήλα στην κύρια λίστα μου + - Βάλε μήλα στην κύρια λίστα μου + intent: + name: HassListAddItem + slots: + item: "μήλα " + name: "Κύρια" + response: Προστέθηκε το προϊόν μήλα diff --git a/tests/el/weather_HassGetWeather.yaml b/tests/el/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..1344dae285 --- /dev/null +++ b/tests/el/weather_HassGetWeather.yaml @@ -0,0 +1,22 @@ +language: el +tests: + - sentences: + - "Πώς είναι ο καιρός στην Αθήνα;" + - "Ποιος είναι ο καιρός στην Αθήνα;" + - "Πώς θα είναι ο καιρός στην Αθήνα;" + - "Ποιος θα είναι ο καιρός στην Αθήνα" + - "Τι καιρό θα κάνει στην Αθήνα;" + - "Τι καιρό κάνει στην Αθήνα;" + intent: + name: HassGetWeather + slots: + name: Αθήνα + response: 8 °C με καταιγίδες και βροχή + + - sentences: + - "Πώς είναι ο καιρός στη Θεσσαλονίκη;" + intent: + name: HassGetWeather + slots: + name: Θεσσαλονίκη + response: 25 °C και καθαρός diff --git a/tests/en/_fixtures.yaml b/tests/en/_fixtures.yaml index 2d58adb2be..cd92ba47a1 100644 --- a/tests/en/_fixtures.yaml +++ b/tests/en/_fixtures.yaml @@ -14,6 +14,9 @@ areas: - name: "Entrance" id: "entrance" + + - name: "Office" + id: "office" entities: - name: "Bedroom Lamp" id: "light.bedroom_lamp" @@ -96,9 +99,16 @@ entities: - name: "Thermostat" id: "climate.thermostat" area: "living_room" - state: "68" + state: "heat" attributes: - unit_of_measurement: "°F" + current_temperature: 68 + + - name: "Office Thermostat" + id: "climate.office_thermostat" + area: "office" + state: "heat" + attributes: + current_temperature: 1 - name: "Front Door" id: "lock.front_door" diff --git a/tests/en/climate_HassClimateGetTemperature.yaml b/tests/en/climate_HassClimateGetTemperature.yaml index ff192f6f5a..ced9875119 100644 --- a/tests/en/climate_HassClimateGetTemperature.yaml +++ b/tests/en/climate_HassClimateGetTemperature.yaml @@ -7,7 +7,7 @@ tests: - "what is the temp?" intent: name: HassClimateGetTemperature - response: "68 °F" + response: "68 degrees" - sentences: - "what is the temperature in the living room?" @@ -21,4 +21,14 @@ tests: name: HassClimateGetTemperature slots: area: Living Room - response: "68 °F" + response: "68 degrees" + + - sentences: + - "what is the temperature of the office thermostat?" + - "what's the office thermostat temperature?" + - "how hot is the office thermostat?" + intent: + name: HassClimateGetTemperature + slots: + name: Office Thermostat + response: "1 degree" diff --git a/tests/en/weather_HassGetWeather.yaml b/tests/en/weather_HassGetWeather.yaml index f8c3b3e192..874e34acb4 100644 --- a/tests/en/weather_HassGetWeather.yaml +++ b/tests/en/weather_HassGetWeather.yaml @@ -1,5 +1,12 @@ language: en tests: + - sentences: + - "what's the weather?" + - "what is the weather like" + intent: + name: HassGetWeather + response: 47 °F and raining + - sentences: - "what's the weather like in london?" - "what is the weather in London like" diff --git a/tests/es/_fixtures.yaml b/tests/es/_fixtures.yaml index 9f15fb23c8..66d61b5fd1 100644 --- a/tests/es/_fixtures.yaml +++ b/tests/es/_fixtures.yaml @@ -117,16 +117,18 @@ entities: - name: Termostato salon id: climate.termostato_salon area: salon - state: "22" + state: "off" attributes: unit_of_measurement: "°C" + current_temperature: 22 - name: Termostato cocina id: climate.termostato_cocina area: cocina - state: "24" + state: "heat" attributes: unit_of_measurement: "°C" + current_temperature: 24.28 - name: Luz de garaje id: light.luz_garaje diff --git a/tests/es/climate_HassClimateGetTemperature.yaml b/tests/es/climate_HassClimateGetTemperature.yaml index f9ab26be3c..e3cc647c47 100644 --- a/tests/es/climate_HassClimateGetTemperature.yaml +++ b/tests/es/climate_HassClimateGetTemperature.yaml @@ -2,27 +2,37 @@ language: es tests: - sentences: - ¿cuál es la temperatura? - - ¿qué temperatura hace? + - ¿qué temperatura hace ahora mismo? - ¿qué temperatura hay? - ¿cuánto calor hace? - - ¿a qué temperatura estamos? + - ¿a qué temperatura estamos actualmente? - ¿a cuántos grados estamos? - ¿cuántos grados hace? intent: name: HassClimateGetTemperature - response: "22.0 grados" + response: "22 grados" - sentences: - - ¿cuál es la temperatura en la cocina? + - ¿cuál es la temperatura actual en la cocina? - ¿qué temperatura hace en la cocina? - - ¿qué temperatura hay en la cocina? + - ¿qué temperatura hay en la cocina en este momento? - ¿cuánto calor hace en la cocina? - ¿cuántos grados hace en la cocina? - ¿a qué temperatura está la cocina? - ¿a cuántos grados estamos en la cocina? - - ¿a qué temperatura están en la cocina? + - ¿a qué temperatura están ahora en la cocina? intent: name: HassClimateGetTemperature slots: area: Cocina - response: "24.0 grados" + response: "24,3 grados" + + - sentences: + - "¿cuál es la temperatura del termostato cocina?" + - "¿a cuántos grados está el termostato cocina?" + - "¿a qué temperatura está el termostato cocina?" + intent: + name: HassClimateGetTemperature + slots: + name: Termostato cocina + response: "24,3 grados" diff --git a/tests/es/weather_HassGetWeather.yaml b/tests/es/weather_HassGetWeather.yaml index ab5cd2416c..c3b8b6d0aa 100644 --- a/tests/es/weather_HassGetWeather.yaml +++ b/tests/es/weather_HassGetWeather.yaml @@ -1,5 +1,11 @@ language: es tests: + - sentences: + - "qué tiempo hace" + intent: + name: HassGetWeather + response: Lluvia, con una temperatura de 18 °C + - sentences: - "qué tiempo hace en Madrid" intent: diff --git a/tests/et/homeassistant_HassTurnOff.yaml b/tests/et/homeassistant_HassTurnOff.yaml index 8962e79a6b..d1d1311679 100644 --- a/tests/et/homeassistant_HassTurnOff.yaml +++ b/tests/et/homeassistant_HassTurnOff.yaml @@ -6,4 +6,4 @@ tests: name: HassTurnOff slots: name: "Elutoa lamp" - response: "Turned off elutoa lamp" + response: "elutoa lamp lülitatud välja" diff --git a/tests/et/homeassistant_HassTurnOn.yaml b/tests/et/homeassistant_HassTurnOn.yaml index 61f2b5c1d1..64f8855f60 100644 --- a/tests/et/homeassistant_HassTurnOn.yaml +++ b/tests/et/homeassistant_HassTurnOn.yaml @@ -6,4 +6,4 @@ tests: name: HassTurnOn slots: name: "Elutoa lamp" - response: "Turned on elutoa lamp" + response: "elutoa lamp lülitatud sisse" diff --git a/tests/fi/_fixtures.yaml b/tests/fi/_fixtures.yaml index 391ce0158b..fecffd6621 100644 --- a/tests/fi/_fixtures.yaml +++ b/tests/fi/_fixtures.yaml @@ -125,9 +125,9 @@ entities: - name: "Termostaatti" id: "climate.thermostat" area: "living_room" - state: "20" + state: "heat" attributes: - unit_of_measurement: "°C" + current_temperature: 20 - name: "Etuovi" id: "lock.front_door" diff --git a/tests/fi/climate_HassClimateGetTemperature.yaml b/tests/fi/climate_HassClimateGetTemperature.yaml index 27e7e80b20..b3fe7f3c56 100644 --- a/tests/fi/climate_HassClimateGetTemperature.yaml +++ b/tests/fi/climate_HassClimateGetTemperature.yaml @@ -27,7 +27,7 @@ tests: - "tällä hetkellä miten kylmän tuntuista on" intent: name: "HassClimateGetTemperature" - response: "20 °C" + response: "20" - sentences: - "kerro paikan olohuone lämpö" @@ -128,4 +128,4 @@ tests: name: HassClimateGetTemperature slots: area: Olohuone - response: "20 °C" + response: "20" diff --git a/tests/fr/_fixtures.yaml b/tests/fr/_fixtures.yaml index 41cd5fac7d..94a98ba9fa 100644 --- a/tests/fr/_fixtures.yaml +++ b/tests/fr/_fixtures.yaml @@ -79,7 +79,9 @@ entities: - name: "thermostat du salon" id: "climate.living_room" area: "living_room" - state: "21" + state: "heat" + attributes: + current_temperature: 21 - name: "température extérieure" id: "sensor.temperature_exterieure" @@ -148,7 +150,7 @@ entities: attributes: device_class: carbon_monoxide - - name: "capteur CO2 chambre" + - name: "capteur monoxyde chambre" id: "binary_sensor.co2" area: "bedroom" state: @@ -408,318 +410,320 @@ entities: attributes: device_class: aqi - # - name: "Outside air sensor" - # id: "sensor.outside_pressure" - # state: "1000" - # attributes: - # device_class: atmospheric_pressure - # unit_of_measurement: "hPa" - - # - name: "My Phone" - # id: "sensor.my_phone_battery" - # state: "98" - # attributes: - # device_class: battery - # unit_of_measurement: "%" - - # - name: "Heat pump CO2 sensor" - # id: "sensor.heat_pump_co2" - # state: "50" - # attributes: - # device_class: carbon_dioxide - # unit_of_measurement: "ppm" - - # - name: "Heat pump CO sensor" - # id: "sensor.heat_pump_co" - # state: "48" - # attributes: - # device_class: carbon_monoxide - # unit_of_measurement: "ppm" - - # - name: "House current draw" - # id: "sensor.house_current" - # state: "19" - # attributes: - # device_class: current - # unit_of_measurement: "A" - - # - name: "Macrotorrent" - # id: "sensor.macrotorrent_download_speed" - # state: "22.9" - # attributes: - # device_class: data_rate - # unit_of_measurement: "MB/s" - - # - name: "Log file" - # id: "sensor.log_file_size" - # state: "106" - # attributes: - # device_class: data_size - # unit_of_measurement: "kB" - - # - name: "Next birthday" - # id: "sensor.next_birthday" - # state: "2024-04-01" - # attributes: - # device_class: date - - # - name: "Car mileage" - # id: "sensor.car_mileage" - # state: "65536" - # attributes: - # device_class: distance - # unit_of_measurement: "km" - - # - name: "Dishwasher current program" - # id: "sensor.dishwasher_program_duration" - # state: "64" - # attributes: - # device_class: duration - # unit_of_measurement: "min" - - # - name: "Solar production" - # id: "sensor.solar_production" - # state: "3.2" - # attributes: - # device_class: energy - # unit_of_measurement: "kWh" - - # - name: "Powerwall stored energy" - # id: "sensor.powerwall_stored_energy" - # state: "6" - # attributes: - # device_class: energy_storage - # unit_of_measurement: "kWh" - - # - name: "Grid AC frequency" - # id: "sensor.grid_frequency" - # state: "51" - # attributes: - # device_class: frequency - # unit_of_measurement: "Hz" - - # - name: "Monthly gas consumption" - # id: "sensor.monthly_gas_consumption" - # state: "12" - # attributes: - # device_class: gas - # unit_of_measurement: "m³" - - # - name: "Living room humidity" - # id: "sensor.living_room_humidity" - # state: "48" - # attributes: - # device_class: humidity - # unit_of_measurement: "%" - - # - name: "Living room illuminance" - # id: "sensor.living_room_illuminance" - # state: "438" - # attributes: - # device_class: illuminance - # unit_of_measurement: "lux" - - # - name: "Living room heater irradiance" - # id: "sensor.living_room_heater_irradiance" - # state: "155" - # attributes: - # device_class: irradiance - # unit_of_measurement: "W/m²" - - # - name: "Brewery mixer" - # id: "sensor.bewery_mixer_moisture" - # state: "83" - # attributes: - # device_class: moisture - # unit_of_measurement: "%" - - # - name: "Price per kW" - # id: "sensor.price_per_kW" - # state: "1" - # attributes: - # device_class: monetary - # unit_of_measurement: "EUR" - - # - name: "Heat pump NO2 sensor" - # id: "sensor.heat_pump_no2" - # state: "50" - # attributes: - # device_class: nitrogen_dioxide - # unit_of_measurement: "µg/m³" - - # - name: "Heat pump NO sensor" - # id: "sensor.heat_pump_no" - # state: "50" - # attributes: - # device_class: nitrogen_monoxide - # unit_of_measurement: "µg/m³" - - # - name: "Heat pump N2O sensor" - # id: "sensor.heat_pump_n2o" - # state: "50" - # attributes: - # device_class: nitrous_oxide - # unit_of_measurement: "µg/m³" - - # - name: "Living room ozone sensor" - # id: "sensor.living_room_ozone" - # state: "50" - # attributes: - # device_class: ozone - # unit_of_measurement: "µg/m³" - - # - name: "Living room PM1 sensor" - # id: "sensor.living_room_pm1" - # state: "50" - # attributes: - # device_class: pm1 - # unit_of_measurement: "µg/m³" - - # - name: "Living room PM2.5 sensor" - # id: "sensor.living_room_pm25" - # state: "50" - # attributes: - # device_class: pm25 - # unit_of_measurement: "µg/m³" - - # - name: "Living room PM10 sensor" - # id: "sensor.living_room_pm10" - # state: "50" - # attributes: - # device_class: pm10 - # unit_of_measurement: "µg/m³" - - # - name: "Wall plug power factor" - # id: "sensor.wall_plug_power_factor" - # state: "2" - # attributes: - # device_class: power_factor - - # - name: "Air conditioning power" - # id: "sensor.aircon_power" - # state: "380" - # attributes: - # device_class: power - # unit_of_measurement: "W" - - # - name: "Outside rain sensor" - # id: "sensor.rain_sensor_total" - # state: "29" - # attributes: - # device_class: precipitation - # unit_of_measurement: "mm" - - # - name: "Outside rain sensor" - # id: "sensor.rain_sensor_intensity" - # state: "144" - # attributes: - # device_class: precipitation_intensity - # unit_of_measurement: "mm/h" - - # - name: "Car tyre pressure" - # id: "sensor.tyre_pressure" - # state: "2.1" - # attributes: - # device_class: pressure - # unit_of_measurement: "bar" - - # - name: "Water pump reactive power" - # id: "sensor.water_pump_reactive_power" - # state: "22" - # attributes: - # device_class: reactive_power - # unit_of_measurement: "VAR" - - # - name: "My phone GSM signal" - # id: "sensor.my_phone_gsm_signal" - # state: "-43" - # attributes: - # device_class: signal_strength - # unit_of_measurement: "dBm" - - # - name: "Sound bar acoustic pressure" - # id: "sensor.sound_bar_sound_pressure" - # state: "62" - # attributes: - # device_class: sound_pressure - # unit_of_measurement: "dB" - - # - name: "Travelling speed" - # id: "sensor.traveling speed" - # state: "67" - # attributes: - # device_class: speed - # unit_of_measurement: "km/h" - - # - name: "Heat pump SO2 sensor" - # id: "sensor.heat_pump_so2" - # state: "50" - # attributes: - # device_class: sulphur_dioxide - # unit_of_measurement: "µg/m³" - - # - name: "Furnace" - # id: "sensor.furnace_temperature" - # state: "380" - # attributes: - # device_class: temperature - # unit_of_measurement: "°C" - - # - name: "Poo poo sensor" - # id: "sensor.voc_sensor" - # state: "35" - # attributes: - # device_class: volatile_organic_compounds - # unit_of_measurement: "µg/m³" - - # - name: "Poo poo sensor 2" - # id: "sensor.voc_sensor_parts" - # state: "35" - # attributes: - # device_class: volatile_organic_compounds_parts - # unit_of_measurement: "ppm" - - # - name: "Input voltage" - # id: "sensor.input_voltage" - # state: "12" - # attributes: - # device_class: voltage - # unit_of_measurement: "V" - - # - name: "Water pump usage today" - # id: "sensor.water_pump_usage_today" - # state: "1356" - # attributes: - # device_class: volume - # unit_of_measurement: "L" - - # - name: "Water pump buffer" - # id: "sensor.water_pump_buffer" - # state: "28" - # attributes: - # device_class: volume_storage - # unit_of_measurement: "L" - - # - name: "Water pump usage" - # id: "sensor.water_pump_usage" - # state: "5987" - # attributes: - # device_class: water - # unit_of_measurement: "L" - - # - name: "Bed sensor weight" - # id: "sensor.bed_sensor_weight" - # state: "87" - # attributes: - # device_class: weight - # unit_of_measurement: "kg" - - # - name: "Mistral" - # id: "sensor.mistral_speed" - # state: "33" - # attributes: - # device_class: wind_speed - # unit_of_measurement: "km/h" + - name: "Capteur de pression extérieur" + id: "sensor.capteur_de_pression_exterieur" + state: "1000" + attributes: + device_class: atmospheric_pressure + unit_of_measurement: "hPa" + + - name: "Mon tel" + id: "sensor.mon_tel" + state: "98" + attributes: + device_class: battery + unit_of_measurement: "%" + + - name: "Capteur de CO2 pompe à chaleur" + id: "sensor.capteur_de_CO2 pompe_a_chaleur" + state: "50" + attributes: + device_class: carbon_dioxide + unit_of_measurement: "ppm" + + - name: "Capteur de monoxyde du garage" + id: "sensor.capteur_de_monoxyde_du_garage" + state: "48" + attributes: + device_class: carbon_monoxide + unit_of_measurement: "ppm" + + - name: "Compteur électrique" + id: "sensor.compteur_electrique" + state: "19" + attributes: + device_class: current + unit_of_measurement: "A" + + - name: "Routeur" + id: "sensor.routeur" + state: "22.9" + attributes: + device_class: data_rate + unit_of_measurement: "MB/s" + + - name: "Journal" + id: "sensor.journal" + state: "106" + attributes: + device_class: data_size + unit_of_measurement: "kB" + + - name: "Prochain anniversaire" + id: "sensor.prochain_anniversaire" + state: "2024-04-01" + attributes: + device_class: date + + - name: "voiture" + id: "sensor.car_mileage" + state: "65536" + attributes: + device_class: distance + unit_of_measurement: "km" + + - name: "Programme machine en cours" + id: "sensor.programme_machine_en_cours" + state: "64" + attributes: + device_class: duration + unit_of_measurement: "min" + + - name: "Panneaux solaires" + id: "sensor.panneaux_solaires" + state: "3.2" + attributes: + device_class: energy + unit_of_measurement: "kWh" + + - name: "Batteries panneaux" + id: "sensor.batteries_panneaux" + state: "6" + attributes: + device_class: energy_storage + unit_of_measurement: "kWh" + + - name: "Routeur wifi" + id: "sensor.router_wifi" + state: "5" + attributes: + device_class: frequency + unit_of_measurement: "Ghz" + + - name: "Consommation de gaz mensuelle" + id: "sensor.consommation_de_gaz_mensuelle" + state: "12" + attributes: + device_class: gas + unit_of_measurement: "m³" + + - name: "capteur d'humidité" + id: "sensor.capteur_humidite_de_la_chambre" + state: "48" + area: bedroom + attributes: + device_class: humidity + unit_of_measurement: "%" + + - name: "capteur luminosité" + id: "sensor.capteur_luminosite" + state: "438" + area: living_room + attributes: + device_class: illuminance + unit_of_measurement: "lux" + + - name: "Chauffage bébé" + id: "sensor.living_room_heater_irradiance" + state: "155" + attributes: + device_class: irradiance + unit_of_measurement: "W/m²" + + - name: "capteur jardinière" + id: "sensor.capteur_jardiniere" + state: "83" + attributes: + device_class: moisture + unit_of_measurement: "%" + + - name: "prix au kilowatt" + id: "sensor.prix_au_kilowatt" + state: "1" + attributes: + device_class: monetary + unit_of_measurement: "EUR" + + - name: "capteur NO2" + id: "sensor.capteur_no2" + state: "50" + attributes: + device_class: nitrogen_dioxide + unit_of_measurement: "µg/m³" + + - name: "capteur NO" + id: "sensor.capteur_no" + state: "50" + attributes: + device_class: nitrogen_monoxide + unit_of_measurement: "µg/m³" + + - name: "capteur N2O" + id: "sensor.capteur_n2o" + state: "50" + attributes: + device_class: nitrous_oxide + unit_of_measurement: "µg/m³" + + - name: "capteur ozone" + id: "sensor.living_room_ozone" + state: "50" + attributes: + device_class: ozone + unit_of_measurement: "µg/m³" + + - name: "capteur PM1" + id: "sensor.living_room_pm1" + state: "50" + attributes: + device_class: pm1 + unit_of_measurement: "µg/m³" + + - name: "capteur PM2.5" + id: "sensor.capteur_pm25" + state: "50" + attributes: + device_class: pm25 + unit_of_measurement: "µg/m³" + + - name: "capteur PM10" + id: "sensor.capteur_PM10" + state: "50" + attributes: + device_class: pm10 + unit_of_measurement: "µg/m³" + + - name: "puissance prise murale" + id: "sensor.puissance_prise_murale" + state: "2" + attributes: + device_class: power_factor + + - name: "watts air conditionné" + id: "sensor.aircon_power" + state: "380" + attributes: + device_class: power + unit_of_measurement: "W" + + - name: "pluviomètre" + id: "sensor.pluviometre" + state: "29" + attributes: + device_class: precipitation + unit_of_measurement: "mm" + + - name: "pluviomètre" + id: "sensor.pluviomètre_intensité" + state: "144" + attributes: + device_class: precipitation_intensity + unit_of_measurement: "mm/h" + + - name: "pression pneus" + id: "sensor.pression_pneus" + state: "2.1" + attributes: + device_class: pressure + unit_of_measurement: "bar" + + - name: "pompe" + id: "sensor.pompe_puissance_reactive" + state: "22" + attributes: + device_class: reactive_power + unit_of_measurement: "VAR" + + - name: "téléphone" + id: "sensor.telephone_force_signal" + state: "-43" + attributes: + device_class: signal_strength + unit_of_measurement: "dBm" + + - name: "barre de son" + id: "sensor.barre_de_son" + state: "62" + attributes: + device_class: sound_pressure + unit_of_measurement: "dB" + + - name: "voiture de madame" + id: "sensor.voiture_de_madame_vitesse" + state: "67" + attributes: + device_class: speed + unit_of_measurement: "km/h" + + - name: "pompe à chaleur" + id: "sensor.pompe_a_chaleur_so2" + state: "50" + attributes: + device_class: sulphur_dioxide + unit_of_measurement: "µg/m³" + + - name: "sonde salon" + id: "sensor.sonde_salon_temperature" + state: "19" + attributes: + device_class: temperature + unit_of_measurement: "°C" + + - name: "capteur VOC cuisine" + id: "sensor.capteur_voc_cuisine" + state: "35" + attributes: + device_class: volatile_organic_compounds + unit_of_measurement: "µg/m³" + + - name: "capteur VOC cuisine" + id: "sensor.capteur_voc_cuisine_particules" + state: "35" + attributes: + device_class: volatile_organic_compounds_parts + unit_of_measurement: "ppm" + + - name: "voltage chaudière" + id: "sensor.voltage_chaudière" + state: "12" + attributes: + device_class: voltage + unit_of_measurement: "V" + + - name: "total pompe quotidien" + id: "sensor.pompe_quotidien" + state: "1356" + attributes: + device_class: volume + unit_of_measurement: "L" + + - name: "tampon pompe" + id: "sensor.tampn_pompe" + state: "28" + attributes: + device_class: volume_storage + unit_of_measurement: "L" + + - name: "pompe à eau" + id: "sensor.pompe_a_eau" + state: "5987" + attributes: + device_class: water + unit_of_measurement: "L" + + - name: "capteur lit" + id: "sensor.bed_sensor_weight" + state: "87" + attributes: + device_class: weight + unit_of_measurement: "kg" + + - name: "Mistral" + id: "sensor.mistral_speed" + state: "33" + attributes: + device_class: wind_speed + unit_of_measurement: "km/h" - name: "Paris" id: "weather.paris" diff --git a/tests/fr/binary_sensor_HassGetState.yaml b/tests/fr/binary_sensor_HassGetState.yaml index fc5085741f..a8f124b9c3 100644 --- a/tests/fr/binary_sensor_HassGetState.yaml +++ b/tests/fr/binary_sensor_HassGetState.yaml @@ -183,22 +183,22 @@ tests: device_class: "carbon_monoxide" area: chambre state: "on" - response: "Oui, capteur CO2 chambre est déclenché" + response: "Oui, capteur monoxyde chambre est déclenché" - sentences: - - "Il y a un capteur de CO2 déclenché ?" + - "Il y a un capteur de monoxyde déclenché ?" intent: name: HassGetState slots: domain: binary_sensor device_class: carbon_monoxide state: "on" - response: "Oui, capteur CO2 chambre est déclenché" + response: "Oui, capteur monoxyde chambre est déclenché" - sentences: - - "Y a-t-il un capteur de CO2 déclenché dans la cuisine ?" + - "Y a-t-il un capteur de monoxyde déclenché dans la cuisine ?" - "du monoxyde de carbone est il détecté dans la cuisine ?" - - "Une alerte au CO2 a-t-elle été déclenchée dans la cuisine ?" + - "Une alerte au CO a-t-elle été déclenchée dans la cuisine ?" intent: name: HassGetState slots: @@ -209,7 +209,7 @@ tests: response: "Non" - sentences: - - "Tous les capteurs de CO2 sont ils déclenchés ?" + - "Tous les capteurs de monoxyde de carbone sont ils déclenchés ?" intent: name: HassGetState slots: @@ -219,29 +219,29 @@ tests: response: "Non, pas capteur monoxyde" - sentences: - - "Tous les capteurs de CO2 sont ils sécurisés ?" + - "Tous les capteurs de CO sont ils sécurisés ?" intent: name: HassGetState slots: domain: binary_sensor device_class: carbon_monoxide state: "off" - response: "Non, pas capteur CO2 chambre" + response: "Non, pas capteur monoxyde chambre" - sentences: - - "Quel capteur de CO2 est détecté ?" + - "Quel capteur de CO est détecté ?" - "Où du monoxyde de carbone est détecté ?" - - "Où du CO2 a-t-il été détecté ?" + - "Où du monoxyde de carbone a-t-il été détecté ?" intent: name: HassGetState slots: domain: binary_sensor device_class: carbon_monoxide state: "on" - response: "capteur CO2 chambre est déclenché" + response: "capteur monoxyde chambre est déclenché" - sentences: - - "Quel capteur de CO2 est détecté dans la chambre?" + - "Quel capteur de monoxyde est détecté dans la chambre?" intent: name: HassGetState slots: @@ -249,11 +249,11 @@ tests: domain: binary_sensor device_class: carbon_monoxide state: "on" - response: "capteur CO2 chambre est déclenché" + response: "capteur monoxyde chambre est déclenché" - sentences: - "Combien de capteurs de monoxyde sont en alarme ?" - - "Compte les capteurs de CO2 déclenchés" + - "Compte les capteurs de monoxyde déclenchés" intent: name: HassGetState slots: diff --git a/tests/fr/homeassistant_HassNevermind.yaml b/tests/fr/homeassistant_HassNevermind.yaml new file mode 100644 index 0000000000..95f6dafa18 --- /dev/null +++ b/tests/fr/homeassistant_HassNevermind.yaml @@ -0,0 +1,7 @@ +language: fr +tests: + - sentences: + - "oublie" + - "annule" + intent: + name: HassNevermind diff --git a/tests/fr/sensor_HassGetState.yaml b/tests/fr/sensor_HassGetState.yaml index 7631235434..15a67b1e6d 100644 --- a/tests/fr/sensor_HassGetState.yaml +++ b/tests/fr/sensor_HassGetState.yaml @@ -23,498 +23,506 @@ tests: response: "50" # # Atmospheric pressure - # - sentences: - # - "what is the air pressure of outside air sensor?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: atmospheric_pressure - # name: "Outside air sensor" - # response: "Outside air sensor is 1000 hPa" - - # # Battery - # - sentences: - # - "what is the battery level of my phone?" - # - "how much battery does my phone have left?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: battery - # name: "My Phone" - # response: "My phone is 98 %" - - # # CO2 - # - sentences: - # - "what is the heat pump co2 sensor's co2 level?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: carbon_dioxide - # name: "Heat pump CO2 sensor" - # response: "Heat pump co2 sensor is 50 ppm" - - # # CO - # - sentences: - # - "what's the carbon monoxide concentration measured by the heat pump co sensor?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: carbon_monoxide - # name: "Heat pump CO sensor" - # response: "Heat pump co sensor is 48 ppm" - - # # Current - # - sentences: - # - "what is the amount of current indicated by house current draw?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: current - # name: "House current draw" - # response: "House current draw is 19 A" - - # # Data rate - # - sentences: - # - "what is Macrotorrent's download speed?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: data_rate - # name: "Macrotorrent" - # response: "Macrotorrent is 22.9 MB/s" - - # # Data size - # - sentences: - # - "what's the log file size?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: data_size - # name: "Log file" - # response: "Log file is 106 kB" - - # # Date - # - sentences: - # - "what is the date of next birthday?" - # - "when will the next birthday be?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: date - # name: "Next birthday" - # response: "Next birthday is 2024-04-01" - - # # Distance - # - sentences: - # - "what is the car mileage distance?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: distance - # name: "Car mileage" - # response: "Car mileage is 65536 km" - - # # Duration - # - sentences: - # - "what is the dishwasher current program's duration?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: duration - # name: "Dishwasher current program" - # response: "Dishwasher current program is 64 min" + - sentences: + - "Quelle est la pression atmosphérique de capteur de pression extérieur" + - "Quelle est la pression atmosphérique renvoyée par le capteur de pression extérieur" + intent: + name: HassGetState + slots: + domain: sensor + device_class: atmospheric_pressure + name: "Capteur de pression extérieur" + response: "1000 hPa" + + # Battery + - sentences: + - "Quel est le niveau de batterie de mon tel" + - "Combien de batterie mon tel a-t-il" + intent: + name: HassGetState + slots: + domain: sensor + device_class: battery + name: "Mon tel" + response: "98 %" + + # CO2 + - sentences: + - "Quel est le niveau de dioxyde de carbone du capteur de CO2 pompe à chaleur" + - "Quel est le niveau de CO2 mesuré par le capteur de CO2 pompe à chaleur" + intent: + name: HassGetState + slots: + domain: sensor + device_class: carbon_dioxide + name: "Capteur de CO2 pompe à chaleur" + response: "50 ppm" + + # CO + - sentences: + - "Quel est le niveau de monoxyde de carbone du capteur de monoxyde du garage" + - "Quel est le niveau de CO mesuré par le capteur de monoxyde du garage" + intent: + name: HassGetState + slots: + domain: sensor + device_class: carbon_monoxide + name: "Capteur de monoxyde du garage" + response: "48 ppm" + + # Current + - sentences: + - "Quel est la quantité de courant électrique retournée par le compteur électrique?" + intent: + name: HassGetState + slots: + domain: sensor + device_class: current + name: "Compteur électrique" + response: "19 A" + + # Data rate + - sentences: + - "Quelle est le débit du routeur" + intent: + name: HassGetState + slots: + domain: sensor + device_class: data_rate + name: "Routeur" + response: "22.9 MB/s" + + # Data size + - sentences: + - "Quelle est la taille du journal?" + - "Quel est le volume de données du journal?" + intent: + name: HassGetState + slots: + domain: sensor + device_class: data_size + name: "Journal" + response: "106 kB" + + # Date + - sentences: + - "Quelle est la date de prochain anniversaire" + - "Quand est le prochain anniversaire" + intent: + name: HassGetState + slots: + domain: sensor + device_class: date + name: "Prochain anniversaire" + response: "2024-04-01" + + # Distance + - sentences: + - "Quelle est le kilométrage de la voiture?" + intent: + name: HassGetState + slots: + domain: sensor + device_class: distance + name: "voiture" + response: "65536 km" + + # Duration + - sentences: + - "Quelle est la durée du programme machine en cours?" + - "Quelle est la durée restante du programme machine en cours?" + intent: + name: HassGetState + slots: + domain: sensor + device_class: duration + name: "Programme machine en cours" + response: "64 min" # # Energy - # - sentences: - # - "what is the amount of energy from solar production?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: energy - # name: "Solar production" - # response: "Solar production is 3.2 kWh" - - # # Energy storage - # - sentences: - # - "what is the amount of energy in powerwall stored energy?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: energy_storage - # name: "Powerwall stored energy" - # response: "Powerwall stored energy is 6 kWh" - - # # Frequency - # - sentences: - # - "what's the frequency of the grid AC frequency?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: frequency - # name: "Grid AC frequency" - # response: "Grid ac frequency is 51 Hz" - - # # Gas - # - sentences: - # - "what is the amount of gas indicated by monthly gas consumption?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: gas - # name: "Monthly gas consumption" - # response: "Monthly gas consumption is 12 m³" - - # # Humidity - # - sentences: - # - "what is the relative humidity in living room humidity?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: humidity - # name: "Living room humidity" - # response: "Living room humidity is 48 %" - - # # Illuminance - # - sentences: - # - "what is living room illuminance's brightness level?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: illuminance - # name: "Living room illuminance" - # response: "Living room illuminance is 438 lux" - - # # Irradiance - # - sentences: - # - "what is the irradiance of Living room heater irradiance?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: irradiance - # name: "Living room heater irradiance" - # response: "Living room heater irradiance is 155 W/m²" - - # # Moisture - # - sentences: - # - "what is the brewery mixer moisture?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: moisture - # name: "Brewery mixer" - # response: "Brewery mixer is 83 %" - - # # Monetary - # - sentences: - # - "what is the cost of price per kw?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: monetary - # name: "Price per kW" - # response: "Price per kw is 1 EUR" - - # # Nitrogen dioxide - # - sentences: - # - "what is the nitrogen dioxide concentration of Heat pump NO2 sensor?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: nitrogen_dioxide - # name: "Heat pump NO2 sensor" - # response: "Heat pump no2 sensor is 50 µg/m³" - - # # Nitrogen monoxide - # - sentences: - # - "what is the nitrogen monoxide concentration of Heat pump NO sensor?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: nitrogen_monoxide - # name: "Heat pump NO sensor" - # response: "Heat pump no sensor is 50 µg/m³" - - # # Nitrogen oxide - # - sentences: - # - "what is the N2O concentration of Heat pump N2O sensor?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: nitrous_oxide - # name: "Heat pump N2O sensor" - # response: "Heat pump n2o sensor is 50 µg/m³" - - # # Ozone - # - sentences: - # - "what is the o3 level indicated by living room ozone sensor?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: ozone - # name: "Living room ozone sensor" - # response: "Living room ozone sensor is 50 µg/m³" - - # # PM1 - # - sentences: - # - "what is the PM1 level indicated by living room PM1 sensor?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: pm1 - # name: "Living room PM1 sensor" - # response: "Living room pm1 sensor is 50 µg/m³" - - # # PM2.5 - # - sentences: - # - "what is the PM2.5 level indicated by living room PM2.5 sensor?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: pm25 - # name: "Living room PM2.5 sensor" - # response: "Living room pm25 sensor is 50 µg/m³" - - # # PM10 - # - sentences: - # - "what is the PM10 level indicated by living room PM10 sensor?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: pm10 - # name: "Living room PM10 sensor" - # response: "Living room pm10 sensor is 50 µg/m³" - - # # Power factor - # - sentences: - # - "what is the power factor of the wall plug power factor?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: power_factor - # name: "Wall plug power factor" - # response: "Wall plug power factor is 2" - - # # Power - # - sentences: - # - "what is the power of air conditioning power?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: power - # name: "Air conditioning power" - # response: "Air conditioning power is 380 W" - - # # Precipitation - # - sentences: - # - "what is the accumulated rainfall indicated by Outside rain sensor?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: precipitation - # name: "Outside rain sensor" - # response: "Outside rain sensor is 29 mm" - - # # Precipitation intensity - # - sentences: - # - "what is the rainfall intensity indicated by Outside rain sensor?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: precipitation_intensity - # name: "Outside rain sensor" - # response: "Outside rain sensor is 144 mm/h" - - # # Pressure - # - sentences: - # - "what is the pressure of the car tyre pressure?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: pressure - # name: "Car tyre pressure" - # response: "Car tyre pressure is 2.1 bar" - - # # Reactiv epower - # - sentences: - # - "what is the reactive power of Water pump reactive power?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: reactive_power - # name: "Water pump reactive power" - # response: "Water pump reactive power is 22 VAR" - - # # Signal strength - # - sentences: - # - "what is the signal strength measured by my phone gsm signal?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: signal_strength - # name: "My phone GSM signal" - # response: "My phone gsm signal is -43 dBm" - - # # Sound pressure - # - sentences: - # - "what is the acoustic pressure measured by Sound bar acoustic pressure?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: sound_pressure - # name: "Sound bar acoustic pressure" - # response: "Sound bar acoustic pressure is 62 dB" - - # # Speed - # - sentences: - # - "what is the speed indicated by travelling speed?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: speed - # name: "Travelling speed" - # response: "Travelling speed is 67 km/h" - - # # Sulphur dioxide - # - sentences: - # - "what is the sulphur dioxide concentration of Heat pump SO2 sensor?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: sulphur_dioxide - # name: "Heat pump SO2 sensor" - # response: "Heat pump so2 sensor is 50 µg/m³" - - # # Temperature - # - sentences: - # - "what is the furnace temperature?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: temperature - # name: "Furnace" - # response: "Furnace is 380 °C" - - # # VOC - # - sentences: - # - "what is the concentration of organic compounds indicated by poo poo sensor?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: volatile_organic_compounds - # name: "Poo poo sensor" - # response: "Poo poo sensor is 35 µg/m³" + - sentences: + - "Quelle est la quantité d'énergie produite par les panneaux solaires?" + intent: + name: HassGetState + slots: + domain: sensor + device_class: energy + name: "Panneaux solaires" + response: "3.2 kWh" + + # Energy storage + - sentences: + - "Quelle est la quantité d'énergie stockée par les batteries panneaux?" + intent: + name: HassGetState + slots: + domain: sensor + device_class: energy_storage + name: "Batteries panneaux" + response: "6 kWh" + + # Frequency + - sentences: + - "Quelle est la fréquence du routeur wifi" + intent: + name: HassGetState + slots: + domain: sensor + device_class: frequency + name: "Routeur wifi" + response: "5 Ghz" + + # Gas + - sentences: + - "Quelle est le volume de gaz indiqué par la consommation de gaz mensuelle" + intent: + name: HassGetState + slots: + domain: sensor + device_class: gas + name: "Consommation de gaz mensuelle" + response: "12 m³" + + # Humidity + - sentences: + - "quel est le taux d'humidité indiqué par le capteur d'humidité dans la chambre" + intent: + name: HassGetState + slots: + area: chambre + domain: sensor + device_class: humidity + name: "capteur d'humidité" + response: "48 %" + + # Illuminance + - sentences: + - "Quel est le niveau de luminosité du capteur luminosité dans le salon" + intent: + name: HassGetState + slots: + area: salon + domain: sensor + device_class: illuminance + name: "capteur luminosité" + response: "438 lux" + + # Irradiance + - sentences: + - "Quelle est le niveau d'irradiation sur le chauffage bébé" + intent: + name: HassGetState + slots: + domain: sensor + device_class: irradiance + name: "Chauffage bébé" + response: "155 W/m²" + + # Moisture + - sentences: + - "Quel est le taux d'humidité du capteur jardinière" + intent: + name: HassGetState + slots: + domain: sensor + device_class: moisture + name: "capteur jardinière" + response: "83 %" + + # Monetary + - sentences: + - "Quel est le coût du prix au kilowatt" + intent: + name: HassGetState + slots: + domain: sensor + device_class: monetary + name: "prix au kilowatt" + response: "1 EUR" + + # Nitrogen dioxide + - sentences: + - "Quel est le niveau de dioxyde d'azote du capteur NO2" + intent: + name: HassGetState + slots: + domain: sensor + device_class: nitrogen_dioxide + name: "capteur NO2" + response: "50 µg/m³" + + # Nitrogen monoxide + - sentences: + - "Quel est le niveau de monoxyde d'azote du capteur NO" + intent: + name: HassGetState + slots: + domain: sensor + device_class: nitrogen_monoxide + name: "capteur NO" + response: "50 µg/m³" + + # Nitrogen oxide + - sentences: + - "Quel est la concentration de N2O du capteur N2O" + intent: + name: HassGetState + slots: + domain: sensor + device_class: nitrous_oxide + name: "capteur N2O" + response: "50 µg/m³" + + # Ozone + - sentences: + - "Quel est la concentration d'ozone renvoyée par le capteur ozone" + intent: + name: HassGetState + slots: + domain: sensor + device_class: ozone + name: "capteur ozone" + response: "50 µg/m³" + + # PM1 + - sentences: + - "Quel est le niveau de particules fines indiqué par le capteur PM1" + intent: + name: HassGetState + slots: + domain: sensor + device_class: pm1 + name: "capteur PM1" + response: "50 µg/m³" + + # PM2.5 + - sentences: + - "Quel est le niveau de particules fines indiqué par le capteur PM2.5" + intent: + name: HassGetState + slots: + domain: sensor + device_class: pm25 + name: "capteur PM2.5" + response: "50 µg/m³" + + # PM10 + - sentences: + - "Quel est le niveau de particules fines indiqué par le capteur PM10" + intent: + name: HassGetState + slots: + domain: sensor + device_class: pm10 + name: "capteur PM10" + response: "50 µg/m³" + + # Power factor + - sentences: + - "Quel est le facteur de puissance renvoyé par puissance prise murale" + intent: + name: HassGetState + slots: + domain: sensor + device_class: power_factor + name: "puissance prise murale" + response: "2" + + # Power + - sentences: + - "Quelle est la puissance de watts air conditionné" + intent: + name: HassGetState + slots: + domain: sensor + device_class: power + name: "watts air conditionné" + response: "380 W" + + # Precipitation + - sentences: + - "Quel est le niveau de précipitations mesuré par le pluviomètre" + - "Quelles sont les précipitations mesurées par le pluviomètre" + intent: + name: HassGetState + slots: + domain: sensor + device_class: precipitation + name: "pluviomètre" + response: "29 mm" + + # Precipitation intensity + - sentences: + - "Quelle est l'intensité de pluie renvoyée par le pluviomètre" + intent: + name: HassGetState + slots: + domain: sensor + device_class: precipitation_intensity + name: "pluviomètre" + response: "144 mm/h" + + # Pressure + - sentences: + - "Quelle est la pression indiquée par pression pneus" + intent: + name: HassGetState + slots: + domain: sensor + device_class: pressure + name: "pression pneus" + response: "2.1 bar" + + # Reactiv epower + - sentences: + - "Quelle est la puissance réactive de la pompe" + intent: + name: HassGetState + slots: + domain: sensor + device_class: reactive_power + name: "pompe" + response: "22 VAR" + + # Signal strength + - sentences: + - "Quelle est la force du signal du téléphone" + intent: + name: HassGetState + slots: + domain: sensor + device_class: signal_strength + name: "téléphone" + response: "-43 dBm" + + # Sound pressure + - sentences: + - "Quelle est la pression acoustique de la barre de son" + intent: + name: HassGetState + slots: + domain: sensor + device_class: sound_pressure + name: "barre de son" + response: "62 dB" + + # Speed + - sentences: + - "Quelle est la vitesse de la voiture de madame" + intent: + name: HassGetState + slots: + domain: sensor + device_class: speed + name: "voiture de madame" + response: "67 km/h" + + # Sulphur dioxide + - sentences: + - "Quel est la concentration de dioxyde de soufre de la pompe à chaleur" + intent: + name: HassGetState + slots: + domain: sensor + device_class: sulphur_dioxide + name: "pompe à chaleur" + response: "50 µg/m³" + + # Temperature + - sentences: + - "Quelle est la température mesurée par la sonde salon" + intent: + name: HassGetState + slots: + domain: sensor + device_class: temperature + name: "sonde salon" + response: "19 °C" + + # VOC + - sentences: + - "Quelle est la concentration de composés volatils donnée par le capteur VOC cuisine" + intent: + name: HassGetState + slots: + domain: sensor + device_class: volatile_organic_compounds + name: "capteur VOC cuisine" + response: "35 µg/m³" # # VOC in parts - # - sentences: - # - "what is the concentration of organic compounds indicated by poo poo sensor 2?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: volatile_organic_compounds_parts - # name: "Poo poo sensor 2" - # response: "Poo poo sensor 2 is 35 ppm" - - # # Voltage - # - sentences: - # - "what is the input voltage voltage drop?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: voltage - # name: "Input voltage" - # response: "Input voltage is 12 V" - - # # Volume - # - sentences: - # - "what is the water pump usage today volume?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: volume - # name: "Water pump usage today" - # response: "Water pump usage today is 1356 L" - - # # Volume storage - # - sentences: - # - "what is the total stored volume in the water pump buffer?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: volume_storage - # name: "Water pump buffer" - # response: "Water pump buffer is 28 L" - - # # Water - # - sentences: - # - "what is the water pump usage total amount of consumed water?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: water - # name: "Water pump usage" - # response: "Water pump usage is 5987 L" - - # # Weight - # - sentences: - # - "what is the weight indicated by bed sensor weight?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: weight - # name: "Bed sensor weight" - # response: "Bed sensor weight is 87 kg" - - # # Wind speed - # - sentences: - # - "what is Mistral's speed?" - # intent: - # name: HassGetState - # slots: - # domain: sensor - # device_class: wind_speed - # name: "Mistral" - # response: "Mistral is 33 km/h" + - sentences: + - "Quel est le niveau de particules de composés volatils renvoyé par le capteur VOC cuisine" + intent: + name: HassGetState + slots: + domain: sensor + device_class: volatile_organic_compounds_parts + name: "capteur VOC cuisine" + response: "35 ppm" + + # Voltage + - sentences: + - "Quel est le voltage renvoyé par voltage chaudière" + intent: + name: HassGetState + slots: + domain: sensor + device_class: voltage + name: "voltage chaudière" + response: "12 V" + + # Volume + - sentences: + - "Quel est le volume de total pompe quotidien" + intent: + name: HassGetState + slots: + domain: sensor + device_class: volume + name: "total pompe quotidien" + response: "1356 L" + + # Volume storage + - sentences: + - "Quel est le volume total du tampon pompe" + intent: + name: HassGetState + slots: + domain: sensor + device_class: volume_storage + name: "tampon pompe" + response: "28 L" + + # Water + - sentences: + - "Quelle est la consommation d'eau de la pompe à eau" + intent: + name: HassGetState + slots: + domain: sensor + device_class: water + name: "pompe à eau" + response: "5987 L" + + # Weight + - sentences: + - "Quel est le poids donné par le capteur lit" + intent: + name: HassGetState + slots: + domain: sensor + device_class: weight + name: "capteur lit" + response: "87 kg" + + # Wind speed + - sentences: + - "Quelle est la vitesse du vent Mistral" + intent: + name: HassGetState + slots: + domain: sensor + device_class: wind_speed + name: "Mistral" + response: "33 km/h" diff --git a/tests/fr/weather_HassGetWeather.yaml b/tests/fr/weather_HassGetWeather.yaml index eab081f3cd..b79b26bfc0 100644 --- a/tests/fr/weather_HassGetWeather.yaml +++ b/tests/fr/weather_HassGetWeather.yaml @@ -1,5 +1,12 @@ language: fr tests: + - sentences: + - "Quel temps fait-il" + - "Donne-moi la météo" + - "Donne moi le temps qu'il fait" + intent: + name: HassGetWeather + response: 10 °C et de la pluie - sentences: - "Quel temps fait-il à Paris" - "Donne-moi la météo à Paris" diff --git a/tests/gl/_fixtures.yaml b/tests/gl/_fixtures.yaml index 47c30649cf..d7e8680c5e 100644 --- a/tests/gl/_fixtures.yaml +++ b/tests/gl/_fixtures.yaml @@ -12,21 +12,55 @@ entities: - name: Lámpada id: light.lampada_dormitorio area: dormitorio + state: + in: "apagada" + out: "off" - name: Aplique id: light.aplique_dormitorio area: dormitorio - - name: Interruptor cociña + state: "on" + - name: Lavalouzas id: switch.cociña area: cociña + state: "on" + - name: "Máquina de Café" + id: "switch.maq_cafe" + area: "cociña" + state: "off" - name: Ventilador do teito id: fan.ventilador_teito area: salon - name: Cortina esquerda id: cover.cortina_esquerda area: salon + - name: TV + id: switch.salon + area: salon + state: "on" - name: Cortinas id: cover.cortina_dormitorio area: dormitorio - - name: Luz cocina + - name: Luz da Cociña id: light.luz_cocina area: cociña + state: "on" + - name: "Temperatura exterior" + id: "sensor.temperatura_exterior" + area: "garaxe" + state: "17" + attributes: + unit_of_measurement: "°C" + + - name: "Coruña" + id: "weather.coruña" + state: "rainy" + attributes: + temperature: "15" + temperature_unit: "°C" + + - name: "Ourense" + id: "weather.porto" + state: "clear" + attributes: + temperature: "2" + temperature_unit: "°C" diff --git a/tests/gl/homeassistant_HassGetState.yaml b/tests/gl/homeassistant_HassGetState.yaml index a6969849f9..c8d7806db7 100644 --- a/tests/gl/homeassistant_HassGetState.yaml +++ b/tests/gl/homeassistant_HassGetState.yaml @@ -1,2 +1,98 @@ language: gl -tests: [] +tests: + - sentences: + - "dime cal é a Temperatura exterior" + intent: + name: HassGetState + slots: + name: "Temperatura exterior" + response: "17 °C" + + - sentences: + - "por favor, está a Lámpada do Dormitorio acendida?" + intent: + name: HassGetState + slots: + name: "Lámpada" + state: "on" + area: "Dormitorio" + response: "Non, apagada" + + - sentences: + - "está algún interrutor acendido na Cociña?" + intent: + name: HassGetState + slots: + area: "Cociña" + domain: "switch" + state: "on" + response: "Si, Lavalouzas" + + - sentences: + - "todos os interrutores están apagados?" + intent: + name: HassGetState + slots: + domain: "switch" + state: "off" + response: "Non, Lavalouzas e TV non están apagados" + + - sentences: + - "están todos os interrutores da Cociña apagados?" + intent: + name: HassGetState + slots: + area: Cociña + domain: "switch" + state: "off" + response: "Non, Lavalouzas non está apagados" + + - sentences: + - "están todas as luces apagadas?" + intent: + name: HassGetState + slots: + domain: "light" + state: "off" + response: "Non, Aplique e Luz da Cociña non están apagadas" + + - sentences: + - "que luces están acendidas?" + - "dígame cales luces están acendidas?" + intent: + name: HassGetState + slots: + domain: "light" + state: "on" + response: "Aplique e Luz da Cociña" + + - sentences: + - "Cantas luces están acendidas?" + intent: + name: HassGetState + slots: + domain: "light" + state: "on" + response: "2" + + - sentences: + - "Cantas luces están acendidas na Cociña, por favor?" + intent: + name: HassGetState + slots: + area: Cociña + domain: "light" + state: "on" + response: "1" + + - sentences: + - "Está algunha luz acendida? Grazas" + - "Está algunha lámpada acendida?" + - "Existe algunha luz acendida?" + - "Hai algunha luz acendida?" + intent: + name: HassGetState + slots: + domain: "light" + state: "on" + response: "Si, Aplique e Luz da Cociña" diff --git a/tests/gl/shopping_list_HassShoppingListAddItem.yaml b/tests/gl/shopping_list_HassShoppingListAddItem.yaml new file mode 100644 index 0000000000..92a4a3955a --- /dev/null +++ b/tests/gl/shopping_list_HassShoppingListAddItem.yaml @@ -0,0 +1,14 @@ +language: gl +tests: + - sentences: + - engade grelos á miña lista da compra + - engada grelos á lista da compra + - meta grelos na miña lista + - mete grelos na lista da compra + - pon grelos na lista + - poña grelos na miña lista + intent: + name: HassShoppingListAddItem + slots: + item: "grelos " + response: Engadín grelos diff --git a/tests/gl/weather_HassGetWeather.yaml b/tests/gl/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..0156888b6f --- /dev/null +++ b/tests/gl/weather_HassGetWeather.yaml @@ -0,0 +1,23 @@ +language: gl +tests: + - sentences: + - "que tempo quedou" + intent: + name: HassGetWeather + response: Chuvia, con 15 °C de temperatura + + - sentences: + - "que tempo vai na Coruña" + intent: + name: HassGetWeather + slots: + name: Coruña + response: Chuvia, con 15 °C de temperatura + + - sentences: + - "que tempo fai en Ourense" + intent: + name: HassGetWeather + slots: + name: Ourense + response: Despexado, con 2 °C de temperatura diff --git a/tests/hr/_fixtures.yaml b/tests/hr/_fixtures.yaml index 3a5d12d467..106cb4690a 100644 --- a/tests/hr/_fixtures.yaml +++ b/tests/hr/_fixtures.yaml @@ -144,16 +144,16 @@ entities: - name: "Radijator" id: "climate.trv_living_room" area: "living_room" - state: "21" + state: "heat" attributes: - unit_of_measurement: "°C" + current_temperature: 21 - name: "Radijator" id: "climate.trv_kitchen" area: "kitchen" - state: "22" + state: "heat" attributes: - unit_of_measurement: "°C" + current_temperature: 22 - name: "vani|vanjska" id: "sensor.outside_temperature" diff --git a/tests/hr/climate_HassClimateGetTemperature.yaml b/tests/hr/climate_HassClimateGetTemperature.yaml index 97d5571794..ce303623f6 100644 --- a/tests/hr/climate_HassClimateGetTemperature.yaml +++ b/tests/hr/climate_HassClimateGetTemperature.yaml @@ -5,7 +5,7 @@ tests: - reci mi temperaturu? intent: name: HassClimateGetTemperature - response: "21 °C" + response: "21" - sentences: - koja je temperatura u dnevnoj sobi? @@ -16,7 +16,7 @@ tests: area: - dnevna soba - dnevnoj sobi - response: "21 °C" + response: "21" - sentences: - kakva je kuhinjska temperatura? @@ -27,4 +27,4 @@ tests: area: - kuhinji - kuhinjska - response: "22 °C" + response: "22" diff --git a/tests/is/_fixtures.yaml b/tests/is/_fixtures.yaml index c927a45ff9..438e661921 100644 --- a/tests/is/_fixtures.yaml +++ b/tests/is/_fixtures.yaml @@ -90,6 +90,6 @@ entities: - name: "Hitamælir" id: "climate.thermostat" area: "living_room" - state: "21" + state: "heat" attributes: - unit_of_measurement: "°C" + current_temperature: 21 diff --git a/tests/is/climate_HassClimateGetTemperature.yaml b/tests/is/climate_HassClimateGetTemperature.yaml index f7e7e74df3..edaa13a31c 100644 --- a/tests/is/climate_HassClimateGetTemperature.yaml +++ b/tests/is/climate_HassClimateGetTemperature.yaml @@ -7,7 +7,7 @@ tests: - "hversu heitt er núna?" intent: name: HassClimateGetTemperature - response: "Hitinn er 21 °C" + response: "Hitinn er 21" - sentences: - "Hver er hitinn í stofunni?" @@ -20,4 +20,4 @@ tests: name: HassClimateGetTemperature slots: area: Stofu - response: "Hitinn er 21 °C" + response: "Hitinn er 21" diff --git a/tests/ko/_fixtures.yaml b/tests/ko/_fixtures.yaml index 844b318e05..cf7a38e658 100644 --- a/tests/ko/_fixtures.yaml +++ b/tests/ko/_fixtures.yaml @@ -103,9 +103,9 @@ entities: - name: "(온도 조절기|온도 조절 장치|난방 제어기)" id: "climate.thermostat" area: "living_room" - state: "20" + state: "heat" attributes: - unit_of_measurement: "°C" + current_temperature: 20 - name: "(대문|현관문|현관|출입문)" id: "lock.front_door" diff --git a/tests/ko/climate_HassClimateGetTemperature.yaml b/tests/ko/climate_HassClimateGetTemperature.yaml index 4de6d8f879..a4787053dd 100644 --- a/tests/ko/climate_HassClimateGetTemperature.yaml +++ b/tests/ko/climate_HassClimateGetTemperature.yaml @@ -9,7 +9,7 @@ tests: - "더워?" intent: name: HassClimateGetTemperature - response: "20 °C입니다" + response: "20입니다" - sentences: - "거실 온도 몇 도야?" @@ -23,4 +23,4 @@ tests: name: HassClimateGetTemperature slots: area: 거실 - response: "20 °C입니다" + response: "20입니다" diff --git a/tests/nb/_fixtures.yaml b/tests/nb/_fixtures.yaml index cd6000a2f7..248c47e84d 100644 --- a/tests/nb/_fixtures.yaml +++ b/tests/nb/_fixtures.yaml @@ -84,9 +84,9 @@ entities: - name: "Termostat stue" id: "climate.living_room_thermostat" area: "living_room" - state: "22" + state: "heat" attributes: - unit_of_measurement: "°C" + current_temperature: 22 - name: "Stuelampe" id: "light.living_room_lamp" diff --git a/tests/nb/climate_HassClimateGetTemperature.yaml b/tests/nb/climate_HassClimateGetTemperature.yaml index 8b50b2a8f9..c4c6415efd 100644 --- a/tests/nb/climate_HassClimateGetTemperature.yaml +++ b/tests/nb/climate_HassClimateGetTemperature.yaml @@ -8,7 +8,7 @@ tests: - er det varmt? intent: name: HassClimateGetTemperature - response: 22 °C + response: "22" - sentences: - hva er temperatur i stue? - hva er temperatur i stuen? @@ -33,4 +33,4 @@ tests: name: HassClimateGetTemperature slots: area: Stue - response: 22 °C + response: "22" diff --git a/tests/nl/_fixtures.yaml b/tests/nl/_fixtures.yaml index a6ce999b39..e12e5b64fc 100644 --- a/tests/nl/_fixtures.yaml +++ b/tests/nl/_fixtures.yaml @@ -728,6 +728,30 @@ entities: device_class: wind_speed unit_of_measurement: "km/h" + - name: "Joost" + id: "person.jospeh" + state: "home" + - name: "Ada" + id: "person.ada" + state: "werk" + - name: "Piet" + id: "person.piet" + state: "not_home" + - name: "Jumbo" id: "todo.jumbo" state: "" + + - name: "Tilburg" + id: "weather.tilburg" + state: "sunny" + attributes: + temperature: "20" + temperature_unit: "°C" + + - name: "Amsterdam" + id: "weather.london" + state: "rainy" + attributes: + temperature: "12" + temperature_unit: "°C" diff --git a/tests/nl/light_HassTurnOff.yaml b/tests/nl/light_HassTurnOff.yaml index f552548735..d77592bf38 100644 --- a/tests/nl/light_HassTurnOff.yaml +++ b/tests/nl/light_HassTurnOff.yaml @@ -30,6 +30,23 @@ tests: area: Keuken name: all + - sentences: + - "Zet hier de verlichting uit" + - "Doe de lampen uit in deze ruimte" + - "Zou je in deze ruimte de lampen uit willen zetten" + - "Kun je alle lampen uit doen in deze ruimte" + - "Zou je hier de lichten willen uitzetten" + - "Zou je de verlichting kunnen uitschakelen in deze ruimte" + - "hier de verlichting uitzetten" + - "verlichting uitschakelen in deze kamer" + intent: + name: HassTurnOff + context: + area: Woonkamer + slots: + domain: light + response: "Verlichting uitgezet" + - sentences: - Doe overal de verlichting uit - Mogen alle lampen uit? diff --git a/tests/nl/light_HassTurnOn.yaml b/tests/nl/light_HassTurnOn.yaml index 59a27c5070..48d68473ae 100644 --- a/tests/nl/light_HassTurnOn.yaml +++ b/tests/nl/light_HassTurnOn.yaml @@ -32,3 +32,20 @@ tests: domain: light area: Keuken name: all + + - sentences: + - "Zet hier de verlichting aan" + - "Doe de lampen aan in deze ruimte" + - "Zou je in deze ruimte de lampen aan willen zetten" + - "Kun je alle lampen aan doen in deze ruimte" + - "Zou je hier de lichten willen aanzetten" + - "Zou je de verlichting kunnen inschakelen in deze ruimte" + - "hier de verlichting aanzetten" + - "verlichting inschakelen in deze kamer" + intent: + name: HassTurnOn + context: + area: Woonkamer + slots: + domain: light + response: "Verlichting aangezet" diff --git a/tests/nl/person_HassGetState.yaml b/tests/nl/person_HassGetState.yaml new file mode 100644 index 0000000000..f664c14054 --- /dev/null +++ b/tests/nl/person_HassGetState.yaml @@ -0,0 +1,158 @@ +language: nl +tests: + - sentences: + - "waar is Joost" + - "waar bevindt Joost zich" + intent: + name: HassGetState + slots: + domain: person + name: Joost + response: "Joost is thuis" + - sentences: + - "waar is Ada" + - "waar bevindt Ada zich" + intent: + name: HassGetState + slots: + domain: person + name: Ada + response: "Ada is in zone werk" + - sentences: + - "waar is Piet" + - "waar bevindt Piet zich" + intent: + name: HassGetState + slots: + domain: person + name: Piet + response: "Piet is niet thuis" + + - sentences: + - "is Ada thuis" + intent: + name: HassGetState + slots: + domain: person + name: Ada + state: home + response: "Nee, die is in de zone werk" + - sentences: + - "is Ada weg" + intent: + name: HassGetState + slots: + domain: person + name: Ada + state: not_home + response: "Nee, die is in de zone werk" + - sentences: + - "is Ada in de zone werk" + intent: + name: HassGetState + slots: + domain: person + name: Ada + state: werk + response: "Ja" + + - sentences: + - "is er iemand thuis" + intent: + name: HassGetState + slots: + domain: person + state: home + response: "Ja, Joost" + - sentences: + - "is er iemand niet thuis" + intent: + name: HassGetState + slots: + domain: person + state: not_home + response: "Ja, Piet" + - sentences: + - "is er iemand op het werk" + intent: + name: HassGetState + slots: + domain: person + state: werk + response: "Ja, Ada" + + - sentences: + - "is iedereen thuis" + intent: + name: HassGetState + slots: + domain: person + state: home + response: "Nee, Ada en Piet niet" + - sentences: + - "is iedereen weg" + intent: + name: HassGetState + slots: + domain: person + state: not_home + response: "Nee, Ada en Joost niet" + - sentences: + - "is iedereen op het werk" + intent: + name: HassGetState + slots: + domain: person + state: werk + response: "Nee, Joost en Piet niet" + + - sentences: + - "wie is er thuis" + intent: + name: HassGetState + slots: + domain: person + state: home + response: "Joost" + - sentences: + - "wie is er niet thuis" + - "wie is er weg" + intent: + name: HassGetState + slots: + domain: person + state: not_home + response: "Piet" + - sentences: + - "wie is er op het werk" + intent: + name: HassGetState + slots: + domain: person + state: werk + response: "Ada" + + - sentences: + - "hoeveel mensen zijn er thuis" + intent: + name: HassGetState + slots: + domain: person + state: home + response: "1" + - sentences: + - "hoeveel mensen zijn er weg" + intent: + name: HassGetState + slots: + domain: person + state: not_home + response: "1" + - sentences: + - "hoeveel mensen zijn er op het werk" + intent: + name: HassGetState + slots: + domain: person + state: werk + response: "1" diff --git a/tests/nl/weather_HassGetWeather.yaml b/tests/nl/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..36539225f5 --- /dev/null +++ b/tests/nl/weather_HassGetWeather.yaml @@ -0,0 +1,19 @@ +language: nl +tests: + - sentences: + - "wat voor weer is het" + - "wat is de weersvoorspelling" + - "hoe is het weer" + intent: + name: HassGetWeather + response: 20 °C en zonnig + + - sentences: + - "hoe is de weersvoorspelling voor Amsterdam" + - "wat is het weer in Amsterdam" + - "hoe is het weer in Amsterdam" + intent: + name: HassGetWeather + slots: + name: Amsterdam + response: 12 °C met regen diff --git a/tests/pl/homeassistant_HassNevermind.yaml b/tests/pl/homeassistant_HassNevermind.yaml new file mode 100644 index 0000000000..483b00526b --- /dev/null +++ b/tests/pl/homeassistant_HassNevermind.yaml @@ -0,0 +1,7 @@ +language: pl +tests: + - sentences: + - "nieważne" + - "anuluj" + intent: + name: HassNevermind diff --git a/tests/pt/_fixtures.yaml b/tests/pt/_fixtures.yaml index 57671b1673..484decc364 100644 --- a/tests/pt/_fixtures.yaml +++ b/tests/pt/_fixtures.yaml @@ -85,9 +85,9 @@ entities: - name: "Termostato" id: "climate.termostato" area: "sala_de_estar" - state: "19" + state: "heat" attributes: - unit_of_measurement: "°C" + current_temperature: 19 - name: "Front Door" id: "lock.front_door" @@ -107,3 +107,21 @@ entities: - name: "Stealth Mode" id: "script.stealth_mode" + + - name: "Braga" + id: "weather.braga" + state: "rainy" + attributes: + temperature: "18" + temperature_unit: "°C" + + - name: "Porto" + id: "weather.porto" + state: "clear" + attributes: + temperature: "19" + temperature_unit: "°C" + + - name: "Tarefas" + id: "todo.tarefas" + state: "" diff --git a/tests/pt/climate_HassClimateGetTemperature.yaml b/tests/pt/climate_HassClimateGetTemperature.yaml index 00d7e6acc3..adb0c0f446 100644 --- a/tests/pt/climate_HassClimateGetTemperature.yaml +++ b/tests/pt/climate_HassClimateGetTemperature.yaml @@ -5,7 +5,7 @@ tests: - qual a temperatura? intent: name: HassClimateGetTemperature - response: "19 °C" + response: "19" - sentences: - qual a temperatura da sala de estar? @@ -14,4 +14,12 @@ tests: name: HassClimateGetTemperature slots: area: Sala de Estar - response: "19 °C" + response: "19" + + - sentences: + - qual a temperatura do termostato? + intent: + name: HassClimateGetTemperature + slots: + name: Termostato + response: "19" diff --git a/tests/pt/homeassistant_HassNevermind.yaml b/tests/pt/homeassistant_HassNevermind.yaml index 8b28f1a15d..8317e0cf7f 100644 --- a/tests/pt/homeassistant_HassNevermind.yaml +++ b/tests/pt/homeassistant_HassNevermind.yaml @@ -8,4 +8,4 @@ tests: - "nada" intent: name: HassNevermind - response: "Ok" + response: "" diff --git a/tests/pt/todo_HassListAddItem.yaml b/tests/pt/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..c72c8389a3 --- /dev/null +++ b/tests/pt/todo_HassListAddItem.yaml @@ -0,0 +1,16 @@ +language: pt +tests: + - sentences: + - adiciona aspirar à minha lista de tarefas + - adiciona aspirar à lista de tarefas + - adiciona aspirar à lista tarefas + - coloca aspirar na lista de tarefas + - colocar aspirar na lista de tarefas + - põe aspirar na lista de tarefas + - pôr aspirar na lista de tarefas + intent: + name: HassListAddItem + slots: + item: "aspirar " + name: "Tarefas" + response: Adicionei aspirar diff --git a/tests/pt/weather_HassGetWeather.yaml b/tests/pt/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..79b6ca2ef3 --- /dev/null +++ b/tests/pt/weather_HassGetWeather.yaml @@ -0,0 +1,23 @@ +language: pt +tests: + - sentences: + - "como está o tempo?" + intent: + name: HassGetWeather + response: Chuva, com temperatura de 18 °C + + - sentences: + - "como está o tempo em Braga" + intent: + name: HassGetWeather + slots: + name: Braga + response: Chuva, com temperatura de 18 °C + + - sentences: + - "como está o tempo no Porto" + intent: + name: HassGetWeather + slots: + name: Porto + response: Céu limpo, com temperatura de 19 °C diff --git a/tests/ro/_fixtures.yaml b/tests/ro/_fixtures.yaml index 5f6908e648..4718c5e2fc 100644 --- a/tests/ro/_fixtures.yaml +++ b/tests/ro/_fixtures.yaml @@ -63,9 +63,16 @@ entities: - name: "Caloriferul" id: climate.radiator attributes: - unit_of_measurement: "°C" + current_temperature: 21.2 area: bedroom - state: "21" + state: "heat" + + - name: "Termostatul" + id: climate.thermostat + attributes: + current_temperature: 1 + area: living_room + state: "heat" # Covers - name: "usa principala" @@ -367,7 +374,7 @@ entities: id: "weather.bucuresti" state: "rainy" attributes: - temperature: "18" + temperature: "18.5" temperature_unit: "°C" - name: "Brasov" diff --git a/tests/ro/climate_HassClimateGetTemperature.yaml b/tests/ro/climate_HassClimateGetTemperature.yaml index 62cadd3530..623634afe3 100644 --- a/tests/ro/climate_HassClimateGetTemperature.yaml +++ b/tests/ro/climate_HassClimateGetTemperature.yaml @@ -1,5 +1,13 @@ language: ro tests: + - sentences: + - "cat este temperatura indicata de termostatul" + - "ce temperatura indica termostatul" + intent: + name: HassClimateGetTemperature + slots: + name: "Termostatul" + response: "1 grad" - sentences: - "ce temperatura e in dormitor" - "care e temperatura din dormitor" @@ -11,7 +19,7 @@ tests: name: HassClimateGetTemperature slots: area: "Dormitor" - response: "21 de grade" + response: "21,2 grade" - sentences: - "ce temperatura e" - "care e temperatura" @@ -22,4 +30,16 @@ tests: name: HassClimateGetTemperature context: area: bedroom - response: "21 de grade" + response: "21,2 grade" + - sentences: + - "ce temperatura e in sufragerie" + - "care e temperatura din sufragerie" + - "cate grade sunt in sufragerie" + - "cat de cald este in sufragerie" + - "cat e de racoare in sufragerie" + - "este rece in sufragerie" + intent: + name: HassClimateGetTemperature + slots: + area: "Sufragerie" + response: "1 grad" diff --git a/tests/ro/light_HassTurnOff.yaml b/tests/ro/light_HassTurnOff.yaml index db79348e54..deaa8280c2 100644 --- a/tests/ro/light_HassTurnOff.yaml +++ b/tests/ro/light_HassTurnOff.yaml @@ -35,11 +35,15 @@ tests: domain: light response: "Am stins luminile" - sentences: - - "opreste lumina" + - "stinge lumina" + - "opreste lumina aici" + - "opreste toate luminile" + - "stinge toate luminile de aici" intent: name: HassTurnOff + context: + area: Dormitor slots: domain: light - context: - area: bedroom + area: Dormitor response: "Am stins luminile" diff --git a/tests/ro/light_HassTurnOn.yaml b/tests/ro/light_HassTurnOn.yaml index 9ba648dc55..8b2f1c1b4d 100644 --- a/tests/ro/light_HassTurnOn.yaml +++ b/tests/ro/light_HassTurnOn.yaml @@ -36,10 +36,14 @@ tests: response: "Am aprins luminile" - sentences: - "porneste lumina" + - "aprinde lumina aici" + - "aprinde toate luminile" + - "porneste toate luminile de aici" intent: name: HassTurnOn + context: + area: Dormitor slots: domain: light - context: - area: bedroom + area: Dormitor response: "Am aprins luminile" diff --git a/tests/ro/weather_HassGetWeather.yaml b/tests/ro/weather_HassGetWeather.yaml index 7851b6942e..178c76aac4 100644 --- a/tests/ro/weather_HassGetWeather.yaml +++ b/tests/ro/weather_HassGetWeather.yaml @@ -1,5 +1,13 @@ language: ro tests: + - sentences: + - "cum e vremea?" + - "cate grade sunt afara?" + - "cat de frig este afara?" + intent: + name: HassGetWeather + response: 18,5 grade cu ploaie + - sentences: - "cum e vremea la Bucuresti?" - "cate grade sunt la Bucuresti?" @@ -8,7 +16,7 @@ tests: name: HassGetWeather slots: name: Bucuresti - response: 18 °C cu ploaie + response: 18,5 grade cu ploaie - sentences: - "cum este vremea in Brasov?" @@ -18,4 +26,4 @@ tests: name: HassGetWeather slots: name: Brasov - response: 22 °C cu cer senin + response: 22 de grade cu cer senin diff --git a/tests/ru/_fixtures.yaml b/tests/ru/_fixtures.yaml index 54a3f40dee..8b9febc24b 100644 --- a/tests/ru/_fixtures.yaml +++ b/tests/ru/_fixtures.yaml @@ -18,56 +18,76 @@ entities: - name: "Ламп(а|у|ы) в спальне" id: "light.bedroom_lamp" area: "bedroom" - state: "выключен" + state: + in: "выключена" + out: "off" - name: "Выключатель в спальне" id: "switch.bedroom" area: "bedroom" - state: "выключен" + state: + in: "выключен" + out: "off" - name: "Кухонн(ый|ого) выключател(ь|я)" id: "switch.kitchen" area: "kitchen" - state: "включен" + state: + in: "включен" + out: "on" - name: "Кухонный стол" id: "light.kitchen_countertop" area: "kitchen" - state: "включен" + state: + in: "включен" + out: "on" - name: "Верхний свет в кухне" id: "light.kitchen_ceiling" area: "kitchen" - state: "включен" + state: + in: "включен" + out: "on" - name: "Кухонные шкафчики" id: "light.kitchen_cabinets" area: "kitchen" - state: "включен" + state: + in: "включены" + out: "on" - name: "Потолочн(ый|ого) вентилятор[а]" id: "fan.ceiling" area: "living_room" - state: "выключен" + state: + in: "выключен" + out: "off" - - name: "Лев(ая|ую|ой) (штор)(а|у|ы)" + - name: "Лев(ая|ую|ой) штор(а|у|ы)" id: "cover.curtain_left" area: "living_room" - state: "открыта" + state: + in: "открыта" + out: "open" attributes: device_class: curtain - - name: "Прав(ая|ую|ой) (штор)(а|у|ы)" + - name: "Прав(ая|ую|ой) штор(а|у|ы)" id: "cover.curtain_right" area: "living_room" - state: "закрыта" + state: + in: "открыта" + out: "open" attributes: device_class: curtain - name: "Штора в спальне" id: "cover.bedroom" area: "bedroom" - state: "закрыта" + state: + in: "закрыта" + out: "closed" attributes: device_class: curtain @@ -81,17 +101,23 @@ entities: - name: "Ламп(у|ой|е|а) в гостиной" id: "light.living_room_lamp" area: "living_room" - state: "включен" + state: + in: "включена" + out: "on" - name: "Свет в гараже" id: "light.garage" area: "garage" - state: "включен" + state: + in: "включен" + out: "on" - name: Игровой уголок id: light.play_corner area: living_room - state: "включен" + state: + in: "включен" + out: "on" - name: "Термостат" id: "climate.thermostat" @@ -125,15 +151,21 @@ entities: - name: "Передняя дверь" id: "lock.front_door" area: "entrance" - state: "заперто" + state: + in: "заперта" + out: locked - name: "Задняя дверь" id: "lock.back_door" - state: "не заперто" + state: + in: "заперта" + out: locked - name: "Боковая дверь" id: "lock.side_door" - state: "заперто" + state: + in: "заперта" + out: locked - name: "Режим вечеринки" id: "scene.party_mode" @@ -146,7 +178,7 @@ entities: id: "binary_sensor.phone_battery" state: in: "нормально" - out: "выключен" + out: "off" attributes: device_class: battery @@ -163,7 +195,7 @@ entities: area: "kitchen" state: in: "чисто" - out: "выключен" + out: "off" attributes: device_class: carbon_monoxide @@ -171,7 +203,7 @@ entities: id: "binary_sensor.computer_cold" state: in: "нормально" - out: "выключен" + out: "off" attributes: device_class: cold @@ -179,7 +211,7 @@ entities: id: "binary_sensor.phone_connectivity" state: in: "подключен" - out: "включен" + out: "on" attributes: device_class: connectivity @@ -187,15 +219,15 @@ entities: id: "binary_sensor.pet_door" state: in: "закрыто" - out: "выключен" + out: "off" attributes: device_class: door - name: "Вторая дверь гаража" id: "binary_sensor.garage_door" state: - in: "закрыто" - out: "выключен" + in: "заперта" + out: locked attributes: device_class: garage_door @@ -204,7 +236,7 @@ entities: area: "kitchen" state: in: "чисто" - out: "выключен" + out: "off" attributes: device_class: gas @@ -212,7 +244,7 @@ entities: id: "binary_sensor.computer_heat" state: in: "горячо" - out: "включен" + out: "on" attributes: device_class: heat @@ -220,15 +252,15 @@ entities: id: "binary_sensor.light" state: in: "нет света" - out: "выключен" + out: "off" attributes: device_class: light - name: "Дверца питомца" id: "binary_sensor.pet_door_lock" state: - in: "не заперто" - out: "включен" + in: "не заперта" + out: unlocked attributes: device_class: lock @@ -236,7 +268,7 @@ entities: id: "binary_sensor.water_sensor" state: in: "сухо" - out: "выключен" + out: "off" attributes: device_class: moisture @@ -245,7 +277,7 @@ entities: area: "garage" state: in: "обнаружено" - out: "включен" + out: "on" attributes: device_class: motion @@ -254,7 +286,7 @@ entities: area: "kitchen" state: in: "обнаружено" - out: "включен" + out: "on" attributes: device_class: occupancy @@ -262,7 +294,7 @@ entities: id: "binary_sensor.shed_door_opening" state: in: "закрыто" - out: "выключен" + out: "off" attributes: device_class: opening @@ -270,7 +302,7 @@ entities: id: "binary_sensor.phone_plug" state: in: "подключен" - out: "включен" + out: "on" attributes: device_class: plug @@ -278,6 +310,28 @@ entities: id: "binary_sensor.presence" state: in: "отсутствует" - out: "выключен" + out: "off" attributes: device_class: presence + + - name: "Строительный список" + id: "todo.tools_list" + state: "" + + - name: "Список дел" + id: "todo.tasks_list" + state: "" + + - name: "Москв(а|е)" + id: "weather.moscow" + state: "cloudy" + attributes: + temperature: "24" + temperature_unit: "°C" + + - name: "Воронеж[е]" + id: "weather.voronezh" + state: "clear" + attributes: + temperature: "13" + temperature_unit: "°C" diff --git a/tests/ru/cover_HassGetState.yaml b/tests/ru/cover_HassGetState.yaml index 2cb438dad8..a89e708b69 100644 --- a/tests/ru/cover_HassGetState.yaml +++ b/tests/ru/cover_HassGetState.yaml @@ -7,7 +7,7 @@ tests: slots: domain: cover name: "Левая штора" - state: "закрыта" + state: "closed" response: "Нет, открыта" - sentences: @@ -21,8 +21,8 @@ tests: - "Гостиной" - "Гостиную" device_class: curtain - state: "закрыта" - response: "Да, Правая штора" + state: "closed" + response: "Нет" - sentences: - "Все ли шторы в гостиной закрыты?" @@ -35,8 +35,8 @@ tests: - "Гостиной" - "Гостиную" device_class: curtain - state: "закрыта" - response: "Левая штора — нет" + state: "closed" + response: "Левая штора — нет и Правая штора — нет" - sentences: - "Какие шторы задернуты?" @@ -45,15 +45,15 @@ tests: slots: domain: cover device_class: curtain - state: "закрыта" - response: "Правая штора и Штора в спальне" + state: "closed" + response: "Штора в спальне" - sentences: - - "Сколько штор задернуто?" + - "Сколько штор закрыто?" intent: name: HassGetState slots: domain: cover device_class: curtain - state: "закрыта" - response: "2" + state: "closed" + response: "1" diff --git a/tests/ru/homeassistant_HassGetState.yaml b/tests/ru/homeassistant_HassGetState.yaml index 61a8c9c650..ca95ea1552 100644 --- a/tests/ru/homeassistant_HassGetState.yaml +++ b/tests/ru/homeassistant_HassGetState.yaml @@ -14,7 +14,7 @@ tests: name: HassGetState slots: name: "Лампа в гостиной" - response: "Лампа в гостиной включен" + response: "Лампа в гостиной включена" - sentences: - "Лампа в спальне включена?" @@ -23,8 +23,8 @@ tests: name: HassGetState slots: name: "Лампа в спальне" - state: "включен" - response: "Нет, выключен" + state: "on" + response: "Нет, выключена" - sentences: - "Есть ли включенные выключатели на кухне?" @@ -37,7 +37,7 @@ tests: - Кухне - Кухонный domain: "switch" - state: "включен" + state: "on" response: "Да, Кухонный выключатель" - sentences: @@ -47,7 +47,7 @@ tests: name: HassGetState slots: domain: "switch" - state: "включен" + state: "on" response: "Выключатель в спальне — нет" - sentences: @@ -57,7 +57,7 @@ tests: name: HassGetState slots: domain: "light" - state: "выключен" + state: "off" response: "Верхний свет в кухне, Игровой уголок, Кухонные шкафчики и ещё 3 — нет" - sentences: @@ -66,7 +66,7 @@ tests: name: HassGetState slots: domain: "light" - state: "включен" + state: "on" response: "Верхний свет в кухне, Игровой уголок, Кухонные шкафчики и ещё 3" - sentences: @@ -76,5 +76,5 @@ tests: name: HassGetState slots: domain: "light" - state: "включен" + state: "on" response: "6" diff --git a/tests/ru/homeassistant_HassNevermind.yaml b/tests/ru/homeassistant_HassNevermind.yaml new file mode 100644 index 0000000000..d88878df7a --- /dev/null +++ b/tests/ru/homeassistant_HassNevermind.yaml @@ -0,0 +1,11 @@ +language: ru +tests: + - sentences: + - "Отмена" + - "Проехали" + - "Забудь" + - "Забей" + - "Неважно" + - "Отбой" + intent: + name: HassNevermind diff --git a/tests/ru/script_HassTurnOn.yaml b/tests/ru/script_HassTurnOn.yaml new file mode 100644 index 0000000000..fb73e140db --- /dev/null +++ b/tests/ru/script_HassTurnOn.yaml @@ -0,0 +1,11 @@ +language: ru +tests: + - sentences: + - "активируй скрипт Режим невидимки" + - "включи Режим невидимки" + intent: + name: HassTurnOn + slots: + domain: script + name: "Режим невидимки" + response: "Выполнено" diff --git a/tests/ru/todo_HassListAddItem.yaml b/tests/ru/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..441d23eab1 --- /dev/null +++ b/tests/ru/todo_HassListAddItem.yaml @@ -0,0 +1,18 @@ +language: ru +tests: + - sentences: + - Добавь саморезы в мой строительный список + intent: + name: HassListAddItem + slots: + item: "саморезы " + name: "Строительный список" + response: Добавил саморезы + - sentences: + - Добавь вынести мусор в мой список дел + intent: + name: HassListAddItem + slots: + item: "вынести мусор " + name: "Список дел" + response: Добавил вынести мусор diff --git a/tests/ru/weather_HassGetWeather.yaml b/tests/ru/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..71df97fc05 --- /dev/null +++ b/tests/ru/weather_HassGetWeather.yaml @@ -0,0 +1,25 @@ +language: ru +tests: + - sentences: + - "Какая погода?" + - "погода" + intent: + name: HassGetWeather + response: 24 °C, облачно + + - sentences: + - "Какая погода в Москве?" + - "погода в Москве" + intent: + name: HassGetWeather + slots: + name: Москве + response: 24 °C, облачно + + - sentences: + - "погода в Воронеже" + intent: + name: HassGetWeather + slots: + name: Воронеже + response: 13 °C, ясно diff --git a/tests/sk/_fixtures.yaml b/tests/sk/_fixtures.yaml index 647d21785d..b85924e865 100644 --- a/tests/sk/_fixtures.yaml +++ b/tests/sk/_fixtures.yaml @@ -84,3 +84,21 @@ entities: state: "27" attributes: unit_of_measurement: "°C" + + - name: "Domác(i|eho) zoznam[u]" + id: "todo.domaci_zoznam" + state: "" + + - name: "Bratislav(a|e)" + id: "weather.bratislava" + state: "rainy" + attributes: + temperature: "27" + temperature_unit: "°C" + + - name: "Doma" + id: "weather.home" + state: "clear" + attributes: + temperature: "24" + temperature_unit: "°C" diff --git a/tests/sk/homeassistant_HassNevermind.yaml b/tests/sk/homeassistant_HassNevermind.yaml new file mode 100644 index 0000000000..ed2b28d54b --- /dev/null +++ b/tests/sk/homeassistant_HassNevermind.yaml @@ -0,0 +1,7 @@ +language: sk +tests: + - sentences: + - "nevadí" + - "to nevadí" + intent: + name: HassNevermind diff --git a/tests/sk/todo_HassListAddItem.yaml b/tests/sk/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..12271fb5e6 --- /dev/null +++ b/tests/sk/todo_HassListAddItem.yaml @@ -0,0 +1,19 @@ +language: sk +tests: + - sentences: + - pridaj kosenie na domáci zoznam + intent: + name: HassListAddItem + slots: + item: "kosenie " + name: "Domáci zoznam" + response: "Pridané: kosenie" + + - sentences: + - daj kosenie do môjho domáceho zoznamu + intent: + name: HassListAddItem + slots: + item: "kosenie " + name: "Domáceho zoznamu" + response: "Pridané: kosenie" diff --git a/tests/sk/weather_HassGetWeather.yaml b/tests/sk/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..aea24a3475 --- /dev/null +++ b/tests/sk/weather_HassGetWeather.yaml @@ -0,0 +1,25 @@ +language: sk +tests: + - sentences: + - "aké je počasie?" + intent: + name: HassGetWeather + response: 27 °C a dážď + + - sentences: + - "aké je počasie v Bratislave?" + - "aké počasie je v Bratislave" + - "aké je v Bratislave počasie" + intent: + name: HassGetWeather + slots: + name: Bratislave + response: 27 °C a dážď + + - sentences: + - "aké je doma počasie" + intent: + name: HassGetWeather + slots: + name: Doma + response: 24 °C a jasno diff --git a/tests/sl/_fixtures.yaml b/tests/sl/_fixtures.yaml index 645829ad5c..6d65483d36 100644 --- a/tests/sl/_fixtures.yaml +++ b/tests/sl/_fixtures.yaml @@ -1,6 +1,6 @@ language: sl areas: - - name: "spalnic(i|a)" + - name: "spalnic(i|a|o|e)" id: bedroom - name: "garaž(a|i|o|na|ne|ni)" id: garage @@ -24,16 +24,16 @@ areas: id: wc - name: "stopnišč(e|u|ih)|stipnic(e|ah|i)" id: staircase - - name: "kuhinj(o|a|i|ska|sko|ski)" + - name: "kuhinj(o|a|i|ska|sko|ski|ske)" id: kitchen - - name: "dnevna soba|dnevni sobi|dnevne sobe" + - name: "dnevna soba|dnevni sobi|dnevne sobe|dnevn(a|i)" id: living_room - name: "kopalni(ca|ci|co|cah|cama|ška|ški|ške)" id: bathroom - name: "utility" id: utility entities: - - name: "nočn(a|e|i|o) (svetil(ka|ke|a|o)|nočn(a|o|e|i) razsvetljav(a|i|o)|nočn(a|e|i|o) luč[ka|i|ke|ki|ko])" + - name: "spaln(a|o|e) luč[ka|ko|i]" id: light.bedroom_lamp area: bedroom state: "off" @@ -182,44 +182,193 @@ entities: - name: "radiator|radiatorji" id: "climate.trv_living_room" area: "living_room" - state: "21" + state: "heat" attributes: - unit_of_measurement: "°C" + current_temperature: 21 - - name: "zunanja | zunaj | balkonu" - id: "sensor.outside_temperature" - state: "17" - area: "balcony" + - name: "Kuhinja temperatura" + id: "sensor.kitchen_temperature" + state: "21" + area: "kitchen" attributes: - unit_of_measurement: "°C" + current_temperature: 21 - - name: "temperatura dnevna soba" - id: "sensor.living_room" - state: "21" + - name: "termostat" + id: "climate.thermostat" area: "living_room" + state: "heat" attributes: - unit_of_measurement: "°C" + current_temperature: 21 #locks - name: "vhodna vrata" id: "lock.front_door" area: "entrance" state: "locked" - - name: "Zadnja vrata" + - name: "zadnja vrata" id: "lock.back_door" area: "kitchen" state: "unlocked" - - name: "Dvoriščna vrata" + - name: "dvoriščna vrata" id: "lock.yard_door" state: "locked" - - name: "Dovozna vrata" + - name: "dovozna vrata" id: "lock.yard_gate" - state: "locked" + state: "unlocked" - name: "Igranje" id: "scene.play_mode" - name: "sesaj|posesaj kuhinjo" id: "script.vacuum_clean_kitchen" + + - name: "v Mariboru" + id: "weather.maribor" + state: "deževno" + attributes: + temperature: "21" + temperature_unit: "stopinj" + - name: "opravila" + id: "todo.opravila" + state: "" + - name: "v Benetkah" + id: "weather.benetke" + state: "jasno" + attributes: + temperature: "28" + temperature_unit: "stopinj" + - name: "Lev" + id: "person.Lev" + state: "doma" + - name: "Arya" + id: "person.arya" + state: "v službi" + - name: "Jon" + id: "person.jon" + state: "ni doma" + + # https://www.home-assistant.io/integrations/binary_sensor/ + - name: "telefon[a]" + id: "binary_sensor.phone_battery" + state: + in: "normalna" + out: "off" + attributes: + device_class: battery + - name: "Aryin telefon" + id: "binary_sensor.aryin_telefon_baterija" + state: + in: "normalna" + out: "off" + attributes: + device_class: battery + + - name: "telefon" + id: "binary_sensor.phone_battery_charging" + state: + in: "polnjenje" + out: "on" + attributes: + device_class: battery_charging + + - name: "Aryin telefon" + id: "binary_sensor.aryin_telefon_battery_charging" + state: + in: "polnjenje" + out: "on" + attributes: + device_class: battery_charging + + - name: "CO2" + id: "binary_sensor.co2" + area: "kitchen" + state: + in: "čisto" + out: "off" + attributes: + device_class: carbon_monoxide + + - name: "vodovodne cevi" + id: "binary_sensor.computer_cold" + state: + in: "normalne" + out: "off" + attributes: + device_class: cold + + - name: "telefon" + id: "binary_sensor.phone_connectivity" + state: + in: "priključen" + out: "on" + attributes: + device_class: connectivity + + - name: "vrata za hišne ljubljenčke" + id: "binary_sensor.pet_door" + state: + in: "zaprta" + out: "off" + attributes: + device_class: door + + - name: "pomožna garažna vrata" + id: "binary_sensor.garage_door" + state: + in: "zaprta" + out: "off" + attributes: + device_class: garage_door + + - name: "plin" + id: "binary_sensor.gas" + area: "kitchen" + state: + in: "čisto" + out: "off" + attributes: + device_class: gas + + - name: "računalnik" + id: "binary_sensor.computer_heat" + state: + in: "vroč[i|e|ih]|top[el|li|lo|le|ih]" + out: "on" + attributes: + device_class: heat + + - name: "svetloba" + id: "binary_sensor.light" + state: + in: "ni svetlobe" + out: "off" + attributes: + device_class: light + + - name: "vrata za hišne ljubljenčke" + id: "binary_sensor.pet_door_lock" + state: + in: "odklenjena" + out: "on" + attributes: + device_class: lock + + - name: "kuhinjski senzor puščanja vode" + id: "binary_sensor.water_sensor" + area: kitchen + state: + in: "suho" + out: "off" + attributes: + device_class: moisture + + - name: "senzor gibanja" + id: "binary_sensor.garage_motion" + area: "garage" + state: + in: "vključen" + out: "on" + attributes: + device_class: motion diff --git a/tests/sl/binary_sensor_HassGetState.yaml b/tests/sl/binary_sensor_HassGetState.yaml new file mode 100644 index 0000000000..ae177c21cf --- /dev/null +++ b/tests/sl/binary_sensor_HassGetState.yaml @@ -0,0 +1,703 @@ +language: sl +tests: + # Battery + - sentences: + - "ali je baterija telefona nizka?" + - "ali je kapaciteta baterije telefona nizka?" + - "ali je napolnjenost baterije telefona nizka?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "battery" + name: "telefona" + state: "on" + response: "Ne, normalna" + - sentences: + - "ali je napolnjenost baterije telefona normalna?" + - "ali je kapaciteta baterije telefona normalna" + - "je baterija telefona normalna?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "battery" + name: "telefona" + state: "off" + response: "Da" + + - sentences: + - "ali je katera baterija nizka?" + - "je katera baterija nizka?" + - "ali je napolnjenost katere baterije nizka?" + - "ali je kapaciteta katere baterije nizka?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery + state: "on" + response: "Ne" + - sentences: + - "ali je katera baterija normalna?" + - "ali je katera baterija napolnjena?" + - "je katera baterija normalna?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery + state: "off" + response: "Da, Aryin telefon in telefona" + + - sentences: + - "ali so vse baterije nizke?" + - "ali so vse baterije izpraznjene?" + - "so vse baterije izpraznjene?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery + state: "on" + response: "Ne, nista Aryin telefon in telefona" + - sentences: + - "ali so vse baterije normalne?" + - "ali so vse baterije napolnjene?" + - "so vse baterije normalne?" + - "so vse baterije napolnjene?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery + state: "off" + response: "Da" + + - sentences: + - "katera baterija je nizka?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery + state: "on" + response: "Ni nizkih battera" #Slovenian hard grammar. Fix needed, check response template for which + - sentences: + - "katera baterija je normalna?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery + state: "off" + response: "Aryin telefon in telefona" #grammar fix needed, check response template for which + + - sentences: + - "koliko baterij je nizkih" + - "koliko baterij je nizko" + - "koliko baterij ima nizko napolnjenost" + - "koliko baterij ima nizko kapaciteto" + - "koliko baterij je izpraznjenih" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery + state: "on" + response: "0" + - sentences: + - "koliko baterij je normalnih?" + - "koliko baterij je napolnjenih?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery + state: "off" + response: "2" + + # Battery charging + - sentences: + - "ali se Aryin telefon polni?" + - "ali se telefon polni?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "battery_charging" + name: + - "Aryin telefon" + - "telefon" + state: "on" + response: "Da" + + - sentences: + - "ali se kateri telefon polni?" + - "ali se katera baterija polni?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery_charging + state: "on" + response: "Da, Aryin telefon in telefon" + + - sentences: + - "ali se vse baterije polnijo?" + - "ali se vsi telefoni polnijo?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery_charging + state: "on" + response: "Da" + + - sentences: + - "katere baterije se polnijo?" + - "kateri telefoni se polnijo?" + - "kateri telefon se polni?" + - "katera baterija se polni?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery_charging + state: "on" + response: "Aryin telefon in telefon" + + - sentences: + - "koliko baterij se polni?" + - "koliko telefonov se polni?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: battery_charging + state: "on" + response: "2" + + # Carbon monoxide + - sentences: + - "ali je CO2 zaznan?" + - "je zaznan CO2?" + - "ali je sprožen CO2?" + - "je CO2 vklopljen?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "carbon_monoxide" + name: "CO2" + state: "on" + response: "Ne, čisto" + + - sentences: + - "ali je kateri CO2 senzor sprožen?" + - "je kateri CO2 senzor sprožen?" + - "ali je kateri detektor ogljikovega monoksida sprožen?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: carbon_monoxide + state: "on" + response: "Ne" + + - sentences: + - "ali je CO2 senzor v kuhinji?" + - "ali je detektor ogljikovega monoksida v kuhinji?" + - "ali je zaznan ogljikov monoksid v kuhinji?" + intent: + name: HassGetState + slots: + area: "kuhinji" + domain: binary_sensor + device_class: carbon_monoxide + state: "on" + response: "Ne" + + - sentences: + - "ali so senzorji ogljikovega monoksida vključeni" + - "ali so detektorji ogljikovega monoksida sproženi" + - "ali so vsi senzorji CO sproženi" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: carbon_monoxide + state: "on" + response: "Ne, ni CO2" + + - sentences: + - "kateri senzorji ogljikovega monoksida so sproženi?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: carbon_monoxide + state: "on" + response: "Ni sproženih carbon_monoxida" #response needs to be fixed + + - sentences: + - "koliko senzorjev ogljikovega monoksida je sproženih?" + - "koliko detektorjev CO je vključenih?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: carbon_monoxide + state: "on" + response: "0" + + # Cold + - sentences: + - "ali so vodovodne cevi hladne?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "cold" + name: "vodovodne cevi" + state: "on" + response: "Ne, normalne" + + - sentences: + - "je kaj zaznano hladno?" + - "ali je kateri senzor zaznal hladno?" + - "ali je kaj zaznano mrzlo?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: cold + state: "on" + response: "Ne" + + - sentences: + - "kateri senzor je zaznal hladno?" + - "kateri senzor je detektiral mrzlo?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: cold + state: "on" + response: "Noben" + + - sentences: + - "koliko senzorjev je mrzlih?" + - "koliko senzorjev je hladnih?" + - "koliko senzorjev je zaznalo hladno?" + - "koliko senzorjev je detektiralo mrzlo?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: cold + state: "on" + response: "0" + + # Connectivity + - sentences: + - "ali je telefon priključen?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "connectivity" + name: "telefon" + state: "on" + response: "Da" + + - sentences: + - "ali je katera naprava priključena?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: connectivity + state: "on" + response: "Da, telefon" + + - sentences: + - "ali so vse naprave priključene?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: connectivity + state: "on" + response: "Da" + + - sentences: + - "katera naprava je priključena?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: connectivity + state: "on" + response: "telefon" + + - sentences: + - "koliko naprav je priključenih?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: connectivity + state: "on" + response: "1" + + # Door + - sentences: + - "ali so vrata za hišne ljubljenčke odprta?" + - "so vrata za hišne ljubljenčke odprta?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "door" + name: "vrata za hišne ljubljenčke" + state: "on" + response: "Ne, zaprta" + + # Garage door + - sentences: + - "ali so pomožna garažna vrata zaprta?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "garage_door" + name: "pomožna garažna vrata" + state: "off" + response: "Da" + + # Gas + - sentences: + - "ali je zaznan plin?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "gas" + name: "plin" + state: "on" + response: "Ne, čisto" + + - sentences: + - "ali je vključen kakšen senzor plina?" + - "ali je sprožen kakšen detektor plina?" + - "ali je sprožen detektor plina?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: gas + state: "on" + response: "Ne" + + - sentences: + - "ali je kaj plina v kuhinji?" + - "ali je plin v kuhinji?" + - "ali je zaznano kaj plina v kuhinji?" + - "ali je detektiran plin v kuhinji?" + intent: + name: HassGetState + slots: + area: "kuhinji" + domain: binary_sensor + device_class: gas + state: "on" + response: "Ne" + + - sentences: + - "ali so vsi senzorji plina sproženi?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: gas + state: "on" + response: "Ne, ni plin" + + - sentences: + - "kateri senzor plina je sprožen?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: gas + state: "on" + response: "Noben" + + - sentences: + - "koliko senzorjev plina je vključenih?" + - "koliko detektorjev plina je vključenih?" + - "koliko senzorjev plina je sproženih?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: gas + state: "on" + response: "0" + + # Heat + - sentences: + - "ali je računalnik vroč?" + - "je računalnik topel" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "heat" + name: "računalnik" + state: "on" + response: "Da" + + - sentences: + - "ali je kaj vroče?" + - "ali je kateri senzor vroč?" + - "ali je kateri senzor topel?" + - "je kakšen senzor vroč?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: heat + state: "on" + response: "Da, računalnik" + + - sentences: + - "katere stvari so vroče?" + - "kateri senzorji so topli?" + - "kateri senzor je topel?" + - "katera stvar je vroča?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: heat + state: "on" + response: "računalnik" + + - sentences: + - "koliko stvari je vročih?" + - "koliko senzorjev je toplih?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: heat + state: "on" + response: "1" + + # Light + - sentences: + - "ali je zaznana svetloba?" + - "je detektirana svetloba?" + - "ali je svetloba zaznana?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "light" + name: "svetloba" + state: "on" + response: "Ne, ni svetlobe" + + - sentences: + - "ali je kateri senzor detektiral svetlobo?" + - "ali je kateri senzor zaznal svetlobo?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: light + state: "on" + response: "Ne" + + - sentences: + - "ali so vsi senzorji zaznali svetlobo?" + - "so vsi senzorji detektirali svetlobo?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: light + state: "on" + response: "Ne, ni svetloba" + + - sentences: + - "kateri senzor je zaznal svetlobo?" + - "kateri senzor je detektiral svetlobo?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: light + state: "on" + response: "Noben" + + - sentences: + - "koliko senzorjev je detektiralo svetlobo?" + - "koliko senzorjev je zaznalo svetlobo?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: light + state: "on" + response: "0" + + # Lock + - sentences: + - "ali so vrata za hišne ljubljenčke zaklenjena?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "lock" + name: "vrata za hišne ljubljenčke" + state: "off" + response: "Ne, odklenjena" + + # Moisture + - sentences: + - "ali je kuhinjski senzor puščanja vode zaznal mokro?" + intent: + name: HassGetState + slots: + domain: "binary_sensor" + device_class: "moisture" + name: "kuhinjski senzor puščanja vode" + state: "on" + response: "Ne, suho" + + - sentences: + - "ali je kateri senzor puščanja vode zaznal mokro?" + - "ali je kateri senzor lekaže vode zaznal mokro" + - "ali je kakšen senzor izlitja vode zaznal mokro?" + - "ali so tla mokra?" + - "ali je kakšno izlitje?" + - "ali je kakšna poplava?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: moisture + state: "on" + response: "Ne" + + - sentences: + - "ali je izlitje v kuhinji?" + - "ali je zaznana lekaža v kuhinji?" + - "ali je detektirana poplava v kuhinji?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: moisture + state: "on" + area: "kuhinji" + response: "Ne" + + - sentences: + - "ali so vsi senzorji lekaže vode zaznali izlitje?" + - "so senzorji izlitja vode detektirali poplavo?" + - "ali so senzorji poplave vode zaznali mokro?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: moisture + state: "on" + response: "Ne, ni kuhinjski senzor puščanja vode" #have to fix grammar in response, not perfect though + + - sentences: + - "kateri senzor vode je zaznal lekažo?" + - "kateri senzor izlitja vode je zaznal poplavo?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: moisture + state: "on" + response: "Noben" + + - sentences: + - "koliko senzorjev vode je mokrih?" + - "koliko senzorjev izlitja vode je zaznalo lekažo?" + - "koliko detektorjev izlitja je zaznalo poplavo?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: moisture + state: "on" + response: "0" + + # Motion + - sentences: + - "ali je senzor gibanja v garaži vključen?" + - "ali je senzor gibanja v garaži sprožen?" + intent: + name: HassGetState + slots: + area: "garaži" + domain: "binary_sensor" + device_class: "motion" + name: "senzor gibanja" + state: "on" + response: "Da" + + - sentences: + - "ali je kateri senzor gibanja vključen?" + - "ali je kakšen senzor gibanja sprožen?" + - "ali je kateri senzor gibanja sprožen?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: motion + state: "on" + response: "Da, senzor gibanja" + + - sentences: + - "ali so vsi senzorji gibanja sproženi?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: motion + state: "on" + response: "Da" + + - sentences: + - "kateri senzor gibanja je sprožen?" + - "kateri senzorji gibanja so vključeni?" + - "kateri senzor je zaznal gibanje?" + - "kateri senzorji so zaznali gibanje?" + - "kateri senzorji so detektirali gibanje?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: motion + state: "on" + response: "senzor gibanja" + + - sentences: + - "koliko senzorjev gibanja je vključenih?" + - "koliko senzorjev gibanja je sproženih?" + intent: + name: HassGetState + slots: + domain: binary_sensor + device_class: motion + state: "on" + response: "1" diff --git a/tests/sl/climate_HassClimateGetTemperature.yaml b/tests/sl/climate_HassClimateGetTemperature.yaml index fc746084e8..4d24a18ee0 100644 --- a/tests/sl/climate_HassClimateGetTemperature.yaml +++ b/tests/sl/climate_HassClimateGetTemperature.yaml @@ -5,31 +5,17 @@ tests: - povej mi temperaturo? intent: name: HassClimateGetTemperature - response: "21 °C" + response: "21 stopinj" - sentences: - kakšna je temperatura v dnevni sobi? - ali je vroče v dnevni sobi? + - na koliko stopinj je nastavljena temperatura v dnevni sobi? + - temperatura v dnevni sobi? + - na koliko je nastavljen termostat v dnevni sobi? intent: name: HassClimateGetTemperature slots: area: - dnevni sobi - response: "21 °C" - - - sentences: - - kakšna je temperatura na balkonu? - intent: - name: HassClimateGetTemperature - slots: - area: - - balkonu - response: "" #incorrect - - sentences: - - kakšna je zunanja temperatura? - - kakšna je temperatura zunaj? - - povej mi temperaturo zunaj? - intent: - name: HassClimateGetTemperature - - response: "21 °C" + response: "21 stopinj" diff --git a/tests/sl/cover_HassGetState.yaml b/tests/sl/cover_HassGetState.yaml index cc5626a392..871e8e48e2 100644 --- a/tests/sl/cover_HassGetState.yaml +++ b/tests/sl/cover_HassGetState.yaml @@ -19,7 +19,7 @@ tests: state: "open" area: "kuhinji" device_class: curtain - response: "Ne" + response: "Ne," - sentences: - "ali je katera zavesa odprta v dnevni sobi?" intent: diff --git a/tests/sl/cover_HassTurnOff.yaml b/tests/sl/cover_HassTurnOff.yaml index fadebae9ca..7a30f370b4 100644 --- a/tests/sl/cover_HassTurnOff.yaml +++ b/tests/sl/cover_HassTurnOff.yaml @@ -28,8 +28,9 @@ tests: name: HassTurnOff slots: domain: cover + area: kuhinjsko device_class: window - response: "Zapiram kuhinjsko okno" + response: "Zapiram okno" - sentences: - "zapri vrata na hodniku" - "zapri vrata dnevne sobe" diff --git a/tests/sl/cover_HassTurnOn.yaml b/tests/sl/cover_HassTurnOn.yaml index a7fa1c1c0a..4eb67a0fb4 100644 --- a/tests/sl/cover_HassTurnOn.yaml +++ b/tests/sl/cover_HassTurnOn.yaml @@ -60,7 +60,7 @@ tests: #window - sentences: - - odpri strešno okno + - "odpri strešno okno" intent: name: HassTurnOn slots: @@ -84,3 +84,16 @@ tests: domain: cover device_class: door response: "Odpiram vrata" + + - sentences: + - "odpri žaluzije v dnevni sobi" + - "odpri žaluzije v dnevni" + intent: + name: HassTurnOn + slots: + area: + - dnevni sobi + - dnevni + domain: cover + device_class: blinds + response: "Odpiram žaluzije" diff --git a/tests/sl/homeassistant_HassNevermind.yaml b/tests/sl/homeassistant_HassNevermind.yaml new file mode 100644 index 0000000000..076fc41275 --- /dev/null +++ b/tests/sl/homeassistant_HassNevermind.yaml @@ -0,0 +1,10 @@ +language: sl +tests: + - sentences: + - "prekini" + - "prekliči" + - "odnehaj" + - "nima veze" + - "pozabi" + intent: + name: HassNevermind diff --git a/tests/sl/light_HassLightSet.yaml b/tests/sl/light_HassLightSet.yaml index dedf111d72..c8e4a73fe8 100644 --- a/tests/sl/light_HassLightSet.yaml +++ b/tests/sl/light_HassLightSet.yaml @@ -1,108 +1,174 @@ language: sl tests: - #brightness + # brightness - sentences: - - spremeni luč na 50 odstotkov - - nastavi luč na 50 procentov - - zmanjšaj luč na 50 odstotkov - - prilagodi luč na 50 procentov - - povečaj svetilko na 50 procentov - - nastavi osvetlitev na 50 odstotkov + - "nastavi spalno luč na 50 odstotkov" + - "spremeni spalno luč na 50 %" + - "spremeni spalno luč na 50 procentov svetlosti" + - "znižaj spalno luč na 50 % svetlosti" + - "spalna luč 50 %" + intent: name: HassLightSet slots: brightness: 50 - - response: "Svetlost luči je nastavljena" + name: + - spalno luč + - spalne luči + - spalna luč + response: "Svetlost nastavljena" - sentences: - - spremeni svetlost luči v kuhinji na 50 odstotkov - - spremeni osvetlitev luči v kuhinji na 50 odstotkov - - zmanjšaj jakost luči v kuhinji na 50 odstotkov - - spremeni jakost osvetlitve v kuhinji na 50 odstotkov - - prilagodi intenziteto luči v kuhinji na 50 procentov - - povečaj svetlost svetil v kuhinji na 50 odstotkov - - spremeni svetlost lučke v spalnici na 50 odstotkov + - "nastavi svetlost v spalnici na 50%" + - "znižaj svetlost v spalnici na 50 odstotkov" + - "spremeni svetlost v spalnici na 50 procentov" + - "spalnica 50 %" + - "v spalnici na 50 procentov" + - "svetlost v spalnici na 50 %" + - "nastavi svetlost v spalnici na 50 %" + - "daj svetlost v spalnici na 50 %" + - "povečaj spalnico na 50 %" + - "zamenjaj svetlost v spalnici na 50 %" + - "svetlost spalnice na 50 %" intent: name: HassLightSet slots: brightness: 50 area: - - kuhinji + - spalnica - spalnici - response: "Svetlost luči je nastavljena" - #color + - spalnico + - spalnice + name: all + response: "Svetlost nastavljena" + - sentences: - - Nastavi luč na rdečo - - Spremeni barvo luči na rdeče - - Prilagodi odtenek svetilke na rdeče - - spremeni barvo na rdečo + - "nastavi spalno luč na maksimalno" + - "nastavi spalno luč na maksimalno svetlost" + - "nastavi spalno luč na največjo svetlost" + - "nastavi spalno luč na najmočnejše" + - "spremeni spalno luč na najmočnejšo svetlost" intent: name: HassLightSet slots: - color: red - response: "Barva luči je nastavljena" + brightness: 100 + name: + - spalno luč + response: "Svetlost nastavljena" - sentences: - - Nastavi luč v kuhinji na rdečo - - Nastavi kuhinjsko luč na rdečo - - Spremeni kuhinjsko luč na rdeče - - Nastavi kuhinjsko osvetlitev na rdeče - - Spremeni luči v kuhinji na rdeče - - Spremeni kuhinjsko osvetlitev na rdeče - - Spremeni odtenek barve luči v kuhinji na rdeče - - Spremeni barvni odtenek luči v kuhinji na rdeče - - Spremeni kuhinjski prostor v rdečo - - Spremeni kuhinjo na rdečo - #- Spremeni barvo luči v kuhinji na rdeče #not tested, sentence not adjusted yet + - "nastavi svetlost v spalnici na max" + - "spremeni svetlost spalnice na max" + - "spremeni spalnico na največjo svetlost" + - "povečaj svetlost spalnice na najsvetleje" + - "povečaj svetlost spalnice na max" + - "spremeni svetlost spalnice na največjo svetlost" + - "spalnica na največjo svetlost" + - "največja svetlost spalnice" + - "spalnica max" + - "spalnica največja svetlost" intent: name: HassLightSet slots: - color: red + brightness: 100 area: - - kuhinji - - kuhinje - - kuhinjo - - kuhinjsko - - kuhinjske - - kuhinjski - response: "Barva luči je nastavljena" + - spalnici + - spalnico + - spalnice + - spalnica + name: all + response: "Svetlost nastavljena" - sentences: - - Spremeni luč v kuhinji na maksimum - - Spremeni jakost luči v kuhinji na maksimum - - Spremeni intenziteto luči v kuhinji na maksimum - - Spremeni svetlost luči v kuhinji na maksimum - - Spremeni intenziteto luči v kuhinji na najmočneje - - Spremeni kuhinjsko osvetlitev na max + - "nastavi spalno luč na najmanj" + - "nastavi svetlost spalne luči na minimum" + - "spremeni svetlost spalne luči na najmanj" + - "znižaj svetlost spalne luči na min" + - "znižaj svetlost spalne luči na najšibkejše" + - "spremeni spalno luč na minimalno" + - "spremeni spalno luč na minimalno svetlost" + - "spalno luč na min" + - "spalna luč na minimalno" intent: name: HassLightSet slots: - brightness: 100 + brightness: 1 + name: + - spalno luč + - spalne luči + - spalna luč + response: "Svetlost nastavljena" + + - sentences: + - "nastavi svetlost v spalnici na min" + - "spremeni svetlost spalnice na minimalno" + - "spremeni spalnico na najmanjšo svetlost" + - "zmanjšaj svetlost spalnice na najšibkeje" + - "znižaj svetlost spalnice na min" + - "spremeni svetlost spalnice na najmanjšo svetlost" + - "spalnica na najmanjšo svetlost" + - "najmanjša svetlost spalnice" + - "spalnica min" + - "spalnica minimalna svetlost" + intent: + name: HassLightSet + slots: + brightness: 1 area: - - kuhinji - - kuhinjsko - spalnici - response: "Svetlost luči je nastavljena" + - spalnice + - spalnica + - spalnico + name: all + response: "Svetlost nastavljena" + # color - sentences: - - Spremeni jakost luči na maksimum - - Nastavi svetlost na največ - - Prilagodi intenziteto na najmočneje + - "nastavi spalno luč na rdečo barvo" + - "daj spalno luč na rdečo" + - "spalno luč na rdečo" + - "spremeni barvo spalne luči na rdečo" + - "nastavi spalno luč na rdečo" + - "spalna luč rdeče" + - "rdečo spalna luč" intent: name: HassLightSet slots: - brightness: 100 - response: "Svetlost luči je nastavljena" + color: red + + name: + - spalno luč + - spalne luči + - spalna luč + response: "Barva nastavljena" - sentences: - - Nastavi svetlost na najmanj - - Spremeni nočno luč na najmanj - - Nastavi nočne lučke na najmanj - - Zmanjšaj lučke na minimum + - "nastavi barvo spalnice na rdeče" + - "spremeni barvo spalnice v rdeče" + - "spremeni spalnico v rdečo" + - "spalnica rdeče" + - "spalnica v rdečo" + - "daj spalnico v rdečo" + - "nastavi barvo spalnice v rdečo" + - "spremeni spalnico v rdečo barvo" + - "nastavi barvo luči v spalnici na rdečo barvo" + - "spremeni barvo vseh luči v spalnici na rdeče" + - "nastavi barvo luči v spalnici na rdečo" + - "spremeni razsvetljave v spalnici na rdečo" + - "spremeni razsvetljavo v spalnici na rdečo" + - "spremeni lučke v spalnici na rdeče" + - "rdeče lučke v spalnici" + - "rdeča spalnica" + - "daj spalnico v rdečo barvo" intent: name: HassLightSet slots: - brightness: 1 - response: "Svetlost luči je nastavljena" + color: red + area: + - spalnice + - spalnico + - spalnica + - spalnici + name: all + response: "Barva nastavljena" diff --git a/tests/sl/light_HassTurnOff.yaml b/tests/sl/light_HassTurnOff.yaml index fed1efb15d..ef7f9e00dc 100644 --- a/tests/sl/light_HassTurnOff.yaml +++ b/tests/sl/light_HassTurnOff.yaml @@ -3,13 +3,59 @@ tests: - sentences: - Izključi vse luči v kuhinji - Izključi luč v kuhinji + - Izklopi luč v kuhinji - Izključi vsa svetila v kuhinji - Izključi vso razsvetljavo v kuhinji + - Izklopi vsa stikala luči v kuhinji + - Ugasni stikala za luči v kuhinji + intent: name: HassTurnOff slots: area: - kuhinji + domain: light + response: "Izklopljeno" + + - sentences: + - Izklopi vse luči povsod + - Ugasni vse luči povsod + - Izključi vse luči povsod + - Povsod izključi luči + - Povsod izključi vse luči + - Izključi luči povsod + intent: + name: HassTurnOff + slots: + domain: light + name: all + + - sentences: + - Izključi kuhinjske luči + - Izklopi kuhinjske luči + - Izklopi kuhinjsko luč + intent: + name: HassTurnOff + slots: + name: + - kuhinjske - kuhinjsko domain: light - response: "Luči so izklopljene" + response: "Izklopljeno" + + # Turn off lights in the same area as a satellite device + - sentences: + - "izključi vse luči tukaj" + - "izklopi vse luči tukaj" + - "ugasni vse luči tukaj" + - "izključi vse luči v tem prostoru" + - "izklopi vse luči tu" + - "ugasni vse luči tu" + intent: + name: HassTurnOff + context: + area: Kitchen + slots: + domain: light + area: Kitchen + response: "Izklopljeno" diff --git a/tests/sl/light_HassTurnOn.yaml b/tests/sl/light_HassTurnOn.yaml index 10c1f1284f..f77a3352ff 100644 --- a/tests/sl/light_HassTurnOn.yaml +++ b/tests/sl/light_HassTurnOn.yaml @@ -2,7 +2,9 @@ language: sl tests: - sentences: - Vključi luči v kuhinji + #- Vključi stikalo za luč v kuhinji - Vključi luč v kuhinji + - Prižgi luč v kuhinji - Vključi vsa svetila v kuhinji - Vključi vso razsvetljavo v kuhinji intent: @@ -11,4 +13,23 @@ tests: area: - kuhinji domain: light - response: "Luči so vklopljene" + response: "Vklopljeno" + + - sentences: + - "vključi luči" + - "prižgi luči" + - "vključi vse luči" + - "vključi vse luči tukaj" + - "vklopi vse luči tukaj" + - "prižgi vse luči tukaj" + - "vključi vse luči v tem prostoru" + - "vključi vse luči tu" + - "prižgi vse luči tu" + intent: + name: HassTurnOn + context: + area: Kitchen + slots: + domain: light + area: Kitchen + response: "Vklopljeno" diff --git a/tests/sl/lock_HassGetState.yaml b/tests/sl/lock_HassGetState.yaml new file mode 100644 index 0000000000..bfbb1342cc --- /dev/null +++ b/tests/sl/lock_HassGetState.yaml @@ -0,0 +1,48 @@ +language: sl +tests: + - sentences: + - "ali so vhodna vrata odklenjena?" + intent: + name: HassGetState + slots: + domain: lock + name: "vhodna vrata" + state: "unlocked" + response: "Ne, locked" #Slovenian grammar - response fix + + - sentences: + - "so kakšna vrata zaklenjena?" + - "ali so vrata zaklenjena?" + intent: + name: HassGetState + slots: + domain: lock + state: "locked" + response: "Da, dvoriščna vrata in vhodna vrata" + + - sentences: + - "ali so vsa vrata zaklenjena?" + intent: + name: HassGetState + slots: + domain: lock + state: "locked" + response: "Ne, nista dovozna vrata in zadnja vrata" + + - sentences: + - "katera vrata so zaklenjena?" + intent: + name: HassGetState + slots: + domain: lock + state: "locked" + response: "dvoriščna vrata in vhodna vrata" + + - sentences: + - "koliko vrat je zaklenjenih?" + intent: + name: HassGetState + slots: + domain: lock + state: "locked" + response: "2" diff --git a/tests/sl/lock_HassTurnOff.yaml b/tests/sl/lock_HassTurnOff.yaml new file mode 100644 index 0000000000..34d6972255 --- /dev/null +++ b/tests/sl/lock_HassTurnOff.yaml @@ -0,0 +1,25 @@ +language: sl +tests: + - sentences: + - "odkleni vhodna vrata" + intent: + name: HassTurnOff + context: + domain: lock + slots: + name: "vhodna vrata" + response: "Odklenjeno" + + - sentences: + - "odkleni vrata v kuhinji" + - "odkleni ključavnico v kuhinji" + - "odkleni kuhinjska vrata" + intent: + name: HassTurnOff + slots: + area: + - "kuhinji" + - "kuhinjska" + domain: lock + name: all + response: "Odklenjeno" diff --git a/tests/sl/lock_HassTurnOn.yaml b/tests/sl/lock_HassTurnOn.yaml new file mode 100644 index 0000000000..a506f627a8 --- /dev/null +++ b/tests/sl/lock_HassTurnOn.yaml @@ -0,0 +1,25 @@ +language: sl +tests: + - sentences: + - "zakleni vhodna vrata" + intent: + name: HassTurnOn + context: + domain: lock + slots: + name: "vhodna vrata" + response: "Zaklenjeno" + + - sentences: + - "zakleni vrata v kuhinji" + - "zakleni ključavnico v kuhinji" + - "zakleni kuhinjska vrata" + intent: + name: HassTurnOn + slots: + area: + - "kuhinji" + - "kuhinjska" + domain: lock + name: all + response: "Zaklenjeno" diff --git a/tests/sl/person_HassGetState.yaml b/tests/sl/person_HassGetState.yaml new file mode 100644 index 0000000000..ce984fd628 --- /dev/null +++ b/tests/sl/person_HassGetState.yaml @@ -0,0 +1,65 @@ +language: sl +tests: + - sentences: + - "kje je Lev" + intent: + name: HassGetState + slots: + domain: person + name: Lev + response: "Lev je doma" + + - sentences: + - "Kje je Arya" + intent: + name: HassGetState + slots: + domain: person + name: Arya + response: "Arya je v službi" + + - sentences: + - "ali je Arya doma" + intent: + name: HassGetState + slots: + domain: person + name: Arya + state: doma + response: "Ne, v službi" + + - sentences: + - "ali je kdo doma" + intent: + name: HassGetState + slots: + domain: person + state: doma + response: "Da, Lev" + + - sentences: + - "ali so vsi doma" + intent: + name: HassGetState + slots: + domain: person + state: doma + response: "Ne, nista Arya in Jon" + + - sentences: + - "kdo je doma" + intent: + name: HassGetState + slots: + domain: person + state: doma + response: "Lev" + + - sentences: + - "koliko oseb je doma" + intent: + name: HassGetState + slots: + domain: person + state: doma + response: "1" diff --git a/tests/sl/scene_HassTurnOn.yaml b/tests/sl/scene_HassTurnOn.yaml new file mode 100644 index 0000000000..69b7bd69ba --- /dev/null +++ b/tests/sl/scene_HassTurnOn.yaml @@ -0,0 +1,11 @@ +language: sl +tests: + - sentences: + - "aktiviraj sceno igranje" + - "zaženi igranje" + intent: + name: HassTurnOn + slots: + domain: scene + name: "Igranje" + response: "Aktivirana" diff --git a/tests/sl/script_HassTurnOn.yaml b/tests/sl/script_HassTurnOn.yaml new file mode 100644 index 0000000000..ee9a9bb131 --- /dev/null +++ b/tests/sl/script_HassTurnOn.yaml @@ -0,0 +1,10 @@ +language: sl +tests: + - sentences: + - "zaženi skripto posesaj kuhinjo" + intent: + name: HassTurnOn + slots: + domain: script + name: "posesaj kuhinjo" + response: "Zagnana" diff --git a/tests/sl/shopping_list_HassShoppingListAddItem.yaml b/tests/sl/shopping_list_HassShoppingListAddItem.yaml new file mode 100644 index 0000000000..cfa2f8e742 --- /dev/null +++ b/tests/sl/shopping_list_HassShoppingListAddItem.yaml @@ -0,0 +1,11 @@ +language: sl +tests: + - sentences: + - dodaj jabolka na moj seznam za trgovino + - dodaj jabolka na seznam + - daj jabolka na seznam + intent: + name: HassShoppingListAddItem + slots: + item: "jabolka " + response: Artikel je dodan na nakupovalni seznam diff --git a/tests/sl/todo_HassListAddItem.yaml b/tests/sl/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..5333fd61a4 --- /dev/null +++ b/tests/sl/todo_HassListAddItem.yaml @@ -0,0 +1,11 @@ +language: sl +tests: + - sentences: + - dodaj čiščenje na seznam za opravila + - daj čiščenje na seznam za opravila + intent: + name: HassListAddItem + slots: + item: "čiščenje " + name: "opravila" + response: Dodano čiščenje diff --git a/tests/sl/weather_HassGetWeather.yaml b/tests/sl/weather_HassGetWeather.yaml new file mode 100644 index 0000000000..fd363832bb --- /dev/null +++ b/tests/sl/weather_HassGetWeather.yaml @@ -0,0 +1,18 @@ +language: sl +tests: + - sentences: + - "kakšno je vreme v Mariboru?" + + intent: + name: HassGetWeather + slots: + name: v Mariboru + response: 21 stopinj in deževno + + - sentences: + - "kakšno je vreme v Benetkah" + intent: + name: HassGetWeather + slots: + name: v Benetkah + response: 28 stopinj in jasno diff --git a/tests/uk/_fixtures.yaml b/tests/uk/_fixtures.yaml index 77769c0d30..791a1d3876 100644 --- a/tests/uk/_fixtures.yaml +++ b/tests/uk/_fixtures.yaml @@ -93,3 +93,12 @@ entities: state: "closed" attributes: device_class: curtain + + - name: Завдання + id: "todo.tasks" + state: "" + + - name: Прибирання + id: "script.cleaning" + - name: Почати прання + id: "script.start_washing" diff --git a/tests/uk/homeassistant_HassNevermind.yaml b/tests/uk/homeassistant_HassNevermind.yaml new file mode 100644 index 0000000000..6f7b033b43 --- /dev/null +++ b/tests/uk/homeassistant_HassNevermind.yaml @@ -0,0 +1,9 @@ +language: uk +tests: + - sentences: + - "не зважай" + - "не важливо" + - "не звертай уваги" + - "скасуй" + intent: + name: HassNevermind diff --git a/tests/uk/script_HassTurnOn.yaml b/tests/uk/script_HassTurnOn.yaml new file mode 100644 index 0000000000..3fc32a7ad5 --- /dev/null +++ b/tests/uk/script_HassTurnOn.yaml @@ -0,0 +1,19 @@ +language: uk +tests: + - sentences: + - "Почни прибирання" + - "Активуй скрипт прибирання" + intent: + name: HassTurnOn + slots: + domain: script + name: "Прибирання" + response: "Розпочато" + - sentences: + - "Почати прання" + intent: + name: HassTurnOn + slots: + domain: script + name: "Почати прання" + response: "Розпочато" diff --git a/tests/uk/todo_HassListAddItem.yaml b/tests/uk/todo_HassListAddItem.yaml new file mode 100644 index 0000000000..ead882bd37 --- /dev/null +++ b/tests/uk/todo_HassListAddItem.yaml @@ -0,0 +1,11 @@ +language: uk +tests: + - sentences: + - Додай прибирання в мої завдання + - Добав прибирання в список завдання + intent: + name: HassListAddItem + slots: + item: "прибирання " + name: "Завдання" + response: прибирання додано diff --git a/tests/zh-cn/_fixtures.yaml b/tests/zh-cn/_fixtures.yaml index e80fe59c1b..64dce426bc 100644 --- a/tests/zh-cn/_fixtures.yaml +++ b/tests/zh-cn/_fixtures.yaml @@ -102,9 +102,9 @@ entities: - name: "溫控器" id: climate.thermostat area: living_room - state: "18" + state: "heat" attributes: - unit_of_measurement: "°C" + current_temperature: 18 - name: "前门" id: lock.front_door diff --git a/tests/zh-cn/climate_HassClimateGetTemperature.yaml b/tests/zh-cn/climate_HassClimateGetTemperature.yaml index 9e83b9551e..bd4c9283b9 100644 --- a/tests/zh-cn/climate_HassClimateGetTemperature.yaml +++ b/tests/zh-cn/climate_HassClimateGetTemperature.yaml @@ -6,7 +6,7 @@ tests: - 现在温度 intent: name: HassClimateGetTemperature - response: "18 °C" + response: "18" - sentences: - 客厅温度是多少? - 客厅现在多少度? @@ -14,4 +14,4 @@ tests: name: HassClimateGetTemperature slots: area: 客厅 - response: "18 °C" + response: "18" diff --git a/tests/zh-tw/_fixtures.yaml b/tests/zh-tw/_fixtures.yaml index a18349680a..4da9bb7697 100644 --- a/tests/zh-tw/_fixtures.yaml +++ b/tests/zh-tw/_fixtures.yaml @@ -122,9 +122,9 @@ entities: - name: "溫控器" id: "climate.thermostat" area: "living_room" - state: "18" + state: "heat" attributes: - unit_of_measurement: "°C" + current_temperature: 18 - name: "大門" id: "lock.front_door" diff --git a/tests/zh-tw/climate_HassClimateGetTemperature.yaml b/tests/zh-tw/climate_HassClimateGetTemperature.yaml index 31512a0a3f..d13bfd299d 100644 --- a/tests/zh-tw/climate_HassClimateGetTemperature.yaml +++ b/tests/zh-tw/climate_HassClimateGetTemperature.yaml @@ -6,7 +6,7 @@ tests: - "現在溫度" intent: name: HassClimateGetTemperature - response: "18 °C" + response: "18" - sentences: - "現在客廳多熱?" - "現在客廳幾度?" @@ -14,4 +14,4 @@ tests: name: HassClimateGetTemperature slots: area: 客廳 - response: "18 °C" + response: "18"