Skip to content

About

Unofficial Home Assistant integration for ANIO kids smartwatches

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Repository files navigation

ANIO Smartwatch Integration for Home Assistant

hacs_badge GitHub Release License

A Home Assistant custom integration for ANIO children's smartwatches. Monitor your child's watch status, location, and communicate directly through Home Assistant.

Features

  • Status Monitoring - Battery level, signal strength, online status, last seen timestamp
  • Location Tracking - Watch location on the Home Assistant map, Locate Now for a fresh position within about a minute, and Explorer Mode (every 5 minutes for an hour)
  • Geofences - Presence sensor per geofence defined in the ANIO app, plus a switch for ANIO's monitoring
  • School Way and Silence Times - Sensors that are on while a school way or silence time is running, and a switch per entry, e.g. to pause them during the school holidays
  • Messaging - Send text messages (up to 95 characters) and emoji messages to the watch
  • Events - Home Assistant events for messages from the watch and for ANIO's alerts (geofence entered/left, low battery)
  • Alarms - Next alarm sensor, actions to create and delete alarms
  • Watch Settings - Ring profile, all silence times on/off, tracking mode
  • Device Control - Ring button to find the watch, Power Off button
  • Diagnostics - Downloadable diagnostics without personal data

Supported Devices

  • ANIO 5 Smartwatch
  • ANIO 6 Smartwatch (Generation 6)

Requirements

  • Home Assistant 2024.12.0 or newer
  • ANIO account (same credentials used in the ANIO mobile app)
  • HACS (Home Assistant Community Store) for easy installation

Installation

Via HACS (Recommended)

The integration is part of the HACS default repositories, so no custom repository is needed.

  1. Open HACS in your Home Assistant instance
  2. Search for "ANIO Smartwatch" and open it
  3. Click "Download"
  4. Restart Home Assistant

Or with one click: Open in HACS

Manual Installation

  1. Download the latest release from the releases page
  2. Extract and copy the custom_components/anio folder to your Home Assistant config/custom_components/ directory
  3. Restart Home Assistant

Configuration

  1. Go to Settings → Devices & Services
  2. Click + Add Integration
  3. Search for "ANIO Smartwatch"
  4. Enter your ANIO account email and password
  5. If two-factor authentication is enabled, enter the verification code sent to your email/phone
  6. The integration will automatically discover all watches linked to your account

Options

After setup, you can configure the following options:

Option Default Description
Scan Interval 300s How often to poll the ANIO API (60-300 seconds)

Location, battery, messages and ANIO's alerts are fetched at every scan. Alarms, silence and school way times and geofences rarely change, so they are only fetched every 30 minutes, and right away after changing them in Home Assistant. A school way time, silence time or geofence added in the ANIO app can therefore take up to 30 minutes to appear.

Entities

For each watch, the integration creates the following entities. Their names are translated (English and German). The entity IDs below are the English ones; a new installation with Home Assistant set to German gets German IDs (e.g. sensor.<name>_akku). Existing installations keep their entity IDs.

Watches added to the ANIO account and geofences created in the ANIO app get their entities automatically with the next update. A geofence deleted in the app makes its sensor unavailable; you can then delete the entity. A watch that is no longer in the account can be deleted in Home Assistant (device page → ⋮ → Delete).

Sensors

Entity Type Description
sensor.<name>_battery Sensor Battery percentage (0-100%), unknown while no location is available
sensor.<name>_signal_strength Sensor Mobile signal strength (%)
sensor.<name>_last_seen Sensor Timestamp of last communication
sensor.<name>_last_message Sensor Text of the last message sent by the watch (attributes: sender, type, created_at, is_read)
sensor.<name>_next_alarm Sensor Time of the alarm that rings next, taking its weekdays into account. Attributes: next_alarm_at (date and time), next_alarm_days, alarm_count, enabled_count
sensor.<name>_tracking_mode Sensor Current tracking mode reported by the watch: NORMAL, SCHOOLWAY or EXPLORER

Binary Sensors

Entity Type Description
binary_sensor.<name>_online Binary Sensor Whether watch is currently online
binary_sensor.<name>_school_way Binary Sensor On while one of the school way times set in the ANIO app is running (the watch then locates every minute). Attribute periods: start, end, days
binary_sensor.<name>_silence_active Binary Sensor "Silence Time Active": on while one of the enabled silence times is running, so the watch is silent. Attribute periods: start, end, days
binary_sensor.<name>_at_<geofence> Binary Sensor One per geofence set up in the ANIO app; on while the watch's last position is inside. Attributes: radius, ANIO's monitoring window (active_from/active_until, local time), enabled_in_anio

Device Tracker

Entity Type Description
device_tracker.<name>_location Device Tracker Location for map display. Attribute location_source: GPS or WIFI

Buttons

