Files
2026-01-22 21:38:10 +00:00

150 lines
4.4 KiB
JSON

{
"common": {
"condition_behavior_description": "How the state should match on the targeted device trackers.",
"condition_behavior_name": "Behavior",
"trigger_behavior_description": "The behavior of the targeted device trackers to trigger on.",
"trigger_behavior_name": "Behavior"
},
"conditions": {
"is_home": {
"description": "Tests if one or more device trackers are home.",
"fields": {
"behavior": {
"description": "[%key:component::device_tracker::common::condition_behavior_description%]",
"name": "[%key:component::device_tracker::common::condition_behavior_name%]"
}
},
"name": "Device tracker is home"
},
"is_not_home": {
"description": "Tests if one or more device trackers are not home.",
"fields": {
"behavior": {
"description": "[%key:component::device_tracker::common::condition_behavior_description%]",
"name": "[%key:component::device_tracker::common::condition_behavior_name%]"
}
},
"name": "Device tracker is not home"
}
},
"device_automation": {
"condition_type": {
"is_home": "{entity_name} is home",
"is_not_home": "{entity_name} is not home"
},
"extra_fields": {
"zone": "[%key:common::device_automation::extra_fields::zone%]"
},
"trigger_type": {
"enters": "{entity_name} enters a zone",
"leaves": "{entity_name} leaves a zone"
}
},
"entity_component": {
"_": {
"name": "[%key:component::device_tracker::title%]",
"state": {
"home": "[%key:common::state::home%]",
"not_home": "[%key:common::state::not_home%]"
},
"state_attributes": {
"battery": {
"name": "Battery"
},
"gps_accuracy": {
"name": "GPS accuracy"
},
"latitude": {
"name": "Latitude"
},
"longitude": {
"name": "Longitude"
},
"source_type": {
"name": "Source",
"state": {
"bluetooth": "Bluetooth",
"bluetooth_le": "Bluetooth LE",
"gps": "GPS",
"router": "Router"
}
}
}
}
},
"selector": {
"condition_behavior": {
"options": {
"all": "All",
"any": "Any"
}
},
"trigger_behavior": {
"options": {
"any": "Any",
"first": "First",
"last": "Last"
}
}
},
"services": {
"see": {
"description": "Manually update the records of a seen legacy device tracker in the known_devices.yaml file.",
"fields": {
"battery": {
"description": "Battery level of the device.",
"name": "Battery level"
},
"dev_id": {
"description": "ID of the device (find the ID in `known_devices.yaml`).",
"name": "Device ID"
},
"gps": {
"description": "GPS coordinates where the device is located, specified by latitude and longitude (for example: [51.513845, -0.100539]).",
"name": "GPS coordinates"
},
"gps_accuracy": {
"description": "Accuracy of the GPS coordinates.",
"name": "GPS accuracy"
},
"host_name": {
"description": "Hostname of the device.",
"name": "Hostname"
},
"location_name": {
"description": "Name of the location where the device is located. The options are: `home`, `not_home`, or the name of the zone.",
"name": "Location"
},
"mac": {
"description": "MAC address of the device.",
"name": "MAC address"
}
},
"name": "See"
}
},
"title": "Device tracker",
"triggers": {
"entered_home": {
"description": "Triggers when one or more device trackers enter home.",
"fields": {
"behavior": {
"description": "[%key:component::device_tracker::common::trigger_behavior_description%]",
"name": "[%key:component::device_tracker::common::trigger_behavior_name%]"
}
},
"name": "Entered home"
},
"left_home": {
"description": "Triggers when one or more device trackers leave home.",
"fields": {
"behavior": {
"description": "[%key:component::device_tracker::common::trigger_behavior_description%]",
"name": "[%key:component::device_tracker::common::trigger_behavior_name%]"
}
},
"name": "Left home"
}
}
}