Release notes
The product follows semantic versioning. The public HTTP surface is /api/v2; a breaking change needs a new API version.
4.0.1
mii Lite now lets your own applications read plant data without the Console API: a read-only MQTT broker and read-only PostgreSQL views.
Added
- Public read-only MQTT broker (Lite). Subscribe to live values on topics
mii/uns/#. Topic pattern:mii/uns/<enterprise>/<site>/<area>/<work center>[/<work unit>]/<equipment>/<tag>. Loginmii-reader. Payload:Set{"value":12.4,"quality":"good","ts":"2026-12-02T10:15:00.123Z","tagId":"..."}MI_LITE_MQTT_PUBLIC_LISTEN(for example0.0.0.0:1883) to open it. - Read-only PostgreSQL views (Lite). Role
mii_readerreads the schemamii_data:samples,latest,tagsandalarms. Statements are limited to 60 seconds and 10 connections. SetMI_LITE_PG_PUBLIC=onto open it. The port isMI_LITE_PG_PORT(default 5433). DATA-ACCESS.txt. The data folder holds the MQTT and PostgreSQL logins and example SQL. mii writes it only while at least one outside access is open and removes it otherwise.- Docker image defaults. The
mii-liteimage opens MQTT (1883) and PostgreSQL (5433) read-only access by default. SetMI_LITE_MQTT_PUBLIC_LISTEN=offandMI_LITE_PG_PUBLIC=offto close them.
Upgrade notes
- On Windows and Linux both outside accesses are off until you set them in
mii.env. Windows opens only TCP 8080 in the firewall; add your own rules for 1883 and 5433. - A public port that collides with another Lite port stops the start with an error.
- Install over the old version. Lite makes an automatic backup before every upgrade.
See Lite on Docker and Read with SQL.
4.0.0
Added
- Editions. Free, Lite and Enterprise come from one build. The signed licence decides. Free clears configuration, history, alarm history and proposals every 3 hours. The audit log is never wiped.
- mii Lite. One launcher for Windows (preview), Linux (
.deb, tarball, systemd) and Docker. Commandsmii backup,restore,rollbackandstop. Automatic backup before every upgrade. Ports throughMI_LITE_*_PORT. - Quality and units in history. Values keep
good,uncertain,badorunknown. Retention per plant, class and tag with a dry run and approval for shortening. Optional rollups. CSV and Parquet export. - OEE. Availability, performance and quality from shifts, orders and downtime reasons, plus a Reports screen.
- Governance. Owner, classification and egress rules. Completeness, lineage and catalogue export.
- Scoped access by area, work center, work unit or equipment for people, API keys and AI credentials.
- Approvals, policies (Enterprise) and safe write-back. Safe write is opt-in (
MI_SAFE_WRITE). - Uplinks. UNS topics from the plant model, per-tag topics, a topic prefix and webhook delivery.
- Public API at
/api/public/v1with API keys (mii_pk_) and OpenAPI 3.1. - MCP in the Console at
/api/v2/mcp. Read, propose and approve. No separate agent process is needed. - Tamper-evident audit chain with verify and export.
- Alarms are evaluated in the Site Runtime again.
- Knowledge graph, process model and 20 equipment templates. Large-group and setup-speed fixes in the OT runtime.
- Remote Site Runtime (
mii-runtime). A standalone Windows service, a Linux systemd package (.debor tarball) and themi-siterunimage, with all device protocols. It needs outbound HTTPS 443 only: no inbound port at the site and no database password at the edge. mi-ingestgateway. Per-runtime mTLS certificates from a one-time enrollment token, renew and revoke from the Console. Batches are deduplicated by runtime and sequence and acknowledged only after the historian write. The runtime keeps a disk store-and-forward outbox (live first, then backlog), the gateway applies 429 back-pressure, and replicas are stateless.- Runtime command channel. The Console reaches a remote runtime through a connection the runtime opens: test connection, browse, tag and group writes, drivers, live values and alarms.
- Runtimes page. Install steps per platform, enrollment, certificates, ingest lag, buffer, errors, and "degraded" with the reason when ingest is unreachable.
- Preview features. Windows package (until code signing), Helm chart and high availability, fleet control plane (Enterprise), business-system connectors (Enterprise). Windows Server 2012 R2 has limited support.
Fixed
- Rule actions write to devices again. The write sent by a rule was refused by the runtime since the PLC write hardening.
- Large runtime packages no longer stop after 30 seconds on slow links.
- Windows: Modbus polls at the configured rate. FOCAS, HEIDENHAIN and HSMS send each request in one write. The OT runtime and the rules engine stop gracefully.
Breaking changes
Production licence key
4.0.0 trusts the production licence key only. Licences signed with the development key (every 3.x licence and every 4.0.0 pre-release licence) are refused. Lite and other licences must be re-issued before you upgrade: ask for a new licence with the same customer, Installation ID and limits. An invalid licence never wipes your configuration.
- Agent keys (
mii_ac_*) are refused on Console REST routes outside a short allow list. Use MCP or the public API. - MCP quality text is lowercase:
good,uncertain,bad,unknown. - Metrics. With
MI_METRICS_ADDRESSset,/metricsand/readymove to that listener (404 on the UI port unlessMI_METRICS_PUBLIC=true).MI_METRICS_TOKENadds a bearer token. - Secrets are redacted in API responses and shown as "saved". Send nothing to keep a secret, or
nullto clear it. - Proposals older than 24 hours expire.
- Control plane needs a database, a token and TLS.
Upgrade notes
- Take a backup first. Lite does it for you.
- Migrations run from 014 to 029 and later at start. Rolling back needs
migrate --down-to 014_process.sql, and data in new tables is lost. - Topic prefix. A stored prefix is not applied until you apply it.
- Webhook delivery is off for existing webhooks until you enable it in Uplinks.
- OPC UA server Uplink listens after the upgrade with writes off.
- Store port.
MI_LITE_STORE_PORT(default UDP 17001) is configurable. - Nothing is deleted by retention until you save a rule. Egress defaults to allow.
- Remote runtimes: point DNS
ingest.<your domain>at the plant, pass TLS through (SNI passthrough), and setMI_INGEST_PUBLIC_URLandMI_CONSOLE_PUBLIC_URLon the Console.
Known limits
- The runtime command channel needs one Console replica.
- Deleting a runtime in the Console does not uninstall it at the site. Run
mii-runtime uninstall --purgethere. Remote decommissioning is planned for 4.1. - Upgrading a remote runtime pauses polling for about 9 seconds.
- Windows packages are not code-signed yet.