Entity Type Description
button.<name>_locate_now Button Locate Now ("Jetzt orten", "Einmalortung" in the ANIO app): the watch locates silently, the new position arrives within about a minute and Home Assistant fetches it after 70 seconds. Can be pressed once a minute
button.<name>_locate Button Ring: the watch rings and vibrates loudly ("Uhr finden" in the ANIO app). It does not request a new location
button.<name>_power_off Button Remotely power off the watch
button.<name>_flower Button Send a "flower" (reward heart) to the watch. Only works on watches with reward hearts; the ANIO 6 has none, so there the button is disabled by default and has no effect (#5)

Switch

Entity Type Description
switch.<name>_explorer_mode Switch Explorer Mode: the watch locates every 5 minutes for an hour, then switches back on its own. Uses noticeably more battery. On while the tracking mode is EXPLORER
switch.<name>_school_way_<period> Switch One per school way time, named after its times and days (e.g. "School way 07:35–08:05 Mon–Fri"). Turns this school way time on or off, e.g. during the school holidays; times and days stay as set in the app. New and deleted entries are picked up automatically
switch.<name>_silence_time_<period> Switch The same for each silence time ("Silence time 08:00–16:00 Mon–Thu")
switch.<name>_monitor_<geofence> Switch Whether ANIO monitors a geofence and sends its alerts ("enabled" in the app). The "At …" sensor shows presence either way
switch.<name>_silence_time Switch "Silence Times": whether the silence times configured in the ANIO app apply at all (on/off for all of them). It does not mean the watch is silent right now

Select

Entity Type Description
select.<name>_ring_profile Select Ring profile: ring_and_vibrate, vibrate_only or silent (shown as "Ring and vibrate" etc., translated)

Notify

Entity Type Description
notify.<name>_message Notify Send messages to the watch, see Send Message

Services

Send Message

Send a text message with the standard notify action:

service: notify.send_message
target:
  entity_id: notify.<watch_name>_message
data:
  message: "Hello from Home Assistant!"

notify.send_message only supports plain text. To send an emoji or set the sender name, use anio.send_message:

service: anio.send_message
target:
  entity_id: notify.<watch_name>_message
data:
  message: "E01"
  message_type: emoji

anio.send_message Service Data

Parameter Required Description
message Yes Text message (max 95 chars) or emoji code (E01-E09)
message_type No text (default) or emoji
username No Sender name shown on the watch, default Home Assistant

The watch needs a sender name to display a message: without one, text arrives as a digit code and emojis as a heart. The integration therefore always sends one, also for notify.send_message (Home Assistant).

Emoji Codes

The same emojis as in the ANIO app's emoji bar:

Code Emoji Code Emoji Code Emoji
E01 🙂 E04 🙁 E07 👎
E02 😘 E05 😁 E08 👍
E03 😎 E06 😛 E09 ❤️

Alarms

anio.create_alarm and anio.delete_alarm target a watch (device), not an entity. Times are local. The Next Alarm sensor shows the next one.

# Wake-up alarm on school days
service: anio.create_alarm
data:
  device_id: 0123456789abcdef0123456789abcdef  # pick the watch in the UI
  time: "06:30"
  days: [mon, tue, wed, thu, fri]  # default; also sat, sun
  enabled: true  # default

# Delete the alarm(s) at 06:30
service: anio.delete_alarm
data:
  device_id: 0123456789abcdef0123456789abcdef
  time: "06:30"

Events

Message Received

When a message arrives from the watch, the integration fires an anio_message_received event. Messages that already existed when Home Assistant started are not reported again. content is the text, the emoji itself for emoji messages, or empty for voice messages:

event_type: anio_message_received
data:
  device_id: "abc123def456"
  device_name: "Kids Watch"
  message_id: "msg789"
  content: "Hello!"
  sender: "DEVICE"  # WATCH or DEVICE, as reported by the ANIO API
  message_type: "TEXT"
  timestamp: "2024-01-15T10:30:00+00:00"

ANIO Alerts

ANIO's own alerts, the ones the ANIO app shows as notifications, are fired as anio_activity events. Geofence alerts come from ANIO itself, i.e. they follow the geofence's monitoring window set in the app. Alerts that already existed when Home Assistant started are not reported again.

event_type: anio_activity
data:
  device_id: "abc123def456"
  device_name: "Kids Watch"
  activity_id: "act123"
  type: "GEOFENCE_ENTERED"  # also GEOFENCE_LEFT, LOW_BATTERY, ...
  text: "Kids Watch has arrived at School"  # as shown in the ANIO app
  geofence_id: "geo456"     # null for alerts without a geofence
  geofence_name: "School"
  timestamp: "2024-01-15T07:52:00+00:00"

Example Automations

Arrived at School (ANIO alert)

automation:
  - alias: "Kids arrived at school"
    trigger:
      - platform: event
        event_type: anio_activity
        event_data:
          type: GEOFENCE_ENTERED
          geofence_name: School
    action:
      - service: notify.mobile_app_phone
        data:
          message: "{{ trigger.event.data.text }}"

Low Battery Notification

automation:
  - alias: "ANIO Watch Low Battery"
    trigger:
      - platform: numeric_state
        entity_id: sensor.kids_watch_battery
        below: 20
    action:
      - service: notify.mobile_app_phone
        data:
          title: "Watch Battery Low"
          message: "{{ state_attr('sensor.kids_watch_battery', 'friendly_name') }} is at {{ states('sensor.kids_watch_battery') }}%"

Send Message When Leaving Home

automation:
  - alias: "Send Goodbye to Watch"
    trigger:
      - platform: state
        entity_id: person.parent
        from: "home"
    action:
      - service: anio.send_message
        target:
          entity_id: notify.kids_watch_message
        data:
          message: "Bye! Have a great day!"
          username: "Mom"

Notify When Watch Goes Offline

automation:
  - alias: "Watch Offline Alert"
    trigger:
      - platform: state
        entity_id: binary_sensor.kids_watch_online
        to: "off"
        for:
          minutes: 10
    action:
      - service: notify.mobile_app_phone
        data:
          title: "Watch Offline"
          message: "Kids watch has been offline for 10 minutes"

School Holidays: Pause School Way and Silence Times

Uses a holiday calendar (e.g. from the Holiday integration or an ICS calendar with your state's school holidays). Entity IDs depend on your times and language; look them up on the watch's device page.

automation:
  - alias: "Watch: school holidays"
    trigger:
      - platform: calendar
        event: start
        entity_id: calendar.school_holidays
        id: holidays
      - platform: calendar
        event: end
        entity_id: calendar.school_holidays
        id: school
    action:
      - service: "switch.turn_{{ 'off' if trigger.id == 'holidays' else 'on' }}"
        target:
          entity_id:
            - switch.kids_watch_school_way_07_35_08_05_mon_fri
            - switch.kids_watch_silence_time_08_00_16_00_mon_thu

Geofence Arrival Notification

automation:
  - alias: "Arrived at School"
    trigger:
      - platform: state
        entity_id: binary_sensor.kids_watch_at_school
        to: "on"
    action:
      - service: notify.mobile_app_phone
        data:
          message: "Kids arrived at school safely!"

React to Incoming Messages

automation:
  - alias: "Forward Watch Messages"
    trigger:
      - platform: event
        event_type: anio_message_received
    action:
      - service: notify.mobile_app_phone
        data:
          title: "Message from {{ trigger.event.data.device_name }}"
          message: "{{ trigger.event.data.content }}"

Troubleshooting

Diagnostics

When reporting a problem, please attach the diagnostics: Settings → Devices & Services → ANIO Smartwatch → ⋮ → Download diagnostics. They contain firmware, capabilities, timestamps and error messages; e-mail, tokens, names, phone numbers, coordinates and message texts are removed.

Authentication Failed

  • Verify your email and password are correct
  • Check if your account requires two-factor authentication
  • Try logging into the ANIO mobile app to confirm your credentials work

Watch Not Appearing

  • Ensure the watch is properly set up in the ANIO mobile app
  • Check that the watch is powered on and has network connectivity
  • Wait for the next polling interval or restart the integration

Location Not Updating

  • The ANIO 6 reports its location every 60 minutes by default to save battery, so the position in Home Assistant can be up to an hour old
  • For a fresh position, press Locate Now (within about 60 seconds) or turn on Explorer Mode (every 5 minutes for an hour); school way times locate every minute. Opening the ANIO app also triggers a location update
  • The Ring button only makes the watch ring; it does not locate it
  • Check if "Locating" is enabled in the watch settings via the ANIO app

Raspberry Pi with an SD Card

The integration keeps writes to the disk low: it stores nothing of its own, saves the login only when ANIO issues a new refresh token, and keeps settings-like attributes (geofence center and radius, school way and silence times, alarm counts) out of the recorder database. Sensors only cause a write when their value changes.

Two sensors change with almost every update: Last Seen (the watch reports about every 5 minutes) and Signal Strength. If you don't need their history, exclude them from the recorder:

recorder:
  exclude:
    entity_globs:
      - sensor.*_last_seen
      - sensor.*_signal_strength

With German entity IDs use sensor.*_zuletzt_gesehen and sensor.*_signalstarke.

Rate Limiting

The ANIO API has rate limits. If you receive rate limit errors:

  • Increase the scan interval in the integration options
  • Avoid pressing the Ring button too frequently; Locate Now can be pressed once a minute
  • If ANIO asks for a longer pause, the integration sends no requests until then and continues on its own

Privacy & Security

  • All communication uses HTTPS encryption
  • Credentials are stored securely in Home Assistant
  • No data is sent to third parties
  • Message texts and locations are not written to the Home Assistant log
  • The integration only accesses data for watches linked to your account
  • It has no function to listen in through the watch's microphone or to use a camera

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Disclaimer

This is an unofficial integration and is not affiliated with, endorsed by, or connected to ANIO in any way. Use at your own risk.

This integration is not meant for safety-critical use. Location, online status and geofence updates depend on the ANIO cloud and are only polled every few minutes, so they can be late or missing. In an emergency, don't rely on Home Assistant notifications alone; use the ANIO app and the watch's own SOS and call functions.

Support

About

Unofficial Home Assistant integration for ANIO kids smartwatches

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages