Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EN] Explicit and friendly domain name for HassTurnOn/HassTurnOff #2418

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion responses/en/HassTurnOff.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,27 @@ language: en
responses:
intents:
HassTurnOff:
default: "Turned off the {{ state.domain }}"
default: >-
{% set translations = {
"button": "the button",
"camera": "the camera",
"input_button": "the button",
"alarm_control_panel": "the alarm",
"automation": "the automation",
"fan": "the fan",
"climate": "the thermostat",
"humidifier": "the humidifier",
"input_boolean": "the switch",
"siren": "the siren",
"water_heater": "the water heater",
"light": "the light",
"switch": "the switch",
"remote": "the remote",
"vacuum": "the vacuum cleaner",
"media_player": "the media player",
"lawn_mower": "the lawn mower"
} %}
Turned off {{ translations.get(state.domain) }}
lights_area: "Turned off the lights"
lights_floor: "Turned off the lights"
fans_area: "Turned off the fans"
Expand Down
22 changes: 21 additions & 1 deletion responses/en/HassTurnOn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,27 @@ language: en
responses:
intents:
HassTurnOn:
default: "Turned on the {{ state.domain }}"
default: >-
{% set translations = {
"button": "the button",
"camera": "the camera",
"input_button": "the button",
"alarm_control_panel": "the alarm",
"automation": "the automation",
"fan": "the fan",
"climate": "the thermostat",
"humidifier": "the humidifier",
"input_boolean": "the switch",
"siren": "the siren",
"water_heater": "the water heater",
"light": "the light",
"switch": "the switch",
"remote": "the remote",
"vacuum": "the vacuum cleaner",
"media_player": "the media player",
"lawn_mower": "the lawn mower"
} %}
Turned on {{ translations.get(state.domain) }}
lights_area: "Turned on the lights"
lights_floor: "Turned on the lights"
light_all: "Turned on all of the lights"
Expand Down