Reeve Docs

Docs / Reference

Mobile companion app

The companion app is a .NET MAUI Android app in mobile/. It monitors the house and sends simple commands. It is read-oriented: dashboards are display-only, and building automations is web-only. Build instructions and platform pitfalls are in mobile development.

Scope

The phone can change only a closed list of things:

  • a device's friendly name, room and favourite status
  • scene activation
  • per-capability actuation
  • adding a device through pairing
  • four baby monitor writes: starting and stopping a session, acknowledging an episode, and requesting a test alarm (see Baby monitor)

Everything else is read-only. A feature that needs authoring UI belongs in the web app.

The app runs on Android only, with a minimum of API 26. Channel membership and metadata come from the descriptor's Channels declarations. The app uses each declared channel number in state keys and commands. State never creates channels. Non-controllable channels are readable but have no toggle or system control. When device access is read-only, Android publishes no channel system controls. Other supported device types keep their system control entry, which reports current state.

Shell and lifecycle

The app has four bottom tabs: Home, Devices, Map and Settings. The app uses its own tab host, not the navigation drawer or the framework shell, so that bottom sheets can open over the tab bar. The host handles the back button and the modal stack.

Realtime connection

One lifecycle manager stops the realtime hub connection when the phone sleeps and restarts it on resume. The reconnect policy retries forever instead of giving up after four attempts as the SignalR default does. Hub trouble is logged to logcat under the tag DeviceUpdatesClient: a failed connect, a dropped connection, a reconnect that gave up and the first failed stream change of an outage.

Three things keep the connection up while the app is in the background:

  • The setting Notify me when the app is closed (Settings, This phone; off by default).
  • A live baby monitor session, because the monitor's messages use the same connection. While one runs, automation notifications reach the phone even with the setting off.
  • Nothing else. A signed-out app hangs up.

Automation notifications arrive over this connection and become OS notifications whether or not the app is visible. They are not replayed: a notification sent to a frozen phone is lost, not delayed. That is why the process has to stay running.

Muting. When the app is hidden, the client calls the hub's SetDeviceStream(false), which removes the connection from its user's device group. Automation notifications go to the user, not the group, so they still arrive. Every new server connection joins the group again, so the client applies the mute after every start and reconnect. Any other failure leaves the state uncertain, so the next change sends again. A failed unmute is also retried every five seconds, because a muted foreground app is the one state that must not persist. The controls feed holds the stream open while the panel shows.

Resync. The client raises Resynchronised when frames may have been missed: after an unmute, a reconnect or a restart, never on the first connection. The device sheet, controls feed and baby monitor reload on it at once. The home, devices and favourites tabs and the widgets reload on ListRefreshDue. After a resync caused by a hub reconnect, the client raises it once at a random moment within 5 seconds, as the web app does, so a server restart does not make every phone reload at the same instant. Any other resync raises it at once. While minimised, widgets fall back to their 15-minute refresh.

Commands. A command re-reads the device it was sent to. A toggle sends the inverse of what it shows, so a missed push would make every later tap resend the same value. After a successful command the device sheet reads the device and its history, waits two seconds and reads the device again. The controls panel reads the household once right after the command and once two seconds later, and commands in quick succession share the later read. A device that reports its write more than about two seconds after the command answered stays stale until a push, a resync or a pull-to-refresh.

A read and a push are ordered by when the phone saw them, never by their timestamps. A post-command read takes every field from the server, except one the phone took from a push or a later read after this read was sent. State, availability, the capability descriptor and each command's status are judged separately. A pull-to-refresh, a resync and opening the panel apply the server's answer whole. A failed post-command read keeps the last known state. A sheet that has left the screen applies nothing until it is shown and loaded again.

Background service

One foreground service, ReeveBackgroundService, runs every background job. Core evaluates three jobs and gives the head the set in one call:

  1. Baby monitor, while a session is live. It is counted before the sign-in check, so a 401 at night does not stop the process that is about to alarm.
  2. Location, when signed in, sharing is consented and fine location is granted.
  3. Delivery, when Notify me when the app is closed is on and the user is signed in.

The service starts only while the app is visible and is retried on the next resume if Android refused the start. It stops when the set is empty and is never stopped with StopService, which can tear it down before it reaches StartForeground. It declares only the foreground types its jobs justify, and posts one notification naming them: "Baby monitor is on" for the monitor alone, and the location title whenever location runs.

  • The service type is specialUse, not dataSync, which Android 15 limits to six hours per day. The manifest declares it as location|specialUse. Below API 34 there is no specialUse, so a delivery-only service runs untyped.
  • The service is NotSticky, because nothing polls or connects without a window.
  • The notification permission is requested at startup and again on every resume. Android silently drops everything an app posts without it, including the service's own ongoing notification.

Session and storage

Sign-in gives an HttpOnly session cookie. One shared cookie container carries it for every API client and the realtime hub, and it is mirrored into platform secure storage so a cold start is already authenticated. The client holds no access or refresh token.

  • The last dashboard and per-device snapshots are cached on disk so the house still renders with the server unreachable. Signing out clears that cache and every external surface, because the cached dashboard is a full list of accessible devices with no revocation signal.

Certificates

