Skip to content

Commit

Permalink
[SL] some fixes in responses and HassTurnOn (#2096)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrejs2 committed Mar 18, 2024
1 parent 5c19428 commit 6211638
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
15 changes: 15 additions & 0 deletions responses/sl/HassGetState.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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 %}
Expand Down Expand Up @@ -65,6 +70,9 @@ responses:
{{ name }}
{%- endfor %}
{% endif %}
# all_bs is SL variation of response

all_bs: |
{% if not query.unmatched: %}
Da
Expand Down Expand Up @@ -95,6 +103,9 @@ responses:
{%- endfor -%}
{% endif %}
{% endif %}
# which_bs is SL variation of response

which_bs: |
{% if not query.matched %}
Noben
Expand All @@ -109,6 +120,9 @@ responses:
{%- endfor -%}
{% endif %}
{% endif %}
# which_bs_opening is SL variation of response

which_bs_opening: |
{% if not query.matched %}
Nič
Expand All @@ -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 }}
Expand Down
1 change: 0 additions & 1 deletion responses/sl/HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ responses:
fans_area: "Ventilator je izklopljen"
lock: "Odklenjeno"
scene: "Deaktivirana"
script: "Ustavljena"
valve: "Zaprt"
6 changes: 6 additions & 0 deletions sentences/sl/homeassistant_HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ intents:
excludes_context:
domain:
- cover
- cover
- lock
- scene
- script
- sensor
- valve

0 comments on commit 6211638

Please sign in to comment.