diff --git a/homeassistant/components/device_tracker/services.yaml b/homeassistant/components/device_tracker/services.yaml index 22d89b42253..08ccbcf0b5a 100644 --- a/homeassistant/components/device_tracker/services.yaml +++ b/homeassistant/components/device_tracker/services.yaml @@ -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 diff --git a/homeassistant/components/device_tracker/strings.json b/homeassistant/components/device_tracker/strings.json index c15b9723c97..44c43219b82 100644 --- a/homeassistant/components/device_tracker/strings.json +++ b/homeassistant/components/device_tracker/strings.json @@ -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." + } + } + } } }