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

feat: add service translations #294

Merged
merged 1 commit into from
Jul 28, 2023
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
6 changes: 0 additions & 6 deletions custom_components/weenect/services.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
---
set_update_interval:
description: Set the tracker update interval.
target:
entity:
integration: weenect
device:
integration: weenect
fields:
update_interval:
description: The update interval. Possible values are 30S 1M 5M 10M 30M 1H
required: true
example: "30M"
default: "30M"
Expand All @@ -23,31 +21,27 @@ set_update_interval:
- "1H"

activate_super_live:
description: Activate the super live mode.
target:
entity:
integration: weenect
device:
integration: weenect

refresh_location:
description: Request a location update.
target:
entity:
integration: weenect
device:
integration: weenect

ring:
description: Let the tracker ring.
target:
entity:
integration: weenect
device:
integration: weenect

vibrate:
description: Let the tracker vibrate.
target:
entity:
integration: weenect
Expand Down
58 changes: 57 additions & 1 deletion custom_components/weenect/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
}
58 changes: 57 additions & 1 deletion custom_components/weenect/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
}