The app trusts the phone's system certificate authorities and any CA the user installed. Cleartext HTTP is refused with no exceptions. A server behind a private CA (a home PKI, Caddy's internal CA) works once its root certificate is installed on the phone:

  1. Copy the root certificate (.crt or .cer, not the server's own certificate) to the phone.
  2. Install it under Settings, Security, Encryption & credentials, Install a certificate, CA certificate. The path varies by vendor. Searching Settings for "CA certificate" finds it.
  3. Android then shows a "network may be monitored" notice, which is expected.

A self-signed server certificate works this way only when it is itself marked as a CA (basic constraints CA:TRUE). Android refuses to install any other certificate as a CA certificate.

Fingerprint unlock

With Unlock with fingerprint on, the prompt appears on a cold start and on a resume after the app was in the background for five minutes or longer, measured on a clock that keeps running while the phone sleeps. A blank cover hides every screen until the prompt is answered. The prompt starts once the app is in the foreground, never inside the resume callback, where Android drops it without an answer.

The lock belongs to the app window that shows the cover. A window starts locked and stays locked until its unlock is answered or the session ends. A window destroyed while locked drops what waited on it, and the next window locks on its own. A notification, shortcut or widget tap waits up to three minutes for the unlock and then opens its screen. Its 15-second freshness window starts when the lock opens.

The prompt's answer decides what happens next:

Answer Result
A fingerprint The app opens.
Too many wrong fingerprints (the sensor locked for a while, or until the PIN is entered) The user is signed out, so the password is needed.
Cancel, Back, a tap outside the prompt, or Back on the cover The app goes to the background and keeps the cover. The process, notifications, location sharing and baby monitor sessions keep running. The cover shows Unlock and Sign out.
A prompt the system ended (an incoming call, the app leaving the foreground, a timeout, the sensor busy or failing) The user is neither signed out nor let in. The cover shows Unlock and Sign out.

Before prompting, the app asks the phone whether a fingerprint can be used. A phone with no sensor, no enrolled fingerprint, or a sensor that is unavailable or awaiting a security update skips the prompt and the user gets in.

Background location

The Share my location setting decides whether position reporting runs. When it is on, the background service's location job keeps the process alive so the GPS loop survives backgrounding. The app does not stop it when minimised, because reporting only while the app is open makes the phone read stale within a minute and geofence automations fire late or never.

The loop follows consent alone, because it is what asks for the permission. A refused request ends the loop, and the first resume that finds the grant starts it again. The service job also needs the grant and a signed-in session, and joins the service on the first resume after both hold. Foreground and background location are separate grants, requested in that order.

  • A job is added only while the app is visible. Dropping one (a sign-out, a switch turned off) may happen in the background.
  • Each installation reports with its persistent installation id as the reporter label, so two phones of one user are two reporters, and a geofence crossing is computed from each one's own previous fix.
  • When the account already has 10 location reporters, the server refuses a report with 409 and errorCode location.reporter-limit. Only that code is the refusal. Any other 409, such as a lost race between two writes, is retried like an outage and the fix stays queued. On the refusal, the phone drops its queued fixes, sends nothing for 15 minutes and tries again with the next fix. A deleted presence device therefore frees the slot with no action on the phone. Until a report is accepted, the Share my location row in Settings shows the server's reason, which names the remedy: delete a presence device the account no longer uses. Signing out, a server-address change and turning sharing off forget the refusal.
  • A user who declines location sharing gets no presence and no geofence automations.

Baby monitor

This is the phone side of the baby monitor. The session screen closes with a 48 dp close button. One card shows the phone-wide status, and each room is a card with its latest picture and its button.

  • One room's button reads "Start watching" or "Stop watching". With two or more rooms, each reads Start or Stop, and "Start last rooms" starts the rooms that ran last time, or all of them when none of those remains, up to four. The message names every room left out.
  • A room being watched shows its live picture as a tile and no still.
  • The still says when it was taken ("Last picture 14:02"). It is fetched only for a room nobody watches, and only after Show picture is tapped. With Auto-preview cameras on it is fetched each time the page appears, and leaving the page or starting the room drops it. It is read through a 4 MB bound. A 404 means "no snapshot".

Room state

Each room has one state, and the headline, the Stop controls and the still fetch all read only it.

State When Light Stop Still
Idle No live session green row shows Start fetched
Starting Phase Starting info row Stop no
Watching Phase Active, camera and picture healthy green row Stop no
Alarm Phase Alarming, or an alarm awaiting this phone's OK red row Stop no
CameraLost Connection lost for camera health, or Active with the camera offline or no picture red row Stop no
Offline Connection lost for server, sign-in or watcher loss red row Stop no
FailedToLoad The room list did not load (page level) amber none of its own none

The card shows the worst room state together with the server, watching and readiness lights. It reads "Watching" or "Ready to watch" only when nothing is worse, and a failed room load reads "Can't load your rooms". Stop all shows whenever any session runs, with any number of rows and with the room list failed.

Staying alive

  • A live session adds the baby monitor job to the background service and holds a partial wake lock (reeve:babymonitor) from the first start to the last stop. Sessions start only from a visible screen, which gives the service the while-in-use capability that Android 17's background-audio rule needs.
  • Dead-man switch. Every successful contact re-arms an AlarmManager.setAlarmClock alarm 180 seconds ahead. When it fires in a process that still runs a session, it posts the problem notification before it awaits anything. In a process with no session, it ends the orphaned sessions with one "stopped watching" notice. It never plays a sound. App start-up ends orphans the same way. A boot receiver posts "the phone restarted" when a session was running before the reboot, and a package-replaced receiver posts "Reeve was updated". Boot and update share the orphan reconcile, so a live session is never touched, a ring's notification is withdrawn and a second notice is not added. Neither restarts monitoring. The dead-man is disarmed when nothing is live. Starting a session withdraws the stop notices (closed, restarted, updated) once every profile of the previous run that still exists is watching again.

Notifications and the alarm

Channel Use
reeve.babymonitor.alert.v{n} The alarm. High importance, no sound of its own (the player is the sound), Do Not Disturb bypass.
reeve.babymonitor.status The one problem notification. Default importance, so it follows silent mode and Do Not Disturb and never peeks.
reeve.babymonitor.notice Notices. Default importance.

Do Not Disturb bypass sticks only to a channel created with notification-policy access. After a grant, the readiness check replaces the alarm channel with the next version, and only while no alarm notification shows. Readiness tells a blocked or missing alarm channel ("turned off") from one lowered below high importance ("set too low" to open the full-screen alarm). Both are red.

Notification ids are 6101 to 6104 for a profile's alarm, 6200 to 6249 for notices (skipping ids still showing) and 6300 for the problem notification. Automation notifications skip 6100 to 6399.

The alarm is a looping USAGE_ALARM player with alarm vibration, capped at 60 seconds per ring. Where canUseFullScreenIntent() allows it, a native full-screen activity (not the MAUI activity) shows over the lock screen. Otherwise a heads-up notification shows, and the sound plays either way.

Alarm level. At each start the player reads the alarm stream's index, maximum, lowest step and decibel curve (getStreamVolumeDb on the built-in speaker, API 28 and later) and sets its own volume to the gain computed for the configured level. Android 8.x has no curve and uses a fixed one that is linear in decibels. The app never calls setStreamVolume, so a kill mid-ring leaves no system state behind. The level is relative to the alarm stream, so the system alarm volume is a ceiling, and the readiness volume light says when the stream is below the level. Its fix raises the stream one step with the system volume panel showing.

The settings slider has 41 positions: every percent from 0 to 25, then steps of 5 up to 100. A number field beside it takes an integer from 0 to 100, stores it as typed, and ignores anything else. It shows the stored level again on Done, on losing focus and when the page closes. A level of 0 % plays no sound, only vibration, and asks for no audio focus. The readiness volume light is amber for it. Below the stream's lowest non-zero step, where the decibel curve ends, the gain continues with amplitude proportional to the level: the target is the lowest step's decibels plus 20·log10(p / p_low), where p_low is the lowest step as a percent of the maximum.

Known effects

  • The dead-man shows as the phone's next alarm all night. setAlarmClock is what fires reliably in Doze, and the system treats it as the user's alarm clock. The status-bar alarm icon stays on, and the lock screen, clock widgets and a paired watch show a time about three minutes ahead instead of the real morning alarm. A manual clock jump of three minutes or more fires it early and posts a false "not watching".
  • On Android 14 and later the alarm notification can be swiped away although it is ongoing. Its buttons go with it, but the alarm activity and the session screen still acknowledge.

Settings and About

Settings is grouped cards: Account, Appearance, This phone, Home server and About, with Sign out in the error tone.

  • Theme offers System, Light and Dark. System lets the phone's own scheme decide, and a stored choice is applied before any page exists. The default is Dark.
  • The three Quick Settings scene tiles are one row ("1 of 3 set · noc") that opens a sheet listing the slots. Each slot's picker replaces the sheet and returns to it.
  • Ecosystems and integration actions are in the Home server card, each only for an account that may use them.
  • Auto-preview cameras (This phone; per handset, off by default) decides whether a reachable camera tile and an idle baby-monitor room load a still without being asked. Off, they show a placeholder and request nothing until tapped. A tile on screen follows a change at once, and one whose preview the user started keeps it. The camera sheet is a surface the user opened to watch, so it loads either way. A camera with privacy on offers no preview in either mode.

About shows the app version and build, the server version, the privacy line and an open-source licences sheet.

  • The server version is the version of GET /api/system/status, read each time Settings appears with its own 8-second deadline. It shows the number without build metadata, or "Unavailable" when the request fails or times out, never an alert.
  • The Home server row's dot and word follow the same read: Connected when the server answered with any status below 500, Not reachable when it did not, and Checking until known. It never says Not reachable before the first answer.
  • The APK includes Google Play services libraries, which are proprietary (Android Software Development Kit terms, and for Home APIs the Google Home APIs developer terms), so the APK binary is not entirely free software. The Reeve source code is MIT. The generated assets/THIRD-PARTY-NOTICES.md carries that statement near the top.

Actuation and confirmation

Critical-action confirmation is set per capability on the server and is off by default. An administrator marks individual capabilities of a device as critical in the web app, and a critical capability needs two taps everywhere it can be actuated. The flag is data, never a name heuristic.

  • Every actuation path for a critical capability goes through one confirm gate, and the device sheet shows one confirmation pill for every sheet kind. The pill has its own row under the sheet body, so it covers nothing.
  • The question is the capability key together with the exact canonical value. Only an explicit commit asks: Apply, Return, a slider or dial release, a tap, a chip or a stepper press. A first commit of a value arms it and shows the pill. A second explicit commit of the same value, or the pill, answers, and sends the stored value rather than a recomputed one. A different value asks afresh. The question lapses after 4 seconds, and the gate does not depend on elapsed time otherwise.
  • The pill reads "Set <part label> to <value>?", with the value formatted as the rows show it (unit, option label, colour swatch). A vacuum verb reads "Confirm Return to base?".
  • Editing the armed part is not a commit. An edit to another value (a colour picked, a number or text typed) withdraws the question: the pill hides and the row shows the edit as an unsent draft, and the next explicit commit of that value asks again. An edit back to the reported value withdraws the question and clears the draft.
  • A state push changes neither the question nor the draft. The pill keeps naming the armed value, and a typed or picked draft stays. A lapse withdraws the question and returns the row to the reported value, clearing a typed draft. Loading another device drops what was armed.
  • Only a discrete action actuates a critical capability: a chip, a button, a stepper press, or a slider or dial release. A drag in flight sends nothing. The PTZ pad leaves a critical axis disabled, including the baby monitor's pad. A stepper of a critical capability counts from the reported value, so pressing the same stepper twice gives the same value.
  • An account that cannot control the device neither arms nor sends.
  • A device whose flags cannot be read (no capability descriptor) is treated as critical throughout: the sheet asks, the Device Controls panel marks every command key critical, and a tile or favourite offers no one-tap switch.

The generic Control sheet shows every part the device declares: a dial or vessel for the first number, a primary button (the device's own .isOn or .isOpen when it declares exactly one, else "Apply" for the vessel), the colour surface, and a row for each other enum (chips), number (stepper, or an entry without a range), text and on/off. An account that cannot control the device sees the rows read-only, without the dial, button or colour surface. A channel row and a second colour are not rendered here.

A control shows and sends the value the device reported, verbatim. Only the control's geometry (fill fraction, needle angle) may clamp. A number with no resolved range is never shown as a percentage or any other invented scale. For a lock, "on" means locked. Locks and security devices always require authentication on the system controls panel, while lights, switches, outlets, fans and covers do not. Channel and gang numbers are device-reported and may start at one.

Scenes can be listed and run. There is no undo and no prior-state capture. A strip reporting how many things changed fades after a few seconds.

Tiles and Basic visibility

Every tile has a category, an icon, a tone and, where the device has one, a hero reading above a single status line. Everything comes from the capabilities the device declares.

  • Category. The normalised device type, else the category key, else Unknown, as on the web. A switch or outlet the household set to present as a light is a Light. A switch set to present as an outlet is an Outlet. A presentation this build does not know reads as no preference.
  • Tone. A light that is on is amber (Warn). An outlet or switch that is on is green (Ok). A climate device is terracotta (Err) while heating or preheating and slate (Info) while cooling. Everything else is neutral. A system that is off is neutral whatever its running state says, and an offline tile has no tone. A switch or outlet presented as a light takes the light's icon and tone and counts in the Home "lights on" stat (any gang on).

State line (without "as of"):

Device Reads
Light, switch, outlet, fan "On" or "Off" with its level ("On · 80 %") or an outlet's power ("On · 250 W")
Multi-channel device "Both on", "All on", "1 of 3 on"
Climate Current temperature as the hero, then "Cooling to 26 °C", "Heating to 22 °C", "Set to 19 °C · idle" or "Off". A device with no running state reads only "Set to X".
Vacuum State and battery ("Docked · 100 %")
Camera "Live" or "Offline", never pan, tilt, zoom or frame rate. The last still shows only after Show preview on the tile is tapped, or for every camera with Auto-preview cameras on. Hide preview puts the placeholder back. The request is kept per camera until sign-out.
Sensor Its most important reading (temperature before humidity), then the next one ("Humidity 24 %"). It speaks its battery only when nothing else can. A battery is never the hero.

Offline is one verdict, decided in one place. A device is unavailable when its server availability is Offline or Orphaned, or when it is Silent (a sensor or presence reporter quiet past Automations:Freshness:SilentAfterSeconds; omitted on the wire when false, and a push frame that does not say keeps the earlier value). A camera aside, a device that declares no capability or carries no canonical state is unavailable as well. Such a tile reads "Offline · 3 h ago" when the server says Offline or Orphaned, and "Unavailable · 3 h ago" otherwise. The time is measured from the newer of the device's last contact and capture, with no clause when neither exists. Offline is never derived from age, so a lamp quiet for days is not offline, and not from the phone's cache, which a banner announces once.

Formatting. Tiles, the Home summary, sheets and chart axes format values the same way as the web: °C with one decimal, percent whole, degrees whole and written "°", W whole, kWh with two decimals, lux whole with grouping. Halves round away from zero, a non-breaking space precedes the symbol, and separators follow the phone's current culture.

Basic visibility. The user's web view mode (customProperties.viewMode of the preferences) is read by each list screen's refresh. It is Basic when absent or unrecognised, and a failed read keeps the last mode. Infrastructure devices (Coordinator, which includes a hub or router, and Unknown, a type this build does not recognise) are hidden in both modes. Presence devices are hidden in Basic only. A device's Basic tile preference shown overrides the type rule, and hidden is honoured in Basic only. The app has no per-device hide toggle. The Devices list and its search, Home's rooms, favourites and tiles, the widget's favourites, the favourites screen and room chip counts list only what is shown. Device Controls publishes an allowlist of controllable types with no infrastructure. Home's summary strip covers every device the user can see, as on the web. Sign-out resets the mode, because the server preference is the only place it is stored.

Home

Home shows, top to bottom: a greeting by the hour with the date (in English whatever the phone's language), the summary strip, the baby monitor row, Scenes, Favourites and Rooms. The offline banner says once that the screen shows a saved copy.

Summary strip. Lights on, average inside temperature, power now and doors. A stat appears only when the household has a device for it, and the strip is not drawn when it has no stat.

  • A thermostat average reads "Inside". Otherwise the average of the other temperature readings reads "Temperature". A device the household excludes from the average counts in neither, in the strip or in a room row.
  • Power sums every watt capability in the catalogue and skips export.
  • Doors read "Closed" or "N open".
  • Unreachable devices are left out.

Baby monitor row. Its status follows the most urgent session ("Alarm", "Connection lost", "Watching", "Starting"), else "Ready" for the member's rooms.

Scenes are pills that wrap. The first six show. From the seventh, a "+N" pill (N is the number left out) opens every scene in a sheet, where a tap runs it. A scene shows one glyph whatever its stored icon.

Favourites (up to four) are rows with the device's tone and state line. The switch appears only when the device declares a controllable, non-critical on/off and is reachable. It shows the keys it drives and is disabled until the device has reported. A tap elsewhere on the row opens the sheet. The rows are read again when a star changes on a device sheet and each time the Home tab is selected.

Tile switches. Every screen that draws a tile switch (the Devices page, Home's favourites and its unsorted tiles) uses one flow. A refusal, failure or timeout puts the tile back, including the oldest of several refused taps, and says so: Home on its change strip, Devices under the search field. The device is then re-read unless a newer tap or push has landed. Switches in flight never block one another.

Rooms are rows with an icon chip, "N lights on" ("1 light on") only when a light is on, and the temperature only when a reachable device in the room reports one. Only a reachable device presented as a light counts, so a plug, outlet or switch that is on adds nothing. The row turns amber only while the count is above zero. With no rooms, the guidance and the unsorted device grid replace the list.

Map

A user holding locations.view or home.manage sees every household phone that reports a location. Anyone else sees only their own phones, with a note saying so. Basic lists only people who have reported a location. Advanced also lists the rest of the roster (without a Hide button) when the user may read it (users.manage), so an administrator can see who has not set sharing up. Without the roster a person is named from their device label. A person with a reported location shows a Brand ring, one at home an Ok ring, and Hide is an outlined button. "Sharing" means the person has a reported fix, however old.

"Who is home" is a list with position pucks over a self-hosted raster tile, falling back to a plain hairline grid. No commercial map SDK or framework map control is used.

The tile and the Devices page

A tile is drawn from its state alone: a 40 dp icon chip for the category, the name, a hero value or a switch, and one state line. A tile in a tone lays that tone over the card at 0.28 (the chip at 0.30), and its state line takes the tone's ink colour. There is no chevron and no rule bar. Every tile is at least 140 dp tall. A camera tile has that size too, and takes the 200 dp preview size only while a picture is on it: with Auto-preview cameras on once the still arrives, otherwise after Show preview. Hide preview, privacy, or leaving the screen puts the height back. A tile showing a picture stretches the other tile in its row to the same height.

The tile switch follows the web tile's quick action. It shows when the household's quick action resolves to a non-critical on/off the user may control, the device is reachable and the page gave the tile a command.

  • auto picks the category's first controllable action (light, fan, valve, siren, humidifier, water heater, or the only gang of a switch or outlet). A device with several gangs gets one grouped switch only when two or more are controllable. none draws no switch. A chosen key drives only that key, if it still qualifies.
  • The switch shows, and a tap inverts, the keys it drives and no others. It is disabled until the device has reported that on/off.
  • A tap shows the result at once. A refusal, failure or timeout puts the tile back, even after an availability push, and the Devices page says so under the search field in the error tone. A committed but unconfirmed write stays, with its own message in the warning tone. Either way the device is re-read unless a newer tap or push has landed.
  • A device with a critical on/off keeps its switch in the sheet, where the confirmation lives.

An offline tile has no tone and no switch. It shows a status dot, "Offline · 3 h ago", and the name and hero in the supporting colour. It never shows an off icon.

The Devices page has a title, a row of room chips (name and device count, the selected room filled with Brand, scrolled into view when a room is chosen on Home), one outlined search field, and a section per room headed by its name and "N on". Devices with no room come last under "Not in a room".

The Android favourites widget paints its fill and icon in the tile's tone, muted when the value is cached or the device offline.

Device sheets

A sheet has a scrim, a card with a shadow, a grab handle, a header and a body chosen by sheet kind: Control, Outlet, Reading, Camera, Climate or Vacuum. The header carries the category icon in a tone chip, the name, one line of room and state ("Bedroom · Both on", "Offline · 3 h ago", plus "View only" for an account that cannot control), a favourite star and a 48 dp close button. The sheet takes its availability from the cached list summary and pushes, and reads live without them. A sheet has no status sentence, no "Reachable" and no "Changed" footer. A status message carries a command's outcome, an error, or the notice that the sheet shows cached data.

The star toggles the favourite. "Rest of {room}" closes the sheet and shows the Devices tab on that room.

Outlet sheet

Each channel of a light or outlet is a large tile, and the whole tile is the switch (amber for a Light, green otherwise).

  • A name a person set stands. A name two channels share is qualified by position ("Lamp 1", "Lamp 2"). A blank or generic driver name (a bare "State", "Channel", "Gang" or "Ch", or "State" with a gang token such as "State L2") reads "Channel N". "Switch 3" and "Channel 7" are names a person may have typed and stand. The Android Device Controls tiles and the automation gang options use the same rule.
  • The secondary button reads "Turn off", "Turn both off" or "Turn all off" by the number of channels it will switch off (on, switchable by the account, not critical), and is hidden when there are none. The change strip after it repeats those words.
  • "Tap a channel to switch it." shows from two switchable channels. In Advanced only, and only when the device left a channel unnamed, a note explains why channels are numbered.

Reading sheet

The most important measurement leads and the rest are cells. The battery is a quiet line under them, and in Advanced the other diagnostics (link quality) follow. A device whose only reading is a diagnostic other than the battery has no hero in Basic. The chart line and its "now" dot use the accent colour and the humidity sparkline the information colour, as on the web. A tone means one thing (terracotta is heat or error), so a quantity does not borrow one. The selected time range is filled in the brand colour.

Climate sheet

The climate sheet appears for a climate device with something the descriptor lets an account change, and follows the web's climate control. It shows a dial, mode chips, and fan, swing, horizontal swing and preset segments. It also has a minus/plus stepper for each of the heating setpoint, the cooling setpoint and the target humidity. Every part appears when the device declares it and only then, so a device with a setpoint and nothing else gets the dial alone, and one with dual setpoints and no single target keeps its steppers. A declared number with no known domain shows its value and cannot be set.

One quiet line lists the room humidity, the battery (with "low" when the device says so) and, in Advanced only, the valve opening, each when declared and reported. Eco, comfort and away temperatures, boost time, child lock, window detection, away mode, calibration and weekly schedules are web-only and not drawn.

The dial is tinted by the tile's tone (terracotta heating, slate cooling, neutral otherwise) and muted when the system is off or the device unreachable. It shows the setpoint as the device reported it, "Now 25,5 °C" and a badge ("Cooling", "Heating", "Off", else the mode). Every declared mode is one chip in a scrolling row with the active one ringed, and the canonical and vendor off tokens are one mode.

There is no Apply button. A run of taps or a drag is sent as one canonical climate command 800 ms after the last change (not while a finger is down). A mode or segment choice is sent at once. The dial holds the chosen value until the device reports it or six seconds pass. A refusal, timeout or cancellation puts the control back on the reported value and shows a notice for eight seconds. A push never moves a value mid-edit. A touch on the dial changes nothing by itself: a drag points the dial while the finger is down, and a tap or release chooses the value. A gesture the scroll view takes over is dropped and sends nothing. A view-only account or a read-only part shows without acting.

A capability marked critical is not changed on this sheet. Its dial, stepper, chip or segment shows the reported value and is disabled. When at least one declared part is critical and the account could otherwise set it, "Full controls" appears under the parts. It switches the sheet body to the Control sheet of the same device, which asks for per-capability, per-value confirmation. "Back to climate" returns, and the switch also ends when the sheet closes or another device loads. Switching first sends any change still waiting in its quiet period.

Closing the sheet or opening another device sends a waiting change to the device it was made for and lets a send already in flight finish. What happens after the sheet is gone (a refusal, a timeout, a write the server could not confirm) is shown as a toast over whatever screen is up, prefixed with the device's name. While the sheet is open, the notice stays under the controls. A notice for the previous device is never shown on the next one.

Vacuum sheet

The sheet is used for any device whose canonical type is Vacuum, and follows the web's vacuum control. The hero is the state ("Docked", or "Offline" for an unreachable device), the battery ("Battery 100 %", amber at 20 % or below, absent when undeclared or unreported) and, while cleaning, the room under way.

  • Areas are chips named by the administrator's label, else the name the device reports, else "Unnamed area". A raw numeric id is never shown. An area is numbered against the device's offered list only, so areas the device no longer offers can share a number. The device's own names show as reported ("living_room" is not capitalised). Labels come from GET /api/devices/{id}/area-labels, read once per load and only for a device whose descriptor declares an area capability. The app never edits them. A failed read is logged and the screen falls back to the device's own names without going to the offline copy. Labels are not cached offline. A rename made on the web shows at the next load or pull-to-refresh.
  • An empty selection means the whole home. A selectedAreas capability that offers no areas shows no section.
  • The primary button reads "Clean", "Clean everywhere" or "Clean N areas". It sends the chosen set and then start, unless the chosen set equals the selection the device reports. That comparison is against the raw report, stale rooms included, and a selection never reported counts as unknown. "Everywhere" is always sent as the empty set, and a refused selection stops before start.
  • Pause, Stop, Return to base and Locate send on one tap, each drawn only when the device declares it. Pause and Stop are dimmed when the vacuum is not moving.
  • A critical vacuum.command confirms per verb ("Confirm Return to base?"). Another verb arms afresh instead of confirming the first.
  • The clean mode (vacuum.fanSpeed) is a segmented row of the options the device offers.
  • A view-only account sees state and the buttons dimmed. A refusal puts the chips back to what the device reports and leaves its notice in the status message. Declared capabilities the sheet has no control for are listed in Advanced as label and value.

Camera sheet

The picture is the web preview (/embed/camera/{id}) in a WebView, and the app owns the box around it. The box shows the last still with "Connecting…", "Live", or "Can't play · Tap to retry". The WebView's own poster and error page are covered and never shown.

  • The embed page publishes its own state through window.reeveEmbed.pictureState(): connecting until it plays or its first frame loads, live, or failed while it shows its no-picture message. The app reads only that, once a second. A page that has reeveEmbed without pictureState answers "unsupported" and is taken as playing.
  • Reads are ignored from the moment the app navigates until that document has loaded, so a retry never reads the old document. A restart that does not navigate (a shutter edge) keeps reading the live page. A live picture that stops is called lost only after two reads in a row.
  • The 45-second connect budget runs on the clock, answered or not. "Can't play" is not final: the app keeps looking, and the box goes Live if the page recovers. A tap on "Can't play" fetches the still again and reloads the page.
  • The still is the one the web uses (GET /api/devices/{id}/camera/snapshot). One fetch serves the Devices tile and the sheet for 60 seconds. A camera with no still is not asked again for 2 minutes and shows its icon. Sign-out empties the cache. A camera tile shows the last still only while the camera is reachable.
  • Privacy is one rule for the tile and the sheet, as on the web. With the shutter closed or livestream privacy on, the tile shows its icon, the sheet shows no still, and the cache forgets the camera's frame. Livestream privacy also loads no page and shows "Picture hidden" with the reason. A closed shutter still plays the live page, as the web sheet does.
  • Every control appears only when the camera declares it. The pan and tilt pad exists only with a controllable axis. In Basic it drops the pan and tilt sliders and the "Ptz moving" row, and a camera whose axes are readings only shows no pan or tilt angle. The pad's centre still shows travel.
  • The whole sheet is one scroll view: grab handle, header, picture, then the controls, with nothing pinned. The picture is the largest 16:9 that fits the sheet's width and the height it can show. It is full width upright, and on its side it fits the visible height, so the whole picture shows and the controls are below it. The layout is recomputed when the sheet or the window changes size.
  • The embedded page is not scrollable and claims touches only in full screen, so a vertical swipe over the picture scrolls the sheet. With zoom on (full screen only), the page keeps the touches and the sheet's scrolling is turned off. Full screen sets the picture to the scroll view's whole height on a black backing.
  • A baby-monitor tile's picture uses the same layout rule against the page's visible height. On its side it is no taller than the screen and is centred in its black box, and outside full screen it is never under 120 dp. Full screen also hides the Start and Stop all buttons and scrolls the page to the top, so the picture is the whole viewport.

Other sheet details

  • The hero numeral takes its precision from the domain span. A temperature setpoint gets a dial with half-degree nudges, and any other number a vessel.
  • A colour sheet builds a hue-by-saturation surface from a seven-stop hue ramp under a white fade, and applies only on an explicit Apply.
  • Aim is read from rows, so an unreported axis shows an em dash.
  • The chart response reports a step series' mean, minimum and maximum differently from other series (the bucket's last value instead of the average). The app ignores those fields.
  • The WebView's first paint downloads a bundle of about 900 kB, which took about 23 seconds on an emulator.

Cluster refusals

The API handler chain has a cluster handler on top, which reads the backend's refusals.

Answer Meaning What the app does
503 with replica_fenced, replica_behind or replica_not_serving Refused at admission, nothing ran Waits Retry-After (1 second when absent) and retries once, resending the buffered body. A second refusal becomes an ordinary ApiException.
503 write_refused Nothing took effect No retry. Becomes WriteRefusedException.
202 write_unconfirmed The write was committed and not every replica has confirmed it yet Becomes WriteUnconfirmedException.

Both exceptions derive from ApiException, so a call site that does not handle them shows its ordinary error. ApiException carries ErrorCode and RetryAfter from the problem document.

  • Sites that handle them show a notice and re-read, worded for the action where the user needs its state: a monitor start, backup codes, an action-flow submit. A refused submit returns to the step and the user submits again. An unconfirmed one is done and the flow is not aborted. A committed passkey enrolment whose answer was lost is reported as added, with a note to regenerate the backup codes.
  • Idempotent requests are re-sent by design: the location reporter, the Matter hold relay, and the baby monitor acknowledgement and heartbeats. An unconfirmed heartbeat is not a failure (no backoff) but is not contact either, because it carries no state, so a run of them still raises the connection-lost warning.
  • The shared client timeout is 130 seconds, the action-flow submit client allows 200 seconds and the onboarding complete client 3 minutes.

Android system surfaces

The app ships a Device Controls provider for the power menu and lock screen, three Quick Settings scene tiles, up to four dynamic launcher shortcuts plus one static "Add a device" shortcut, and two home-screen widgets (favourites and who's home). Each runs in a cold process with no activity, before any UI exists.

  • Only the Device Controls panel may send a device command, and only a scene tile may activate a scene. Widgets and shortcuts are display and navigation surfaces and send nothing.
  • The baby monitor adds a dynamic shortcut with a reserved id, which takes the lowest-ranked favourite's place while it is offered and only opens the session screen. It also adds its alarm notification and full-screen alarm activity, whose one button, OK, may answer an episode and nothing else.
  • The presence widget lists people by the map's rule: a user holding locations.view or home.manage sees the household, and everyone else only themselves. With users.manage it also lists people who have not reported a location, as Advanced does. Without it a person is named from their device label.
  • Widget refresh has one interval, and the staleness horizon and the minimum gap between push-driven renders derive from it. A hard platform deadline keeps its own value.
  • A deep link opens at most once, and only for the intent that carried it. An activity re-created by a configuration change or process death, and a launch from Recents, hand back the original intent, so those deliveries open nothing. Each new intent replaces the request still waiting. The app waits for the host and sign-in under one 3-minute budget, since nothing can be touched before sign-in resolves, and the 15-second age limit then runs from sign-in (or the intent, if later) on a monotonic clock. The on-screen check and the modal push happen in the same main-thread callback, so leaving the app in between drops the request. A dropped link lands on Home rather than opening a sheet under a finger aimed at something else.

Push notifications

The phone does not register for push. The app has no push SDK, no Firebase dependency and no google-services.json, so nothing on the phone obtains a push token.

The backend has a push-device registry (POST and DELETE /api/users/me/push-devices, a PushDevices table, and IPushDeviceAccess.GetPushDevicesAsync, which is given to any plugin holding users.push, marked PII). It is for plugins. A notification-sink plugin reads a user's registered devices and sends to them itself. For Reeve phones the registry is empty, because no Reeve phone writes to it.

Registering from the Android app would need a Firebase SDK and a google-services.json built into the APK. Reeve is self-hosted from one shared APK, so that single file would point every operator's phones at the Firebase project that built it, while the sending plugin is configured per operator. The two match only if each operator builds their own APK.

Local Android notifications are unaffected: the automation presenter and the background service post them. They need POST_NOTIFICATIONS to have been requested, not only declared.

Pairing

The phone's platform commissioner does the Bluetooth pairing and network provisioning, then hands the home server a routable address plus a fresh passcode. The server joins the device as a second administrator over IP and never runs Bluetooth.

  • Pairing requires platform services on the phone. Where they are absent, the offer is not shown.
  • Before pairing a device onto the offered Thread network, the handler calls IsPreferredAsync, which needs no consent. Only a NotMatched answer warns, and the user may continue or stop before any session exists. Every other or failed answer proceeds silently.
  • Backing out of the platform commissioner cancels the server session and returns the wizard to the offer list without a dialog. Any other result that arrives before the device is handed over ends the attempt with a "setup didn't finish" dialog.
  • The screen that shows a live pairing credential excludes itself from the recent-apps snapshot cache, so the code cannot be recovered from the thumbnail or a screenshot.

Integration action flows

A generic runner runs a plugin instance's action flows through the host's start, submit and abort endpoints. It lists a flow only when the app has a fulfiller for the flow's RequiredClientCapability. A flow without one is for the web UI.

  • Steps. The runner shows information, polling (never faster than the host's interval) and ClientValue steps, and the error, retry and result outcomes. A known step mode it cannot run (form, OAuth, validate) ends with "continue in the web UI". An unknown mode, or a client value kind with no fulfiller, ends with "update the app". Neither submits anything, and both abort the flow.
  • Permission. Both endpoints need integrations.manage. A 403 on the list or the start hides every entry.
  • Returning. Closing the runner reads the list again, because a finished flow is no longer offered and starting it again would be refused as stale.
  • Leaving. Leaving the screen cancels the run and aborts a flow still open on the host, once. A value returned by a fulfiller after the user left is dropped, not submitted. The page disappearing while a fulfiller's consent screen is up is the OS covering it and does not count as leaving. An explicit leave does.
  • A client value is submitted once, as the single field value, and is never re-sent after a failed submit. It lives in a local variable only. The fulfiller's outcome, the screen and every string form leave it out.
  • The screen holds FLAG_SECURE while it is up, because a finished flow can show a one-time result.

The Thread fulfiller (kind and capability thread.active-operational-dataset) reads the step hints extendedPanIds and networkNames (comma separated, same order) and asks the Android Thread credentials API for the active networks. It falls back to the preferred network only when the active query fails, and treats a refused consent as final. Every Play services query is time-bounded: one that never answers fails, which tries the preferred query and then ends on the Try again card. The consent screen itself has no time limit. Its request lasts while the launching activity can still receive the result:

  • The result for its own request code ends it. Cancelled is the Try again card, with no fallback.
  • The launcher destroyed for good ends it as cancelled. Destroyed for a recreation, it stays and the recreated activity is handed the result.
  • The user leaving forgets it, and any later result is dropped.
  • A launch while one is outstanding answers "busy" with its own card text and no fallback.

Troubleshooting

Symptom Cause What to do
Device state on the phone stops changing until pulled to refresh The realtime connection is down or muted Logcat tag DeviceUpdatesClient names the failure. A command still re-reads the device it was sent to, about two seconds after it answered.
An automation notification never arrives The notification permission was declined, or the app was backgrounded with Notify me when the app is closed off (which closes the hub connection), or Android killed the process, which stays silent until the app is opened Grant notifications in system settings, turn the setting on, and open the app once after a kill. None of these raises an error anywhere.
The phone reads stale, and geofence automations fire late or never Location sharing is off, background location was never granted "all the time", or the service notification was dismissed by killing the app Re-enable sharing, then grant background location from the system settings page.
A home-screen widget is empty The user has no favourites Set favourites.
Tapping a critical device does nothing the first time The first tap arms confirmation Tap again within the window. Closing the notification shade disarms a Quick Settings tile, so one tap can never run a scene.
A command reports neither success nor failure A client or adapter timeout surfaced as a server error The app cannot know whether the device executed it and does not claim either way.
A notice says a change was refused or not yet confirmed by every server write_refused or write_unconfirmed from a cluster replica The app re-reads the state. Check it before repeating the change. See Cluster refusals.
Pairing offers nothing The account lacks the onboarding permission, or platform services are absent or still downloading Wait, or grant the permission.
A paired device later refuses to join more Most devices accept about five administrators. The limit and its eviction behaviour are vendor-specific Remove an administrator.
The app refuses to talk to a locally hosted server Cleartext is blocked, or the server's certificate comes from a CA the phone does not trust Put HTTPS in front of the server. For a private CA, install its root on the phone as a CA certificate. A self-signed certificate installs only when it is marked as a CA. See Certificates.
On a fresh install, the map asks for the home's location and nobody shows as at home The home has no location yet, so the distance to home is not computed and sun triggers wait Set the home location during setup or under Home settings.
The baby monitor shows "Sign in to Reeve again" during the night A request answered 401. That is not a sign-out: the sessions keep running and the problem notification is quiet Sign in as the same user and the sessions carry on. Only Settings, Sign out ends them.
"Baby monitor stopped watching — Reeve was closed" The process was killed (low memory, swiped away, an OEM task killer). The dead-man switch fired and ended the sessions Open Reeve and start again. Monitoring never resumes in a process with no window. Grant the battery exemption from the readiness screen.
The baby monitor alarm is quieter than its level The system alarm volume is below the phone's alarm level. The player can only lower the stream, never raise it. Readiness shows the volume light amber with the percentage reached Raise the system alarm volume (the readiness fix does one step), or lower the level.
The baby monitor cannot report a stopped app Exact alarms are not allowed (API 31 and 32), so the dead-man switch is not armed Allow "Alarms & reminders". Readiness shows it red.
The phone receives no push notifications at all The app has no push transport, and the push-device registry is a plugin surface that holds no Reeve phone Nothing to fix on the phone. See Push notifications.