From f4273819d82455efe52a94a232ec3ce9fa304891 Mon Sep 17 00:00:00 2001 From: Kevin Stillhammer Date: Fri, 28 Jul 2023 08:50:49 +0200 Subject: [PATCH] feat: add service translations (#294) --- custom_components/weenect/services.yaml | 6 -- .../weenect/translations/de.json | 58 ++++++++++++++++++- .../weenect/translations/en.json | 58 ++++++++++++++++++- 3 files changed, 114 insertions(+), 8 deletions(-) diff --git a/custom_components/weenect/services.yaml b/custom_components/weenect/services.yaml index f3502b5..ba49323 100644 --- a/custom_components/weenect/services.yaml +++ b/custom_components/weenect/services.yaml @@ -1,6 +1,5 @@ --- set_update_interval: - description: Set the tracker update interval. target: entity: integration: weenect @@ -8,7 +7,6 @@ set_update_interval: integration: weenect fields: update_interval: - description: The update interval. Possible values are 30S 1M 5M 10M 30M 1H required: true example: "30M" default: "30M" @@ -23,7 +21,6 @@ set_update_interval: - "1H" activate_super_live: - description: Activate the super live mode. target: entity: integration: weenect @@ -31,7 +28,6 @@ activate_super_live: integration: weenect refresh_location: - description: Request a location update. target: entity: integration: weenect @@ -39,7 +35,6 @@ refresh_location: integration: weenect ring: - description: Let the tracker ring. target: entity: integration: weenect @@ -47,7 +42,6 @@ ring: integration: weenect vibrate: - description: Let the tracker vibrate. target: entity: integration: weenect diff --git a/custom_components/weenect/translations/de.json b/custom_components/weenect/translations/de.json index f1d06a5..5ae5888 100644 --- a/custom_components/weenect/translations/de.json +++ b/custom_components/weenect/translations/de.json @@ -24,5 +24,61 @@ } } } - } + }, + "services": { + "set_update_interval": { + "name": "Update Intervall setzen", + "description": "Ändert das Update Intervall des Trackers", + "fields": { + "update_interval": { + "name": "Update Intervall", + "description": "Mögliche Werte sind: 30S 1M 5M 10M 30M 1H" + }, + "entity_id": { + "name": "Entity", + "description": "Der Tracker" + } + } + }, + "activate_super_live": { + "name": "Super Live Modus aktivieren", + "description": "Aktiviert den Super Live Modus des Trackers für 60s", + "fields": { + "entity_id": { + "name": "Entity", + "description": "Der Tracker" + } + } + }, + "refresh_location": { + "name": "Standort aktualisieren", + "description": "Sende eine Standort Aktualisierungsanfrage an den Tracker", + "fields": { + "entity_id": { + "name": "Entity", + "description": "Der Tracker" + } + } + }, + "ring": { + "name": "Klingeln", + "description": "Den Tracker klingeln lassen", + "fields": { + "entity_id": { + "name": "Entity", + "description": "Der Tracker" + } + } + }, + "vibrate": { + "name": "Vibrieren", + "description": "Den Tracker vibrieren lassen", + "fields": { + "entity_id": { + "name": "Entity", + "description": "Der Tracker" + } + } + } + } } diff --git a/custom_components/weenect/translations/en.json b/custom_components/weenect/translations/en.json index c6c00d5..1c5d461 100644 --- a/custom_components/weenect/translations/en.json +++ b/custom_components/weenect/translations/en.json @@ -24,5 +24,61 @@ } } } - } + }, + "services": { + "set_update_interval": { + "name": "Set Update Intervall", + "description": "Changes the rate in which the tracker updates its location", + "fields": { + "update_interval": { + "name": "Update Interval", + "description": "Possible values are: 30S 1M 5M 10M 30M 1H" + }, + "entity_id": { + "name": "Entity", + "description": "The tracker" + } + } + }, + "activate_super_live": { + "name": "Actiate Super Live Mode", + "description": "Activate the super live mode of the tracker for 60s", + "fields": { + "entity_id": { + "name": "Entity", + "description": "The tracker" + } + } + }, + "refresh_location": { + "name": "Refresh Location", + "description": "Send a request to the tracker to refresh its location", + "fields": { + "entity_id": { + "name": "Entity", + "description": "The tracker" + } + } + }, + "ring": { + "name": "Ring", + "description": "Let the tracker ring", + "fields": { + "entity_id": { + "name": "Entity", + "description": "The tracker" + } + } + }, + "vibrate": { + "name": "Vibrate", + "description": "Let the tracker vibrate", + "fields": { + "entity_id": { + "name": "Entity", + "description": "The tracker" + } + } + } + } }