Skip to content

Commit

Permalink
feat: add service translations (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
eifinger authored Jul 28, 2023
1 parent daa1db1 commit f427381
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 8 deletions.
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"
}
}
}
}
}

0 comments on commit f427381

Please sign in to comment.