From 5121f27cce8ff20df1bc31ef7066d43f78e4f56f Mon Sep 17 00:00:00 2001 From: njobrien <59174199@users.noreply.github.com> Date: Fri, 6 Oct 2023 09:10:52 -0500 Subject: [PATCH] Services Translation Update for Hassfest. https://www.home-assistant.io/blog/2023/08/02/release-20238/#translated-services https://developers.home-assistant.io/blog/2023/07/11/translating-services/ --- custom_components/traeger/services.yaml | 36 +++--- .../traeger/translations/en.json | 104 +++++++++++++----- 2 files changed, 99 insertions(+), 41 deletions(-) diff --git a/custom_components/traeger/services.yaml b/custom_components/traeger/services.yaml index 3985949..2b411bc 100644 --- a/custom_components/traeger/services.yaml +++ b/custom_components/traeger/services.yaml @@ -1,6 +1,4 @@ set_custom_cook: - name: Set Cook Cycle - description: Set Custom Cook Cycle Steps fields: entity_id: description: "Number Entity that serves Custom Cook Steps." @@ -12,9 +10,8 @@ set_custom_cook: integration: traeger domain: number steps: - description: | - List of steps to perform. required: true + #Checkout https://github.com/njobrien1006/hass_traeger/blob/master/config/.storage/lovelace#L126 for more examples. default: - #1 Set temp and smoke, advance on probe fired, or act_temp_adv set_temp: 180 #Set grill temp @@ -53,23 +50,32 @@ set_custom_cook: selector: object: set_temp: - description: "Set Grill Temp. *Only up to your grill's MaxTemp." + required: false + example: 180 smoke: - description: "Set Smoke Mode 1 or 0. *Only Avail if grill supports" + required: false + example: 1 keepwarm: - description: "Set keepwarm, Mode 1 or 0." + required: false + example: 0 time_set: - description: "Set Timer in Minutes." + required: false + example: 60 use_timer: - description: "Use Timer to Advance State. *Only applies to current state." + required: false + example: 1 min_delta: - description: "Min DELTA temp between Grill and Probe. *Requires `max_grill_delta_temp`." + required: false + example: 30 max_grill_delta_temp: - description: "Max Temp it will increase to from probe `min_delta`. *Requires `min_delta`." + required: false + example: 250 act_temp_adv: - description: "Grill Temp at which the State will advance." + required: false + example: 400 probe_act_temp_adv: - description: "Probe Temp at which the State will advance." + required: false + example: 180 shutdown: - description: "Call Grill Shutdown." - + required: false + example: 1 \ No newline at end of file diff --git a/custom_components/traeger/translations/en.json b/custom_components/traeger/translations/en.json index f934f8a..c04cd62 100644 --- a/custom_components/traeger/translations/en.json +++ b/custom_components/traeger/translations/en.json @@ -1,32 +1,84 @@ { - "config": { - "step": { - "user": { - "description": "If you need help with the configuration have a look here: https://github.com/njobrien1006/hass_traeger/issues", - "data": { - "username": "Username", - "password": "Password" - } - } - }, - "error": { - "auth": "Username/Password is wrong." - }, - "abort": { - "single_instance_allowed": "Only a single configuration of Traeger is allowed." + "config": { + "step": { + "user": { + "description": "If you need help with the configuration have a look here: https://github.com/njobrien1006/hass_traeger/issues", + "data": { + "username": "Username", + "password": "Password" + } } + }, + "error": { + "auth": "Username/Password is wrong." + }, + "abort": { + "single_instance_allowed": "Only a single configuration of Traeger is allowed." + } }, "options": { - "step": { - "user": { - "data": { - "sensor": "Sensors enabled", - "climate": "Climate entity enabled", - "switch": "Switch entity enabled", - "number": "Number entity enabled", - "binary_sensor": "Binary Sensors enabled" - } - } + "step": { + "user": { + "data": { + "sensor": "Sensors enabled", + "climate": "Climate entity enabled", + "switch": "Switch entity enabled", + "number": "Number entity enabled", + "binary_sensor": "Binary Sensors enabled" + } } + } + }, + "services": { + "set_custom_cook": { + "name": "Set Cook Cycle", + "description": "Set Custom Cook Cycle Steps", + "fields": { + "steps": { + "name": "Steps", + "description": "List of steps to perform." + }, + "set_temp": { + "name": "Set Temp", + "description": "Set Grill Temp.____________________________Only up to your grill's MaxTemp." + }, + "smoke": { + "name": "Set S.Smoke Mode", + "description": "Set Smoke Mode 1 or 0._________________________Only Avail if grill supports" + }, + "keepwarm": { + "name": "Set KeepWarm Mode", + "description": "Set keepwarm, Mode 1 or 0." + }, + "time_set": { + "name": "Set Timer", + "description": "Set Timer in Minutes." + }, + "use_timer": { + "name": "Use Timer", + "description": "Use Timer to Advance State._________________*Only applies to current state." + }, + "min_delta": { + "name": "Min Probe/Grill Delta", + "description": "Min DELTA temp between Grill and Probe.___*Requires `max_grill_delta_temp`." + }, + "max_grill_delta_temp": { + "name": "Max Grill Set.Temp for Delta", + "description": "Max Temp it will increase to from probe `min_delta`. *Requires `min_delta`." + }, + "act_temp_adv": { + "name": "Actual Grill Temp for Advance", + "description": "Grill Temp at which the State will advance." + }, + "probe_act_temp_adv": { + "name": "Actual Probe Temp for Advance", + "description": "Probe Temp at which the State will advance." + }, + "shutdown": { + "name": "Command Shutdown", + "description": "Call Grill Shutdown." + } + } + } } -} +} \ No newline at end of file