Before you start
Reload the dashboard, over HTTP
Reply
- Free. The web admin, the HTTP API and MQTT work on every panel.
- The web admin starts once an admin password of at least 8 characters is stored and its switch is on. Port 8080 until changed; any port from 1024 to 65535.
- MQTT starts as soon as a broker host is stored. A username and a password are optional.
- One command set. HTTP and MQTT run the same code, so a command behaves and is refused in the same words on both. After an accepted command the panel republishes its MQTT state within half a second.
- Device owner. Three things need the device-owner install (by QR at setup, or
dpm set-device-owner over adb): system.reboot, the real screen-off, and CPU and temperature readings on stock Android.
More about MQTT over TLS
The connection is plain TCP unless Encrypted (TLS) is on. With TLS the broker is trusted when Android trusts its certificate for its name, or when its certificate is the one trusted on the panel: after the first refused connection both surfaces show its SHA-256 and a Trust button. A client certificate uploaded in the web admin (a PEM certificate and an unencrypted key, with clientAuth) is presented when the broker asks for one. Without TLS, use MQTT on a network you trust.
HTTP
HTTPS and the certificate
The panel serves HTTPS with a certificate it made itself, so a browser warns once; one click accepts it. A plain http:// request on the same port gets a redirect to the https address and is never asked for a password. While the panel cannot use its certificate, after a restart until the device is first unlocked or where none can be made, the web admin stays closed: every request gets 503 with the reason, and no password is asked.
Reply
In the examples -k tells curl to accept the panel’s own certificate. To check it, compare the fingerprint the browser shows with the one on the panel’s web-admin card, on the web admin page, and in config.http_certificate_sha256. To pin it, save it once with openssl s_client -connect 192.0.2.42:8080 -showcerts and pass it to curl with --cacert.
A certificate of your own. Upload a certificate and its key, for example from Let’s Encrypt, and the panel serves it instead. Send the same request again after each renewal.
Reply
More about your own certificate
The certificate file holds one or more PEM blocks, the server’s certificate first, then any intermediates (fullchain.pem as certbot writes it, or cert.pem and chain.pem pasted together); a root in it is left out. The key is an unencrypted PEM key, RSA or EC (BEGIN PRIVATE KEY, BEGIN EC PRIVATE KEY or BEGIN RSA PRIVATE KEY). One file holding both also works. Nothing is kept until the key is shown to belong to the first certificate.
An upload must come over HTTPS: pass --proto =https so curl never sends the key over plain HTTP. A browser shows no warning when it trusts the authority and the address you open is a name or address in the certificate.
Choose between your certificate and the panel’s own on the panel’s web-admin card or with the instant setting http_certificate; an upload chooses itself. An upload that cannot be read when the panel starts is not served: the panel’s own certificate is, and both surfaces say why, as does config.http_certificate_problem.
Refused with:
no certificate was chosenthe request was not a file uploadthe upload did not arrive complete; please try againno certificate was found; a certificate file begins with -----BEGIN CERTIFICATE-----that is a certificate request; upload the certificate the authority sent back for itno private key was found; a key file begins with -----BEGIN PRIVATE KEY-----more than one private key was giventhe private key is protected by a passphrase, and a panel has nowhere to type one when it starts; save it without one with openssl pkey -in key.pem -out key-open.pemthe private key does not belong to the certificatethe private key belongs to another certificate in the file; the server's own certificate has to come firstthe certificate's key is …; the web admin serves RSA and EC keysthe certificate is not one for a server (its extended key usage has no serverAuth), and no browser accepts it for onethe certificate's key usage has no digitalSignature, and no browser accepts it for a servera name in the certificate is longer than 253 characters, which no browser matches to an addressmore than 8 certificates were givena certificate in the file cannot be readthe private key cannot be readthis panel could not keep it; try againthis panel could not keep it, and the one it had stays; try againthis panel could not keep it; upload it again
Authentication
HTTP Basic on every request, the web admin page included. The username is ignored; only the password counts. There are no cookies, tokens or sessions.
Reply
Five wrong passwords from one address lock that address out: 429 Too Many Requests with a Retry-After header. The lockout lasts 30 seconds the first time, doubles each time up to 15 minutes, and is forgotten after an hour of quiet. The status document counts lockouts in runtime.auth_lockouts, with the address.
From a browser
Every POST is checked against cross-site requests. A request with Sec-Fetch-Site must say same-origin or none; a request with Origin must match the Host it went to. A request with neither header, as curl and automations send, passes.
Reply, HTTP 403
Endpoints
Every address the web admin answers on, grouped. Each group’s details are behind More, under the table.
More about commands, settings and status
/api/log- The app’s own log lines, plain text, the newest 200 at most.
?level= one of V D I W E F, ?own=1 for Muralis’s tags alone, ?q= to keep the lines holding that text. Replies: 200 text /api/diagnostics- A diagnostics file, plain text, built on request and never kept or uploaded by the app: the app version and build, the device (make, model, Android and WebView versions, device owner, lock task, the kind of window), every permission the app declares with whether it is granted, the status document as this surface has it, the counters (renderer deaths, rebuilds, web admin lockouts, the last page and its last error, with how long ago) and the last 200 lines of the app’s own log. No password or key is in it. Replies:
200 text, as an attachment named muralis-diagnostics-<id>-<yyyyMMdd-HHmm>.txt /api/screenshot- The screen as the wall shows it, whichever layer is up (the page, Ambient, the parking screen, the black film), captured now at full resolution. One capture at a time; requests that arrive while one runs get the same picture. Replies:
200 image/png; 409 JSON with the reason Muralis is not on the panel's screen (another app or the launcher is in front) /camera/stream, /camera/snapshot.jpg- The camera as an IP camera while its sensor is on: an MJPEG stream (
multipart/x-mixed-replace, one part per frame) and the last frame as one JPEG. Two streams at a time; a stream ends when the camera stops, sends no frame for 15 seconds, or one frame takes longer than 10 seconds to be read. Replies: 200; 503 while the camera is off or has no frame yet, or with Retry-After when two streams are already open
More about documents and forms
/api/automations/save, /api/automations/delete- The editor’s Save and Delete, form-encoded:
id (empty for a new rule), name, sensor, event_<sensor>, level, at (the time, 22:00, for the time event), minutes, tag, camera_tag, match_text (the text an integration’s value must become), cooldown, action, argument, target, show, seconds, chime, only, only_from, only_to, and baseline, the stored rule as JSON (see the stale rule under settings boxes). Replies: Save: 303 to /automations?id=; Delete: 303 to /automations; the editor again with the reason when refused /cameras- One camera’s form, form-encoded:
was (the stored name, empty for a new one), name, url, full, user, password (blank keeps the stored one); or what=show (a pop-up now) or what=remove with was. Replies: The Cameras page again, 200, or 400 with Not saved: … /integrations- One integration’s form, form-encoded:
id (empty to add one), definition (webvalue), name, and each setting as f_<setting>; a secret setting left blank keeps the stored one and is never sent back. what: save, test (asks the service once with the form, stores nothing), on, off or remove. Replies: The Integrations page with Added., Saved., Answered: … or the reason; 400 for a refusal /camera-groups- One group’s form:
was, name, cam0 … cam9 (the cameras ticked); what=show or what=remove as for a camera. Replies: As above /camera-view- The Dashboard cameras page:
dashboard_cameras (a camera or a group, required), camera_layout, camera_big, camera_names; saving also makes the dashboard show the cameras, as dashboard.show with cameras. Replies: The page again with Saved., or 400 with Not saved: … /app-lock- The Dashboard app page (App lock):
app_lock the package of an installed app with something to open, kept as the dashboard’s app and shown at once instead of the web page, opened again whenever it closes. Needs Muralis to be allowed to display over other apps, which only the panel can allow (Dashboard, App, Allow). Android’s Settings, home screens and the Play Store are never offered or taken; the apps that came with the device are listed when the page is opened with ?system=1 (Show the apps that came with the device). An app that is uninstalled shows the parking screen with <app> is not installed. The status snapshot carries app_lock (package, app, showing, problem) and MQTT discovery the sensor Dashboard app. Replies: 303 to /#box-dashboard, where Dashboard says what the dashboard shows; 400 HTML with the reason when no app was chosen or no such app is installed /page-options- The Page options page’s two forms, as the settings boxes post them (settings boxes):
section=browser with the browser options and the page sign-in, and section=certificates with action trust or forget, host and sha256 for a page certificate. Replies: 200 HTML, the page again; 400 with the reason in a notice /settings-file- The settings file (block 8).
what=export with include_passwords, passphrase and passphrase_again: kind muralis-settings, version 1, every setting a person sets under the names this page uses (never the panel’s name, keys, fleet, certificates, purchase or pictures), and, when asked for, the passwords in a secrets block encrypted with the passphrase (AES-256-GCM, the key from PBKDF2-HMAC-SHA256). what=read, a multipart upload with file and the passphrase, lists what would change; what=apply with the token it gave applies it, each value through the check a person’s change takes. Replies: The file as an attachment for export; the page with the list, or with what was applied and each value refused with its reason. /api/setup-qr.svg- The setup QR for a new tablet: the website’s provisioning values and, in the admin extras (
muralis_settings_z, deflated and Base64), this panel’s settings file without passwords, applied once at the first start. Replies: An SVG; 413 when the settings do not fit in a QR.
More about certificates
/api/certificate- Keeps and serves a certificate of your own,
multipart/form-data with the files certificate and key. HTTPS and the certificate. Replies: 200 or 400 JSON with the reason /api/certificate/delete- Deletes the uploaded certificate and its key; the panel serves its own again. With
sha256, the fingerprint of the upload meant (as config.http_certificate_upload has it; colons and case do not count), a newer one is left alone. Replies: 200 JSON; 400 Not deleted: no certificate is uploaded. or Not deleted: the uploaded certificate was replaced since this was asked; nothing was deleted. /mqtt-certificate- The broker’s client certificate,
multipart/form-data with certificate and key, over HTTPS only. Replies: 303 to the MQTT box when kept; the reason otherwise
More about fleet (Muralis Pro)
/api/fleet/code- Opens a join code, eight digits that work once for ten minutes, or answers the one already open, as the panel’s Join a fleet and New code do. None while the panel is in a fleet, its member endpoint is down, or after five wrong codes for ten minutes. Both surfaces show the same code. Replies:
200 JSON, as fleet_join in the status document /api/fleet/invite- Opens an invitation for a new tablet, replacing an open one: a QR that sets a factory-reset tablet up as device owner and joins it to this fleet by itself, valid for ten minutes and for one tablet. Muralis Pro, and only in a fleet that exists; refused with the reason otherwise, also when the fleet is full. Replies:
200 JSON: open, left (Valid for 10 min) and result (what the last invitation came to, kitchen-panel joined the fleet.); 409 with the reason /api/fleet/leave- The panel leaves its fleet: it stops trusting the fleet’s keys and keeps its own settings, id and name. It first tells one member that answers, which takes it off the fleet’s list for every panel; when none answers it leaves anyway, and the others show it offline until someone removes it. Replies:
200 JSON, as above /api/fleet/screenshot?panel=- One panel’s screen as the All panels page’s thumbnail shows it, by the panel’s id: this panel’s through its own capture, another’s fetched from that panel’s member endpoint (Between panels), a JPEG with the long side at most 1280 px, captured now and never kept. Replies:
200 image/jpeg; 404 JSON for an id not in the fleet; 409 JSON with the reason, No picture: the panel did not answer or the panel’s own refusal /api/fleet/identifypanel= a panel’s id, or all: panel.identify on that panel, or on every panel of the fleet at once. Replies: 200 JSON as a command’s reply; for all the detail holds one line per panel, Kitchen: accepted, and the status is accepted only when every panel accepted; 409 with the same body when a panel refused; 404 JSON for an id not in the fleet/fleet- The All panels page, Muralis Pro (without it the page says so and its forms are refused): the panels with their groups and last contact, a picture of each panel’s screen on request (Screenshots, through
/api/fleet/screenshot) and Identify per panel or for all (/api/fleet/identify), the groups, and which sections one scope shares, the whole fleet (?scope=everyone, also shown for an unknown or missing scope) or a group (?scope=<id>), one switch per section; the values themselves are edited where they live, on any panel of the scope. Its forms post to the same address with what set to panel (a panel’s spki and group_<id> boxes; with remove=1, Remove: that panel is taken off the list on every panel and its key revoked, a reachable one is handed the list and leaves by itself, and it can join again with a new code; this panel itself is refused, it uses Leave), add_group (name), remove_group (id), share (scope, section, shared: switched on, the section is shared as this panel has it now; already on, nothing changes) or restore (version). A fourth card, History, lists the last twenty versions (the five newest, the rest behind Older versions) of the fleet’s list this panel held, newest first, each with its author, its time and what it changed against the one before (panels added or removed, groups made or removed, sections shared, changed or unshared), and offers Restore as new for every version but the one held: its fleet name, groups and shared settings are written as a new, higher version, never a rollback of the version number, and the panels of the fleet stay as they are now. Replies: 200 HTML, the page again; a refused post says why in a notice on it /alerts- The fleet’s alerts (fleet alerts): the alert fields under the names the status document uses, shared with the scope that shares the alerts now, or with the whole fleet when none does yet. Alerts are raised only while they are shared. Replies:
200 HTML, the page again with Saved.; 400 with the reason
Reply
Fleet alerts
Alerts are a section a fleet can share (the alert_* settings), Muralis Pro. While the section is shared with a panel, the panel judges itself once a minute: the page failed to load, the battery is below the threshold, the processor temperature is above it, the free storage is below its megabytes, a newer Muralis runs in the fleet, a shared setting was refused, a combination was used, five wrong PINs locked the escape. One panel of the fleet, the online one whose id sorts first, also judges which panels are offline, not heard from for alert_offline_minutes, and with alert_back_online when they come back. Each alert is said once: on when the condition starts, off when it ends, never repeated while unchanged; a combination used is on only, once per use. With alert_quiet_display_off, a page error, a panel going offline and coming back are held back while that panel’s display is off; the way out, the PIN and refused settings never are. Nothing shows on a panel’s own screen.
An alert goes to every channel that is set: a phone through an ntfy topic (alert_ntfy_url, with alert_ntfy_token for a protected one), a chat (alert_chat_url, a Slack, Discord, Google Chat or Teams webhook, told apart by its address), a publish on alert_mqtt_topic on the panel’s own broker (not retained, not MQTT discovery), and a POST to alert_webhook_url, each with an eight-second deadline and no retry. The phone and the chat get a sentence; MQTT and the web address get this JSON. An automation’s alert action takes the same way. Outside a fleet, or with the section unshared, the ready-made alerts are not raised.
kind is one of offline, page_error, battery, temperature, storage, update, shared_refused, combination_used, pin_lockout, automation (an automation’s alert) and test (Send a test alert); detail is a short word of the condition (the page’s error, the percentage, the degrees, how long a panel was not heard from, the text of an automation’s alert) and may be empty.
Between panels
The panels of a fleet talk to each other on the member port (fleet_port, 8081 until changed), not on the web admin’s: mutual TLS, where a caller is admitted by its fleet key alone and the password plays no part. Two of those routes carry what the All panels page shows; the rest (joining, the fleet’s list, the heartbeat, and POST /fleet/values, which passes on the values of a shared integration) are the fleet’s own business and not an interface.
When the fleet shares the integrations, one panel asks each service for the whole group: the first panel in the fleet’s list that was heard from in the last two check-ins and can run the integration (it holds the keys, the service did not refuse them). After each read it sends the values to the other panels over the member port, once and without retry, and each panel uses them as if it had read them itself. When that panel goes quiet, the next one in the list takes over; a panel that gets no reading for two of the integration’s intervals plus three minutes shows the values as unavailable. An integration with a setting kept per panel is still asked by each panel itself.
Limits
Commands
Sending one
Over HTTP, always a POST to /api/command, with the command in cmnd and its arguments as form fields, in the query string, or as JSON. Over MQTT, publish on kiosk/<id>/command: a bare command name, or a JSON envelope with the arguments.
MQTT result, on kiosk/hallway-panel/command/result
The arguments are url, percent, value, enabled and beacon; a few commands take more, named in their tables. enabled takes true/false, 1/0 or on/off. Over MQTT the result carries the same status and detail as the HTTP reply, plus your id (up to 96 characters) and timestamp_ms.
Replies
Read status, not the HTTP code. A command that was understood and refused is still HTTP 200.
Reply
Command index
The page
Stores an address as the panel’s page and shows it.
Reply
Refused with
url must not be emptyurl is too longurl must start with http:// or https://
More about dashboard.url
The address may hold {panel.name}, {panel.group} (the first group the panel is in) and {fleet.name}. Each panel fills them in when it loads the page, so one address shared with a fleet shows each panel its own page. What is stored keeps the placeholders.
Shows an address now, without storing it.
Reply
Refused with
url must not be emptyurl is too longurl must start with http:// or https://
More about dashboard.open_once
A restart, a reboot or the nightly clean returns to the stored page. Afterwards runtime.last_page_url in the status document is the new address, and config.dashboard_url is unchanged.
Chooses what the dashboard shows: the web page, the app chosen for it, the cameras chosen for it, or an integration’s own page (the Bitcoin clock).
Reply
Refused with
value must be page, app, cameras or integrationchoose an app on the panel or in the web admin firstadd a camera firstchoose the dashboard cameras firstadd the Bitcoin clock in Integrations firstchoose the dashboard integration first
More about dashboard.show
This is the panel’s Dashboard choice, stored as config.dashboard_shows. The app, the cameras and the integration are chosen apart from it and kept when the dashboard shows something else, so switching back shows the last one chosen. The app is chosen on the panel or in the web admin (Dashboard, App), never over the API: app shows the app chosen there. The cameras are chosen with dashboard.cameras, the integration with dashboard.integration; with none chosen, the first integration with a page is taken.
The stored page address stays for the web page, dashboard.open_once still shows a page once, and dashboard.open comes back to what the dashboard shows.
Chooses the camera or group the dashboard shows when it shows cameras.
Reply
Refused with
value must name the camera or groupno camera or group has that name
More about dashboard.cameras
While the dashboard shows cameras the choice shows at once; otherwise it is kept for the next dashboard.show with cameras. The choice is config.dashboard_cameras.
A group shows as a grid laid out by the number of cameras, or in a fixed layout chosen on the Dashboard cameras page: one big and three small, one big and five small, 2 by 2 or 3 by 3, with the camera of the big tile. Cameras past the layout’s places are not shown. The names can be shown on the tiles.
A tap opens one camera over the whole screen and stops the others; pinch zooms it. A tap, or a minute without a touch, brings the grid back. Nothing is fetched while the display is off, Ambient is up, or the settings or another app are in front.
A camera or group that is renamed carries the choice with it; one that is removed shows the parking screen, which says so. MQTT discovery has a select, Dashboard cameras, once there is a camera.
Chooses the integration whose page the dashboard shows when it shows an integration.
Reply
Refused with
value must name the integrationno integration with a page has that name
More about dashboard.integration
Only an integration with a page of its own can be the dashboard; today that is the Bitcoin clock, with its five styles, its label and a background picture or album set on its options page (/clock-options). While the dashboard shows an integration the choice shows at once; otherwise it is kept for the next dashboard.show with integration. The choice is config.dashboard_integration, and MQTT discovery has a select, Dashboard integration, once there is one.
dashboard.open
dashboard.reload
app.restart
dashboard.stop
dashboard.start
Five commands with no arguments. They are always accepted.
Reply
Takes a picture of the screen and publishes it for the broker.
Reply
The full-size picture, over HTTP
Refused with
Muralis is not on the panel's screen
More about panel.screenshot
When MQTT is connected the picture goes to kiosk/<id>/screenshot, retained, as a JPEG with the long side at most 1280 px; the Screenshot image entity shows it. Without a broker the capture alone is the command. GET /api/screenshot answers with the full-size PNG.
It is refused while another app or the launcher is in front.
Shows the panel’s name, large, on its screen for ten seconds.
Reply
Refused with
Muralis is not on the panel's screen
More about panel.identify
The name shows over whatever is on the screen (the page, Ambient, the parking screen), without a sound, so a person in front of several walls can tell which is which. A second Identify restarts the ten seconds. The name is the one in the fleet’s list, or the device id outside a fleet.
The All panels page’s Identify buttons and POST /api/fleet/identify send it to any panel of the fleet. It is refused while another app or the launcher is in front.
panel.dashboard
panel.settings
panel.home_screen
The way in and out, without the corner taps: the dashboard, the settings on the glass, or the device’s home screen.
Reply
Refused with
Muralis could not come to the frontMuralis is not on the panel's screen (panel.home_screen, while another app is in front)
More about the way in and out
Each one wakes the display. The web admin’s Way out section has the three as buttons, and the All panels page has them for any panel of the fleet; Go to home screen asks first there. dashboard.open, which automations and the smart home send, never pulls Muralis over someone working in the launcher; panel.dashboard, asked by a person, does.
The page’s browser options, one command each.
Reply
Refused with
the text size must be a whole number from 50 to 300the page zoom must be 0 for automatic or a whole number from 25 to 400the time before going back must be a whole number of seconds, 0 to 86400the page's dark look needs Android 10 or newerallow it on the panel first: Android has not given Muralis that permissionenabled must be true or false
More about browser.*
A page that has no dark look is left as it is. A device owner holds the camera and microphone permissions; on an ordinary install, allow them on the panel first. While the page has the camera, the camera sensor lets go of it and takes it back afterwards.
The page’s sign-in (HTTP basic auth) is set on the panel or in the web admin only, because it carries a password.
Ambient
Ambient is the screen shown while nobody uses the panel. Every Ambient setting is a command and also an MQTT discovery entity, named on every surface as the table under discovery names it. A changed setting is saved at once and takes effect the next time Ambient starts.
ambient.start
ambient.stop
Shows Ambient now, or ends it and brings the page back.
Reply
Refused with
the Ambient mode is offthe kiosk is stoppedMuralis is not on screenthe first-start wizard is on screenthe escape combination recorder is on screen
More about ambient.start
ambient.start shows Ambient in the mode that is set, without waiting for the idle time; a touch on the glass ends it. With the panel’s settings open it shows as a preview, and a tap brings the settings back. ambient.stop is accepted even when no Ambient is showing; the refusals above are for ambient.start.
Ambient’s settings, one command each.
Reply
Refused with
value must be off, dim, film, url or picturesvalue must be a whole number of seconds, 0 to 86400value must be a whole number from 1 to 100value must be a whole number of seconds, 1 to 86400value must be ambient or dashboardvalue must be cut, fade or slidevalue must be fit, fill, stretch or actualvalue must be bottom_left, bottom_right, top_left or top_rightvalue must be an album name, or empty for noneno album called …; this panel has …there are no albums on this panel yetenabled must be true or falseambient.url: the refusals of dashboard.url
More about ambient.*
fit shows the whole picture with bars where its shape differs from the screen’s; fill covers the screen and crops the edges; stretch covers the screen and pulls the picture out of shape; actual shows it at its own size, centred.
Albums are made and filled in the Gallery, on the panel or in the web admin; see Pictures and albums.
Display and light
display.wake
display.visual_off
Wakes the screen, or darkens it the way the display-off method decides.
Reply
More about display.wake
display.wake ends a sleep, lifts the black film and restores the brightness. display.visual_off turns the screen off where a device-owner install can be trusted to sleep, and shows a black film at minimum brightness otherwise. It survives the nightly restart, not a reboot. Both are always accepted.
Afterwards the status document shows display.source display_off, display.brightness_percent 0, and in display.off_method_effective which of the two happened. display.screen_on is false after a sleep and stays true under the film.
Sets the brightness.
Reply
With percent=150
Refused with
percent must be between 0 and 100brightness needs the WRITE_SETTINGS permission, which has not been grantedautomatic brightness is on; turn it off to set a levelthe system refused the brightness write
More about display.brightness
It needs the one grant Android keeps for a person; the setup page explains it. Turn automatic brightness off first.
Gives the brightness to the light sensor, or takes it back.
Reply
Reply on a tablet without a light sensor
Refused with
enabled must be true or falsethis device has no ambient light sensor
Sets the orientation. Stored.
Reply
Refused with
value must be auto, landscape or portraitthis device has no accelerometer to follow
More about display.orientation
A fixed value draws the right way up even when the panel hangs upside down. auto is refused on a tablet without an accelerometer.
Chooses how display.visual_off darkens the panel.
Reply
Refused with
value must be auto, sleep or filma real screen-off needs the device-owner install
More about display.off_method
auto sleeps where that can be trusted (device owner, on mains or exempt from battery optimisation, no earlier sleep that ended badly) and shows the film otherwise. Setting the method, to any value, also forgets a recorded bad sleep.
Switches the status light, a coloured frame around the screen, on or off.
Reply
Refused with
colour must be three numbers from 0 to 255, like 255,0,0brightness must be a whole number from 1 to 100
More about light.on
For a panel with no light of its own. The frame is drawn over the page, Ambient and the parking screen, never in the way of a touch. Its state is kept across a restart.
Sensors
The panel’s sensors (see sensors in the status document) and its own automations. A sensor this device lacks, or one still waiting for a permission on the panel, is refused with the reason.
Switches one sensor on or off.
Reply
Refused with
enabled must be true or falsevalue must name a sensorno sensor is called …not on this device: …allow … on the panel first
Pauses or resumes one automation.
Reply
Refused with
enabled must be true or falsevalue must name an automationno automation is called …
More about automation.enabled
Rules are made on the panel or in the web admin, or posted whole to /api/automations; see Automations and sensor settings.
camera.motion
camera.snapshot
Switches the tablet camera’s motion detection, or publishes its last frame now.
Reply
Refused with
enabled must be true or falsethis device has no camerathe camera is offpictures to MQTT are offthe camera has not delivered a picture yetMQTT is not configuredcamera.snapshot: the broker’s state when nothing could be published
More about camera.motion
camera.snapshot publishes the frame on kiosk/<id>/camera, and only while the camera’s camera_mqtt setting (Picture to MQTT) is on. This is the tablet’s own camera; network cameras are under Pop-ups and cameras.
Calibrates the proximity sensor in two steps, for a device whose driver never moves Android’s distance.
Reply
Refused with
cover the sensor firstthe sensor has not reported in the last secondsthe sensor read the same covered and clear
More about proximity.calibrate
The panel keeps the value that changed the most and reads near from it.
bluetooth_beacons.calibrate
Calibrates one Bluetooth beacon on this panel, so its distance reads true here.
Reply
Refused with
the step must be near, far or resetBluetooth beacons is offno beacon is in reachthat beacon is not in reachthe beacon was heard too few times to calibrate; keep it in place and try againthat beacon is not calibrated on this panelthe beacon announces no power; calibrate it at 1 m firstthe signal at 3 m is hardly weaker than at 1 m: …the signal at 3 m is far weaker than at 1 m: …
More about bluetooth_beacons.calibrate
Both steps are optional; an uncalibrated beacon still has a rough distance. At 1 m, with nothing between them, the panel keeps how strongly it hears the beacon. At 3 m it learns how fast the signal fades in that room. A 3 m step taken without the 1 m step holds while the beacon announces the power it announced then. The last two refusals are for a 3 m step that no room gives.
Calibrates the sound level, so its 0 to 100 runs from this room’s quiet to its loud.
Reply
Refused with
the microphone is offlet it hear the quiet room firstthe microphone has not heard anything in the last secondsthe quiet room and the loud sound were too alike (less than 10 dB apart)
More about sound_level.calibrate
Each step averages the last three seconds. Until it is calibrated, and after reset, the level spans the whole range of 16-bit audio.
Puts the panel to sleep for twenty seconds and notes whether a sensor still reported.
Reply
Refused with
no sensor is called …not on this device: …only the panel's own sensors can be tested… is offa test is already runningthe display did not go offthis panel darkens with the black film, which keeps its sensors awake
More about sensor.sleep_test
Some devices stop every sensor an app holds once the display sleeps. The sensor is asked again three seconds in and only a change after that counts, so someone has to change what it measures: a hand over the proximity or light sensor, a tap on the panel for movement. The verdict goes into asleep in the sensor’s block, reports or silent, which both surfaces show as Running and Not running.
The camera, the microphone and the beacons answer only the panel's own sensors can be tested. The film refusal comes where Display off is the film. A wake before the twenty seconds ends the test without a verdict.
Sound
Sets the media volume.
Reply
Refused with
percent must be between 0 and 100
Plays a sound through the panel’s speaker, or stops it.
Reply
Refused with
url is requiredurl must start with http:// or https://
Speaks a sentence through the device’s text-to-speech engine.
Reply
Refused with
value must hold the sentence to saythe sentence is longer than the speech engine takes (4000 characters)the text-to-speech engine is not ready
Network cameras are set on the Cameras page of the panel or the web admin (or with POST /cameras): each has a name, an address and an optional sign-in. Groups put cameras together under a name of their own.
More about cameras
A camera has a name (1 to 40 characters, unique), an address (a snapshot, an MJPEG stream or a camera page, http:// or https://), an optional full-screen address (the same camera’s bigger stream, used when it is shown alone), and an optional user and password. At most 10 cameras.
A group has a name of its own and shows its cameras as one grid, laid out by their number and the screen’s shape. At most 10 groups; a camera may be in several; no group and no camera share a name.
The sign-in is stored as a secret and sent, Basic or Digest as the camera asks, to that camera’s host only. A sign-in typed into the address, before the host (http://user:pass@host/) or in the query (&user=…&password=…, also usr and pwd), is taken out and stored the same way; in the query it becomes {user} and {password}, filled in only when the panel fetches the camera. A password with no user is refused: a camera that ignores the user takes any name. A refused sign-in is tried once a fetch, never again at once, so a wrong password does not lock the panel out.
Fetching. A camera is only streamed: what it sends is drawn from memory and never written to the panel. An https:// camera needs a certificate Android trusts, or one trusted on the panel like a page’s; until then it waits in the status document. A camera that cannot be shown says why in its place: No picture, Sign-in refused or Certificate not trusted.
Shows a pop-up over whatever is on the screen.
Reply
Refused with
value must hold the message, or url an address to showthe message is longer than 500 charactersthe title is longer than 80 charactersurl must start with http:// or https://seconds must be a whole number from 0 to 300, 0 for until touchedwake and chime must be true or false
More about panel.notify
A touch on the card closes it, and a new pop-up replaces the one showing. While the settings are open, or another app is in front, it waits, for a minute at most.
The address is fetched by the panel and drawn from memory; nothing is kept. It is fetched without the dashboard’s cookies, so a page that needs a login shows its login.
The same pop-up comes from the smart home’s notify entity Pop-up and from an automation’s popup action.
Shows a camera or a group now, for 30 seconds, and wakes the display.
Reply
Refused with
value must name the camera or groupas must be popup or fullscreenno camera or group has that name
More about camera.show
A pop-up closes with a touch; full screen has a close button, and a single camera there is zoomed by pinching. Either closes when the display goes off, Ambient starts or the panel leaves the front.
MQTT discovery adds a button, Show and the name, for each camera and each group.
Runs the automations that wait for this camera: what a doorbell or a motion sensor sends.
Reply
Refused with
value must name the camera or groupno camera or group has that nameno automation waits for this cameracooling down: an automation for it ran a moment ago
More about camera.trigger
A camera’s name runs the rules for that camera and for every group it is in; a group’s name runs the group’s rules. cooling down comes when every such rule ran within its cooldown. Rules use the cameras event; see A rule.
The panel
Switches the web admin off or on, without touching the stored password. Stored.
Reply
Refused with
enabled must be true or false
More about webadmin.enabled
A caller on the web admin itself hears accepted and then loses the connection, which is the point.
Publishes the MQTT state document now, without waiting for the next minute.
Reply with no broker reachable
Refused with
MQTT is not connectedMQTT is not configured
More about telemetry.publish
With a broker connected the reply is accepted. MQTT is not configured comes when no broker host is stored.
system.reboot
Device owner
Reboots the tablet.
Reply
Reply on an ordinary install
More about system.reboot
There is no system.shutdown: Android has no way an app could power a tablet off. It answers unsupported like any unknown command.
Settings
The stats overlay, the display-off method, the look, the web admin’s certificate and every Ambient setting apply instantly through /api/setting; the web admin posts them the same way. The rest are saved the way the web admin saves them, one box at a time, through a POST to /. Orientation, automatic brightness and the page itself are set with the commands above.
Instant settings
Form-encoded, section=behaviour, one key per request. The panel republishes its MQTT state afterwards.
Reply
With display_off_method=dark, HTTP 400
Any other section is refused with not an instantly applied setting.
Settings boxes
Each box on the web admin posts its own fields to / together with a baseline: the values that were current when the page loaded, joined with |. A baseline that no longer matches refuses the save, so two people editing the same panel cannot overwrite each other without noticing. A script has to supply the baseline too; read the current values from /api/stats first. The reply is the page itself, 200 when saved, 400 with the reason when refused.
Reply when the baseline is stale, HTTP 400, on the page
Automations and sensor settings
Three documents hold what you set on the Sensors and Automations pages. GET one, change it, POST it back as application/json. Every entry says when it last changed, in changed_at (milliseconds, 0 when it has not changed since the panel started keeping the time), and a removed rule or beacon name leaves a marker in deleted with its deleted_at, the newest 100 kept. The panel writes those times itself: the copies in a POST are ignored. A POST is checked in full before anything is written, so a refusal leaves everything as it was.
A rule
A rule has one or more when, each a sensor’s event with its own actions in then, run in order; any of them starts the rule. The conditions in if must hold when a when starts it: all of them, or any one with if_any set to true. These fields are the same in the editor’s form, in /api/automations and in the status document.
A rule’s events are read again from the start when it is edited, so a rule whose event already holds when saved does not run on the spot. A wait the panel slept through is dropped with the actions after it, never run late.
The editor’s baseline is the stored rule without enabled and changed_at, so a switch flipped beside an open editor never makes its Save stale.
With {"shared": {"camera_size": {"value": "640x480"}}}, HTTP 400
Pictures and albums
The routes the web admin’s Gallery and album pages use: the pictures in one place, and the albums Ambient plays in its Pictures mode. Add ?fragment=1 to a POST to get {"ok": true, "message": "..."}, or 400 with "ok": false and the reason; without it the answer is the page again.
More about pictures and albums
A picture is named by its address, as the panel stores it: content://media/external/images/media/186 for one of the panel’s own pictures, a file:// address inside Muralis for an upload. An album is named by its id, which GET /api/albums gives. Every POST is form-encoded, the upload aside. The panel’s own pictures need Android’s permission to read them, which the panel asks for in its Gallery; uploads need none.
Reply
Checks
POST /api/check tests a value from the panel’s own point of view before you save it: does that URL answer, is that port free, does that broker accept a connection. It is advice, not a gate; the save paths keep their own refusals. Always 200, the verdict is inside.
Reply, broker not running
Status document
GET /api/stats returns it; the MQTT state topic carries the same document without the lines marked Admin. Times are milliseconds. A value the tablet cannot provide is null, never missing and never zero; inside sensors, a sensor’s reading fields are there only while it is on.
{
"schema": 1,
"app_version": "0.7.0",
"uptime_ms": 79535237,
"app_uptime_ms": 28207013,
"battery": {"present": true, "percent": 84, "status": 2, "health": 2, "plugged": 2, "charge_state": "charging",
"temperature_c": 29.3, "voltage_mv": 4022, "charge_counter_uah": 3126890,
"current_now_ua": 119018, "current_average_ua": null, "energy_counter_nwh": null},
"power": {"source": "mains", "volts": null, "watts": null},
"memory": {"available_bytes": 862355456, "total_bytes": 1954566144, "low": false,
"threshold_bytes": 226492416, "process_pss_kib": 125244},
"storage": {"available_bytes": 6103379968, "total_bytes": 7761584128},
"network": {"connected": true, "ip_address": "192.0.2.42", "metered": false, "validated": true,
"wifi": true, "ethernet": false, "wifi_rssi_dbm": -78, "wifi_signal_level": 1,
"wifi_link_speed_mbps": 21, "wifi_frequency_mhz": 2437},
"thermal_status": 0,
"load_average": [3.16, 3.29, 3.12],
"system": {"cpu_busy_percent": 3.9, "cpu_max_frequency_khz": 960000, "mem_total_kb": 1908756,
"mem_available_kb": 854296, "mem_used_kb": 1054460, "swap_total_kb": 1048572,
"swap_used_kb": 403992, "cpu_temperature_c": 40, "gpu_temperature_c": 39,
"load_average": [3.16, 3.29, 3.12]},
"runtime": {"renderer_deaths": 0, "last_renderer_death_ago_ms": null,
"last_page_finished_ago_ms": 366490, "last_page_error_ago_ms": 1013827,
"last_page_error": "HTTP 404", "last_page_url": "https://grafana.example.net/d/wall",
"auth_lockouts": 0, "last_auth_lockout_ago_ms": null, "last_auth_lockout_host": "",
"recycles": 0, "last_recycle_ago_ms": null, "last_recycle_reason": ""},
"display": {"screen_on": true, "off_method_effective": "sleep",
"off_method_reason": "Display off turns the screen off. A remote wake or the power button turns it back on.",
"off_method_warning": false, "auto": false, "has_light_sensor": false,
"source": "manual", "brightness_percent": 40, "system_raw": 102, "system_scale_assumed": 255},
"light": {"on": false, "color": "255,0,0", "brightness": 100},
"ambient": {"active": false, "mode": "pictures", "start_after_seconds": 120, "off_seconds": 900, "dim_percent": 20,
"on_wake": "ambient", "url": "", "picture_seconds": 20, "transition": "fade",
"picture_fit": "fit", "shuffle": false, "one_per_start": false, "credit": true,
"credit_corner": "bottom_left", "pictures_state": "6 pictures from Holidays.", "pictures_problem": null,
"pictures_readable": true, "album": "Holidays", "albums": 2,
"picture": {"title": "The Starry Night", "credit": "Vincent van Gogh, 1889"}, "problem": null,
"summary": "Pictures after 2 min, display off 15 min after Ambient starts."},
"config": {"dashboard_url": "https://grafana.example.net/d/wall", "dashboard_shows": "page", "dashboard_integration": "", "dashboard_cameras": "", "camera_layout": "auto", "camera_big": "", "camera_names": false, "device_id": "hallway-panel",
"settings_sequence": "TL,TL,TL,TL", "launcher_sequence": "BR,BR,BR,BR",
"stats_overlay": false, "volume_buttons_disabled": false, "orientation": "auto", "display_off_method": "auto",
"has_light_sensor": false, "auto_brightness": false, "web_admin_enabled": true,
"http_port": 8080, "http_tls": true,
"fleet_port": 8081, "fleet_listening": true, "fleet_state": "Listening on port 8081",
"http_certificate_sha256": "F0:4D:30:A1:3D:67:35:08:11:C8:93:F4:28:EA:C3:69:D3:D9:BA:77:3B:DB:97:31:3B:B7:AB:C2:A7:50:7D:63",
"http_certificate": "own", "http_certificate_problem": "", "http_certificate_upload": "",
"mqtt_host": "192.0.2.10", "mqtt_port": 1883,
"browser": {"user_agent": "", "text_size": 100, "page_zoom": 0, "dark_look": false,
"back_after_s": 0, "sign_in": false, "page_camera": false, "page_microphone": false},
"certificate_pins": [{"host": "ha.home.example", "sha256": "3A:9F:...:C2"}], "certificate_waiting": null,
"cameras": [{"name": "Door", "url": "http://192.0.2.20/snapshot.jpg", "full": "", "sign_in": true}],
"camera_groups": [{"name": "Front", "cameras": ["Door"]}],
"network_speaker": false, "network_speaker_port": 2325, "network_speaker_state": "off"},
"integrations": [{"id": "webvalue1", "definition": "webvalue", "definition_name": "Value from a web address",
"name": "Solar", "enabled": true, "state": "ok", "status": "Answering", "updated_at": 1792680146192,
"settings": {"url": "http://192.0.2.30/status.json", "path": "power", "type": "Number", "unit": "W",
"header_name": "", "interval_s": "60"}, "secrets_set": [],
"values": {"value": {"sensor": "int_webvalue1_value", "name": "Value", "type": "number", "unit": "W",
"available": true, "value": 512}}}],
"integration_values": {"int_webvalue1_value": 512}
}
A real document, with the addresses, the page and the combinations replaced. On a panel with no battery, a PoE wall panel or a screen on a DC adapter, battery.present is false, every other battery field is null, and power.source says mains.
Every field, explained
MQTT
<id> below is the panel’s device id, hallway-panel in the examples. Two panels on one broker need two different ids.
Connection
Topics
Commands over MQTT
The same commands and arguments as over HTTP. A bare name is enough for a command without arguments; the envelope carries arguments and an optional id of up to 96 characters, echoed in the result so you can match replies to requests.
On kiosk/hallway-panel/command/result
Result
With "percent":150
With a payload that is not JSON and not a command name
Two more rules. A payload over 16 384 bytes is refused with payload exceeds 16384 bytes. A command the broker had stored as retained and delivers when the panel connects is refused with retained commands are refused; publish without the retain flag, and the panel clears it from the broker: a retained command would otherwise run again on every reconnect.
MQTT discovery
One retained bundle on homeassistant/device/<id>/config creates the whole device, named Muralis <id>. Every entity reads the state topic and sends to the command topic, so nothing has to be written in YAML.
Each entity has the name below on every surface: the panel, the web admin and MQTT. Its key in the bundle is that name in lower case with underscores (Ambient start after is ambient_start_after), and its unique id is <id>_<key>. Three kinds are keyed by what does not change when they are renamed: an automation’s switch by the rule’s id (automation_<rule id>), an integration’s value by its sensor id, and a camera’s button by its name. A select shows the same words as the panel and sends the command’s value, as the words in brackets in the command tables.
More about which entities are announced
The manufacturer and model come from the hardware, the software version from the app. An entity the panel cannot serve is not announced at all: no battery sensors without a battery, no automatic brightness without a light sensor, no auto orientation without an accelerometer, no reboot button and no sleep option without the device-owner install.
An entity the panel announced and then stops announcing (a sensor switched off, a deleted rule) is removed from the smart home. The panel removes only what it announced itself, so a new panel sends no removal at all. A removal the smart home misses because it is offline at that moment leaves the entity unavailable until you delete it, as with other MQTT devices.
Liveness
A separate entity, MQTT state, is a connectivity sensor on the availability topic with a 90 second expiry. The panel says online every 30 seconds; 90 seconds of silence turn the sensor off, even if a broker restart brought back a stale retained online. A panel that goes quiet reads unavailable in the smart home, never a stale online.
Beyond the API