mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 01:37:08 +00:00
Migrate device_tracker services to support translations (#96320)
* Migrate device_tracker services to support translations * Tweaks * Apply suggestions from code review Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> --------- Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
bde7d734b5
commit
7468320860
@ -1,50 +1,34 @@
|
||||
# Describes the format for available device tracker services
|
||||
|
||||
see:
|
||||
name: See
|
||||
description: Control tracked device.
|
||||
fields:
|
||||
mac:
|
||||
name: MAC address
|
||||
description: MAC address of device
|
||||
example: "FF:FF:FF:FF:FF:FF"
|
||||
selector:
|
||||
text:
|
||||
dev_id:
|
||||
name: Device ID
|
||||
description: Id of device (find id in known_devices.yaml).
|
||||
example: "phonedave"
|
||||
selector:
|
||||
text:
|
||||
host_name:
|
||||
name: Host name
|
||||
description: Hostname of device
|
||||
example: "Dave"
|
||||
selector:
|
||||
text:
|
||||
location_name:
|
||||
name: Location name
|
||||
description: Name of location where device is located (not_home is away).
|
||||
example: "home"
|
||||
selector:
|
||||
text:
|
||||
gps:
|
||||
name: GPS coordinates
|
||||
description: GPS coordinates where device is located, specified by latitude and longitude.
|
||||
example: "[51.509802, -0.086692]"
|
||||
selector:
|
||||
object:
|
||||
gps_accuracy:
|
||||
name: GPS accuracy
|
||||
description: Accuracy of GPS coordinates.
|
||||
selector:
|
||||
number:
|
||||
min: 1
|
||||
max: 100
|
||||
unit_of_measurement: "%"
|
||||
battery:
|
||||
name: Battery level
|
||||
description: Battery level of device.
|
||||
selector:
|
||||
number:
|
||||
min: 0
|
||||
|
@ -41,5 +41,41 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"services": {
|
||||
"see": {
|
||||
"name": "See",
|
||||
"description": "Records a seen tracked device.",
|
||||
"fields": {
|
||||
"mac": {
|
||||
"name": "MAC address",
|
||||
"description": "MAC address of the device."
|
||||
},
|
||||
"dev_id": {
|
||||
"name": "Device ID",
|
||||
"description": "ID of the device (find the ID in `known_devices.yaml`)."
|
||||
},
|
||||
"host_name": {
|
||||
"name": "Hostname",
|
||||
"description": "Hostname of the device."
|
||||
},
|
||||
"location_name": {
|
||||
"name": "Location",
|
||||
"description": "Name of the location where the device is located. The options are: `home`, `not_home`, or the name of the zone."
|
||||
},
|
||||
"gps": {
|
||||
"name": "GPS coordinates",
|
||||
"description": "GPS coordinates where the device is located, specified by latitude and longitude (for example: [51.513845, -0.100539])."
|
||||
},
|
||||
"gps_accuracy": {
|
||||
"name": "GPS accuracy",
|
||||
"description": "Accuracy of the GPS coordinates."
|
||||
},
|
||||
"battery": {
|
||||
"name": "Battery level",
|
||||
"description": "Battery level of the device."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user