Skip to content

CE-Timmer/Watch-Ai-Bridge-Android

Repository files navigation

WatchBridge (Android)

WARNING! This app is still in Development and is far from finished. It may or may not work yet.

At this moment i am using the notify for xiaomi app to connect to the watch, i am planning on releasing my own app in the future. You need to host your own local ollama model and an api for it to be able to use this app service.

A minimal Android app to store:

  • AI server URL + API key
  • Home Assistant URL + Long-Lived Access Token

And:

  • Push a test sensor into Home Assistant via REST
  • Run a foreground "bridge" service intended to receive audio chunks (e.g., from a connector app) and forward them to a webrtc server.

Home Assistant REST (optional)

It uses: POST {HA_BASE}/api/states/<entity_id> with Authorization: Bearer

Settings Provider

Exposes a read-only ContentProvider: content://com.xiaomiwatchapp.watchbridge.settings/settings

Columns:

  • server_base_url
  • server_api_key
  • ha_base_url
  • ha_token

AI Assistant API

Uses:

  • POST /chat (message, use_web)
  • POST /tts (text, language) Authorization: Bearer if provided. (is necessary in order to work)

WebRTC (server as peer)

Start RTC in the app to keep the phone in "call audio" mode. Server must provide an offer/answer endpoint:

POST /rtc/offer Request: { "sdp": "" } Response: { "sdp": "" } (or raw SDP string)

Chat+TTS JSON

This build uses POST /chat_tts_json to get both answer text and audio_b64 (WAV base64) in one call.

About

An android app to make your redmi watch connect to a webrtc via notify for xiaomi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors