2019-10-25 17:51:35 +00:00
|
|
|
{
|
2020-04-16 18:52:27 +00:00
|
|
|
"title": "Device tracker",
|
2019-10-25 17:51:35 +00:00
|
|
|
"device_automation": {
|
2019-12-16 08:33:11 +00:00
|
|
|
"condition_type": {
|
2019-10-25 17:51:35 +00:00
|
|
|
"is_home": "{entity_name} is home",
|
|
|
|
"is_not_home": "{entity_name} is not home"
|
2020-11-09 11:04:16 +00:00
|
|
|
},
|
|
|
|
"trigger_type": {
|
|
|
|
"enters": "{entity_name} enters a zone",
|
|
|
|
"leaves": "{entity_name} leaves a zone"
|
2019-10-25 17:51:35 +00:00
|
|
|
}
|
2020-04-20 23:25:35 +00:00
|
|
|
},
|
2023-03-16 11:16:08 +00:00
|
|
|
"entity_component": {
|
2020-04-20 23:25:35 +00:00
|
|
|
"_": {
|
2023-03-16 20:10:20 +00:00
|
|
|
"name": "[%key:component::device_tracker::title%]",
|
2023-03-16 11:16:08 +00:00
|
|
|
"state": {
|
|
|
|
"home": "[%key:common::state::home%]",
|
|
|
|
"not_home": "[%key:common::state::not_home%]"
|
2023-03-16 18:58:52 +00:00
|
|
|
},
|
|
|
|
"state_attributes": {
|
|
|
|
"battery": {
|
|
|
|
"name": "Battery"
|
|
|
|
},
|
|
|
|
"gps_accuracy": {
|
|
|
|
"name": "GPS accuracy"
|
|
|
|
},
|
|
|
|
"latitude": {
|
|
|
|
"name": "Latitude"
|
|
|
|
},
|
|
|
|
"longitude": {
|
|
|
|
"name": "Longitude"
|
|
|
|
},
|
|
|
|
"source_type": {
|
|
|
|
"name": "Source",
|
|
|
|
"state": {
|
|
|
|
"bluetooth_le": "Bluetooth LE",
|
|
|
|
"bluetooth": "Bluetooth",
|
|
|
|
"gps": "GPS",
|
|
|
|
"router": "Router"
|
|
|
|
}
|
|
|
|
}
|
2023-03-16 11:16:08 +00:00
|
|
|
}
|
2020-04-20 23:25:35 +00:00
|
|
|
}
|
2023-07-11 21:19:29 +00:00
|
|
|
},
|
|
|
|
"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."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-10-25 17:51:35 +00:00
|
|
|
}
|
2022-03-30 08:35:30 +00:00
|
|
|
}
|