From 6211638588e2387f7302e901bbcac8ca5b454211 Mon Sep 17 00:00:00 2001 From: Andrej Sersen <44124120+andrejs2@users.noreply.github.com> Date: Mon, 18 Mar 2024 21:22:42 +0100 Subject: [PATCH] [SL] some fixes in responses and HassTurnOn (#2096) --- responses/sl/HassGetState.yaml | 15 +++++++++++++++ responses/sl/HassTurnOff.yaml | 1 - sentences/sl/homeassistant_HassTurnOn.yaml | 6 ++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/responses/sl/HassGetState.yaml b/responses/sl/HassGetState.yaml index 8ea1b38fe5..079b20d29e 100644 --- a/responses/sl/HassGetState.yaml +++ b/responses/sl/HassGetState.yaml @@ -2,10 +2,13 @@ language: sl responses: intents: HassGetState: + default: "{{ state.state_with_unit }}" # used mostly for custom sentences + # 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: | {{ slots.name | capitalize }} je {{ state.state_with_unit }} + # one_sensor for SL variation one_sensor: | {{ slots.device_class }} {{ slots.name | capitalize }} je {{ state.state_with_unit }} one_yesno: | @@ -31,6 +34,8 @@ responses: Ne {% endif %} + #any_bs is for SL variation of response + any_bs: | {% if query.matched %} {% set match = query.matched | map(attribute="name") | sort | list %} @@ -65,6 +70,9 @@ responses: {{ name }} {%- endfor %} {% endif %} + + # all_bs is SL variation of response + all_bs: | {% if not query.unmatched: %} Da @@ -95,6 +103,9 @@ responses: {%- endfor -%} {% endif %} {% endif %} + + # which_bs is SL variation of response + which_bs: | {% if not query.matched %} Noben @@ -109,6 +120,9 @@ responses: {%- endfor -%} {% endif %} {% endif %} + + # which_bs_opening is SL variation of response + which_bs_opening: | {% if not query.matched %} Nič @@ -133,6 +147,7 @@ responses: {{ slots.name | capitalize }} je {{ state.state }} {% endif %} + # sensor_value is SL variation of response for sensor sensor_value: | Vrednost senzorja je {{ state.state_with_unit }} diff --git a/responses/sl/HassTurnOff.yaml b/responses/sl/HassTurnOff.yaml index 64fec53ec6..5bf7508856 100644 --- a/responses/sl/HassTurnOff.yaml +++ b/responses/sl/HassTurnOff.yaml @@ -12,5 +12,4 @@ responses: fans_area: "Ventilator je izklopljen" lock: "Odklenjeno" scene: "Deaktivirana" - script: "Ustavljena" valve: "Zaprt" diff --git a/sentences/sl/homeassistant_HassTurnOn.yaml b/sentences/sl/homeassistant_HassTurnOn.yaml index 9f2fd7ff4d..c27c22ac20 100644 --- a/sentences/sl/homeassistant_HassTurnOn.yaml +++ b/sentences/sl/homeassistant_HassTurnOn.yaml @@ -9,3 +9,9 @@ intents: excludes_context: domain: - cover + - cover + - lock + - scene + - script + - sensor + - valve