[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116235":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":34,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":16,"starSnapshotCount":16,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},116235,"HA-Family-Location","Ctuna89\u002FHA-Family-Location","Ctuna89","A home assistant based alternative for family location apps","",null,"Python",85,3,1,4,0,6,25,26,68.81,"MIT License",false,"main",true,[26,27,28,29,30,31,32,33],"hacs","hacs-integration","home-assistant","home-assistant-addon","home-assistant-hacs","home-assistant-integration","integration","integrations","2026-11-23 11:23:31","2026-11-23 17:16:25","# Family Location 📍\n\n🇪🇸 [Leer en español](README.es.md)\n\n**A Life360 replacement that lives inside your Home Assistant.** Places by address, arrival and departure\nalerts for the whole family («James arrived home», «Janet arrived at work»), who is on the move, trips with\ndistance and top speed, speeding alerts, low battery, check-in and an SOS button.\n\nNo accounts and no subscription: positions come from the **Home Assistant Companion app** on each phone, and\neverything (places, trips, speeding, alerts) is computed in your Home Assistant. A few optional features look up\naddresses or road types on OpenStreetMap; [Privacy](#privacy) lists exactly what is sent, when, and the switch\nthat turns it all off.\n\n[![Open your Home Assistant instance and open this repository in HACS.](https:\u002F\u002Fmy.home-assistant.io\u002Fbadges\u002Fhacs_repository.svg)](https:\u002F\u002Fmy.home-assistant.io\u002Fredirect\u002Fhacs_repository\u002F?owner=Ctuna89&repository=HA-Family-Location&category=integration)\n\n## Features\n\n| | |\n|---|---|\n| 🏠 **Places by address** | Type «1600 Amphitheatre Pkwy, Mountain View», it is looked up on OpenStreetMap, you confirm the point on a map and adjust the radius. You can also drop a pin on the map or reuse an existing zone |\n| 🔔 **Arrivals and departures** | The rest of the circle is alerted when someone arrives at or leaves a place. Per place you choose whether to alert on arrival, on departure, for whom (e.g. only the kids at school) and to whom |\n| 🚦 **No false arrivals** | A trip only ends after 5 minutes without moving (configurable): a traffic light or a jam doesn't end it. Arrivals at places other than Home are announced only once the person stays there for those 5 minutes; driving past, or stopping at a light in front of work, doesn't count |\n| 👨‍👩‍👧 **Together? No alert** | If James is with Janet, Janet doesn't get «James arrived at Work» (nor the departure or the trip): only the rest of the circle does |\n| 🚗 **On the move** | *Still \u002F Moving \u002F Driving* status, current speed, and a «Moving» binary sensor |\n| 🛣️ **Trips** | Automatic start and end, distance, duration, top speed, origin and destination. Distance and trips today |\n| ⚠️ **Speeding** | Per-person limit (e.g. 100 km\u002Fh for the new teen driver), optionally split into a **street** and a **highway** limit (e.g. 60 \u002F 120 km\u002Fh). Confirmed by two consecutive readings to avoid false alerts from GPS jumps |\n| 🏆 **Weekly leaderboard** | Distance, trips, top speed and speeding events per person this week (Monday to Sunday), plus a circle leaderboard |\n| 🔋 **Low battery** | The circle is alerted when someone's phone drops below the threshold |\n| ✅ **Check-in** | A button (and action) that tells everyone «James is at Home» or «near 742 Evergreen Terrace» |\n| 🆘 **Ask for help** | A button that sends a **critical** alert (rings even on silent or Do Not Disturb, once each phone allows it — see below) with a link to the location |\n| 🗺️ **Your HA zones too** | If someone is inside a Home Assistant zone you didn't add as a place (e.g. «Gym»), their place shows the zone name instead of a street address. Optional, on by default |\n| 📫 **Approximate address** | Optional: when someone is stopped away from their places and zones, their address is shown (looked up on OpenStreetMap, see [Privacy](#privacy)) |\n| 🤖 **Events for automations** | Every arrival, departure, trip, speeding, battery, check-in and SOS fires the `family_location_event` event |\n| 🌍 **Languages** | English and Spanish (notifications follow your Home Assistant language) |\n\n## Requirements\n\n1. **Home Assistant 2025.3 or newer.**\n2. The **Home Assistant Companion app** on each member's phone, with location set to **«Allow all the time»**, and\n   a Home Assistant **person** linked to that phone.\n3. For useful speeding alerts the phone has to report its location often while moving:\n   - **Android:** *App settings → Sensors → Background location* enabled; ideally turn on *High accuracy\n     mode* (you can limit it to when the phone is connected to the car via Bluetooth or Android Auto).\n   - **iPhone:** iOS reports on significant location changes; speeds are computed between positions, so on\n     iPhone speeding alerts are less immediate.\n\n## Installation\n\n1. HACS → ⋮ menu → *Custom repositories* → add `https:\u002F\u002Fgithub.com\u002FCtuna89\u002FHA-Family-Location` as an\n   **Integration** (or use the button above).\n2. Install **Family Location** and restart Home Assistant.\n3. *Settings → Devices & services → Add integration → Family Location.*\n\n## Configuration\n\n1. **Create the circle:** name («Family»), who is in it (each person's phone notification service is detected\n   automatically) and whether to add «Home» as the first place.\n2. **Add places:** on the integration page, **«Add place»** button:\n   1. name and address (or an existing zone, or nothing to drop a pin on the map);\n   2. confirm the point and radius on the map;\n   3. choose the alerts: on arrival \u002F on departure, for whom and to whom, and whether to alert as soon as\n      someone enters.\n3. **Add or edit members:** **«Add member»** button, or the pencil next to each one. There you set their speed\n   limits (0 = no alert), which phone(s) receive their alerts and whether they receive alerts at all.\n   - **Street limit** only: it applies everywhere.\n   - **Street + highway limits:** when the person goes over the street limit, OpenStreetMap is asked whether\n     they're on a highway (motorway or expressway), and the matching limit is used. Results are cached, so\n     the same stretch of road isn't looked up twice. Until the road type is known, the higher (highway) limit\n     applies, so an unknown road never causes a false alert.\n4. **General options** (*Configure* button): which safety alerts are sent and to whom, battery threshold,\n   trip detection sensitivity, and what may be looked up on OpenStreetMap (see [Privacy](#privacy)).\n\nNobody receives alerts about themselves (configurable in the options).\n\n### When alerts are sent\n\n- **Home** announces arrivals as soon as someone enters. For other places the *«Alert as soon as they enter»*\n  option is off: the arrival is confirmed after the person stays stopped there for the configured minutes\n  (5 by default), and the alert shows the time they entered. You can turn it on per place.\n- **Trips** start when someone moves more than 250 m from where they were or goes faster than 8 km\u002Fh, and only\n  end after 5 minutes without moving. Stopping 2–3 minutes at a traffic light or in a jam doesn't end the trip.\n- **Companions:** arrival, departure and trip alerts wait 90 seconds. If during that time another member is with\n  the person (arrived at the same place less than 10 minutes apart, or left together and is within ~300 m),\n  that member doesn't get the alert. Speeding, low battery, check-in and SOS are always sent right away.\n\n## Entities\n\nPer member (a device with their name; entity IDs depend on your Home Assistant language, English shown):\n\n| Entity | What it shows |\n|---|---|\n| `sensor.\u003Cname>_place` | Place where they are, or the Home Assistant zone they're in, or their approximate address, or «away». Attributes: since when, zone, coordinates, accuracy, last seen |\n| `sensor.\u003Cname>_status` | `still` · `moving` · `driving`. During a trip: distance, duration and top speed so far |\n| `sensor.\u003Cname>_speed` | km\u002Fh |\n| `binary_sensor.\u003Cname>_moving` | On while a trip is in progress |\n| `binary_sensor.\u003Cname>_speeding` | Only if they have a speed limit |\n| `sensor.\u003Cname>_distance_today` | km travelled today and number of trips |\n| `sensor.\u003Cname>_last_trip` | km of the last trip; origin, destination, times, duration and top speed in attributes |\n| `sensor.\u003Cname>_distance_this_week` \u002F `_top_speed_this_week` \u002F `_speeding_this_week` | This week's stats (Monday to Sunday); last week's totals in the `last_week` attribute |\n| `sensor.\u003Cname>_phone_battery` | Battery % |\n| `button.\u003Cname>_check_in` \u002F `button.\u003Cname>_ask_for_help` | Alert the circle |\n\nPer place: `sensor.\u003Cplace>_people` (how many and who) and `binary_sensor.\u003Cplace>_occupied`.\n\n## Actions\n\n```yaml\naction: family_location.check_in\ndata:\n  entity_id: person.james\n  message: \"Grabbing some bread\"\n```\n\n```yaml\naction: family_location.sos\ndata:\n  entity_id: person.janet\n```\n\n## Automations with the event\n\n```yaml\ntriggers:\n  - trigger: event\n    event_type: family_location_event\n    event_data:\n      type: arrive\n      place: School\nactions:\n  - action: light.turn_on\n    target:\n      entity_id: light.porch\n```\n\nTypes: `arrive`, `leave`, `trip_start`, `trip_end`, `speeding`, `low_battery`, `check_in`, `sos`. The event\nincludes `member`, `entity_id`, `place`, `latitude`, `longitude` and the trip or speed data.\n\n## Example card\n\n```yaml\ntype: vertical-stack\ncards:\n  - type: map\n    entities:\n      - person.james\n      - person.janet\n    hours_to_show: 12\n  - type: entities\n    entities:\n      - sensor.james_place\n      - sensor.james_status\n      - sensor.james_speed\n      - sensor.james_last_trip\n      - sensor.janet_place\n      - sensor.janet_status\n  - type: horizontal-stack\n    cards:\n      - type: button\n        entity: button.james_check_in\n        tap_action: {action: toggle}\n      - type: button\n        entity: button.james_ask_for_help\n        hold_action: {action: toggle}\n        tap_action: {action: none}\n```\n\nHome Assistant keeps the location history: the map card with `hours_to_show` shows the route.\n\n## Map card\n\nThe integration includes its own map card. Each place is drawn as a semi-transparent circle with its real\nradius, and each person as their picture (or initials). Tapping someone shows where they are, whether they're\nstill or driving, their battery and when their phone last reported. Nothing to install: the card is loaded\nautomatically once the integration is set up (reload the page or the app after updating).\n\n```yaml\ntype: custom:family-location-map-card\npeople:\n  - person.james\n  - entity: person.janet\n    color: \"#db2777\"\nplaces:            # place names, Family Location sensors or Home Assistant zones\n  - Home\n  - entity: zone.office\n    color: \"#7c3aed\"\n```\n\n| Option | Default | |\n|---|---|---|\n| `people` | every `person` with a location | `person.*` or `device_tracker.*`, optionally with `name` and `color` |\n| `places` | every Family Location place | a place name, a `sensor.\u003Cplace>_people`, or any `zone.*`, optionally with `name` and `color` |\n| `opacity` | `0.2` | fill opacity of the circles (0–1) |\n| `min_circle_px` | `10` | zoomed out, small places are drawn with this radius in pixels so they stay visible |\n| `labels` | `true` | place names under the circles |\n| `height` | `400` | height in pixels (in a panel view it takes the whole screen) |\n| `dark_mode` | `auto` | `auto` follows Home Assistant, or `light` \u002F `dark` |\n| `fit` | `all` | `people` centers the map on the people only |\n| `tile_url` | Home Assistant's tile proxy | another tile provider, e.g. `https:\u002F\u002Ftiles.example.com\u002F{z}\u002F{x}\u002F{y}.png` |\n| `tile_url_dark` | | dark tiles for that provider (without it, the light ones are shown with inverted colors) |\n| `tile_attribution` | | attribution text (HTML) for that provider |\n| `title`, `language` | | card title; `es` or `en` (by default, the user's language) |\n\nBy default the map tiles come through **Home Assistant's own tile proxy**, the same one its built-in map card\nuses: Home Assistant fetches [OpenStreetMap](https:\u002F\u002Fwww.openstreetmap.org\u002Fcopyright) tiles on the browser's\nbehalf, so they work locally and through Nabu Casa or any other remote URL, with no API keys. OpenStreetMap\nsees the area being displayed, not where your family is. In dark mode the tiles are shown with inverted colors.\nOn a Home Assistant version without that proxy, the card loads OpenStreetMap's tiles directly, which works on\nthe local network but not through shared domains such as `ui.nabu.casa`. Respect your provider's usage policy\nwhen you set `tile_url`.\n\n### Weekly leaderboard\n\n`sensor.\u003Ccircle>_weekly_leaderboard` shows who drove the most this week, with the full ranking in its\n`ranking` attribute (plus `fastest` and `most_speeding`). A Markdown card:\n\n```yaml\ntype: markdown\ntitle: 🏆 This week\ncontent: >\n  {% for r in state_attr('sensor.family_weekly_leaderboard', 'ranking') %}\n  **{{ r.position }}. {{ r.name }}** · {{ r.distance_km }} km · {{ r.trips }} trips ·\n  top {{ r.max_speed_kmh }} km\u002Fh · {{ r.speeding }} speeding\n  {% endfor %}\n```\n\n## Making «Ask for help» ring on silent\n\nEach phone that receives alerts has to allow it once:\n\n- **iPhone:** *Settings → Notifications → Home Assistant →* turn on **Critical Alerts**.\n- **Android:** the alert plays as an alarm, at the **alarm volume**, even with the ringer off (the\n  `alarm_stream` channel). After the first one arrives:\n  1. *Settings → Apps → Home Assistant → Notifications →* open the **alarm_stream** channel and turn on\n     **Override Do Not Disturb**.\n  2. In *Settings → Sound → Do Not Disturb*, make sure **Alarms** are allowed (they're not in «Total silence»).\n  3. Keep the alarm volume up: that's the volume it rings at.\n\nSend a test with `family_location.sos` (or the button) to check it rings.\n\n## Privacy\n\n**Always local.** Tracking, places, arrivals and departures, trips, speeding with a single limit, battery,\nweekly stats, notifications (they go from your Home Assistant to your family's phones through the Companion\napp's usual push service) and the history all stay in your Home Assistant. No account, no analytics.\n\n**Sent to OpenStreetMap's Nominatim service**, only in these cases:\n\n| What is sent | When | Automatic? | Controlled by |\n|---|---|---|---|\n| The address you type, plus a search area rounded to ~25 km around your home (never its exact location) | When you add or edit a place by address | No, you start it | *Use OpenStreetMap (Nominatim)* |\n| A member's coordinates | When they're stopped away from their places and zones, and in check-ins and SOS alerts outside them, to show an approximate address | Yes | *Show the address when someone is away from their places* (and the master switch) |\n| A member's coordinates | Only for members with a **highway** speed limit, while they're going faster than their street limit, to know whether they're on a highway (cached per ~100 m stretch) | Yes | The member's highway limit (0 = never) and the master switch |\n\n- **Master switch:** *Configure → Use OpenStreetMap (Nominatim)*. When off, no location or address leaves your\n  Home Assistant. What still works: everything above under «always local»; places are marked on the map or\n  taken from a zone instead of looked up by address; the place sensor shows the place, the zone or «away»\n  instead of a street address; check-ins and SOS alerts carry the map link instead of an address; and the\n  street limit applies everywhere (the highway limit is ignored).\n- **Self-hosted Nominatim:** set *Self-hosted Nominatim server* (e.g. `http:\u002F\u002F192.168.1.10:8080`) and nothing\n  goes to the public server.\n- Requests to the public server are limited to one per second and identify this integration, as its\n  [usage policy](https:\u002F\u002Foperations.osmfoundation.org\u002Fpolicies\u002Fnominatim\u002F) asks. That policy also asks not to\n  send personal data: no names or identities are ever sent, only coordinates or the address you typed, but if\n  you consider even that personal, turn the master switch off or use your own server.\n- **Map card:** the tiles come through Home Assistant's own tile proxy; OpenStreetMap sees the map area being\n  displayed, not where your family is.\n\n## Not supported (yet)\n\n- Crash detection: it needs real-time phone sensors that the Home Assistant app doesn't expose.\n- Alerts are only as timely as each phone's location updates: if a phone reports every 5 minutes, alerts arrive\n  with that delay.\n\n## Credits\n\n- The map card draws with [Leaflet](https:\u002F\u002Fleafletjs.com) 1.9.4 (BSD 2-Clause License,\n  © Volodymyr Agafonkin and CloudMade), included in\n  `custom_components\u002Ffamily_location\u002Ffrontend\u002Fleaflet\u002F` with its license.\n- Map data and tiles © [OpenStreetMap](https:\u002F\u002Fwww.openstreetmap.org\u002Fcopyright) contributors.\n\n## Contributing\n\nIssues and pull requests are welcome. Run the tests with:\n\n```bash\npip install pytest-homeassistant-custom-component\npytest tests\n```\n","这是一个为 Home Assistant 设计的家庭位置追踪集成，用以替代 Life360 等云端家庭定位应用。它基于 Home Assistant Companion App 获取手机位置，本地计算到达\u002F离开提醒、行程统计、超速预警、低电量通知、一键签到与紧急求助等功能，所有数据处理均在本地完成，无需账户或订阅。支持地址反查（OpenStreetMap）、多条件告警过滤（如同行不触发通知）、5分钟停留确认防误报等特性。适用于注重隐私、已有 Home Assistant 生态的家庭用户，用于日常看护、儿童监护、老人照护及家庭协同场景。",2,"2026-11-24 04:53:14","CREATED_QUERY"]