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.
It uses: POST {HA_BASE}/api/states/<entity_id> with Authorization: Bearer
Exposes a read-only ContentProvider: content://com.xiaomiwatchapp.watchbridge.settings/settings
Columns:
- server_base_url
- server_api_key
- ha_base_url
- ha_token
Uses:
- POST /chat (message, use_web)
- POST /tts (text, language) Authorization: Bearer if provided. (is necessary in order to work)
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)
This build uses POST /chat_tts_json to get both answer text and audio_b64 (WAV base64) in one call.