Technical documentation & secure deployment center
Official multi-arch image iothost/devicehub-api (linux/amd64 & linux/arm64), secure commissioning, Modbus register setup, MQTT TLS, and license activation.
1. Getting Started & Requirements
DeviceHub ships as a lightweight (~119 MB) Docker image supporting linux/amd64 and linux/arm64, allowing deployment on Linux servers, Windows/macOS industrial PCs, or Raspberry Pi 4/5.
Docker Engine 24+ and Docker Compose v2 installed on the host.
Recommended minimum resources: 1 vCPU, 512 MB RAM (up to 1 GB for >5,000 tags), and 1 GB persistent storage.
Local TCP reachability to the Modbus port (default 502) of your meters or RTU-to-TCP gateways, plus your MQTT broker (1883/8883).
2. Quick Installation with Docker
Pull the official image from Docker Hub and launch the service with persistent storage to preserve your plant configuration.
Always attach persistent Docker volumes to preserve your device configurations and license state across container updates.
The web management and live monitoring interface becomes immediately available on your published port.
Quick deployment with Docker CLI
# 1. Descargar la imagen oficial (amd64 / arm64)
docker pull iothost/devicehub-api:latest
# 2. Iniciar el contenedor con vinculación estable de hardware
docker run -d \
--name devicehub-gateway \
--restart unless-stopped \
-p 4000:4000 \
-e NODE_ENV=production \
-e TZ=UTC \
-v /etc/machine-id:/etc/machine-id:ro \
iothost/devicehub-api:4.0.0
3. Recommended Docker Compose Setup
For production OT/IT environments we recommend Docker Compose with automatic restart, resource limits, and an HTTPS reverse proxy (Caddy or Nginx).
Restrict management UI access to your private plant network or corporate VPN.
Define container memory limits matched to your configured device scale.
Starting in version 3.1.0, DeviceHub removes all default users and passwords in favor of a mandatory first-boot Administrator Setup wizard.
When opening http://localhost:4000 for the first time on a fresh installation, the "Initial Setup — Create Administrator" wizard launches automatically.
Enter your full name, username, time zone, and strong personal password. Once completed, the setup endpoint is permanently locked.
Create Operator (USER) accounts for daily shift monitoring and reserve the Administrator (ADMIN) account strictly for engineering changes.
Built-in industrial security: no DeviceHub v3.1.0+ deployment shares default credentials. In addition, the container automatically provisions a 30-day full Enterprise Trial (20,000 tags, 1,000 trends, and 2,000 alarms) on first boot.
5. Configuring Modbus TCP Devices & Templates
Organize field assets in a clear hierarchy: Device → Polling Groups → Tags.
Go to Configuration → Devices (Drivers) → + New Device. Select a built-in template (e.g. SCHNEIDER PM5560, ABB M4M, FINDER 7M38) or create a custom device.
Enter meter IP, TCP port (502 or your gateway port), Modbus Unit ID, timeout (3000–5000 ms), and retry count.
Tune each group polling interval and verify register addresses, function codes (FC01–FC04), data type, and scaling.
6. MQTT Brokers & Scheduled Tasks
Stream JSON telemetry to any standard MQTT broker and enable on-demand MQTT queries.
Under Configuration → App (Gateways), add broker host, port (1883 or 8883 TLS), credentials, and CA/cert/key for mTLS.
Create a Scheduled Task linking Broker + Device + Group + target Topic + interval in milliseconds.
For centralized on-demand reads, configure writeRequestTopic and writeResponseTopic and publish a JSON request with deviceName and groupName.
Automate critical alerts for overload, out-of-range voltage, or low power factor.
First create a profile under Messaging → Email (SSL/TLS SMTP) and/or Messaging → Telegram (@BotFather token + Chat ID) and test delivery.
Under Configuration → Alarms, choose the Modbus tag, operator (=, !=, >, >=, <, <=), threshold, delay, priority, and Appear/Vanish notification channels. Comparisons use 1-decimal ceiling rounding.
Use dynamic %alarm%, %operator%, %value%, and %compare% placeholders in bilingual ES/EN templates and track the full NEW / ACK / VAN / IDL lifecycle.
8. 30-Day Trial, Subscriptions & .lic Activation
Automatic 30-day full trial on first start (20,000 tags, unlimited alarms) and local activation via signed .lic files or online sync.
When starting without a license, DeviceHub automatically activates a 30-day full evaluation. On air-gapped networks, opt out of online trial registration with DEVICEHUB_OFFLINE=true.
When the trial expires (or a monthly subscription after its 7-day grace period), all your data remains intact: polling pauses while you keep access to copy your Hardware Token from Info → License.
Register your Hardware Token in the Customer Portal, order a perpetual or multi-month license, upload your payment proof, and download your .lic file (or click "Sync license online" on monthly renewals).
9. Troubleshooting Common Issues
Quick diagnostics for the most common field commissioning issues.
Modbus TCP Timeout: test port 502 reachability from the Docker host, verify Modbus Unit ID (1 or 255 on Schneider), and ensure another master is not holding the meter socket.
Unexpected numeric readings: check 0-based vs 1-based register offset per manufacturer manual, data type (FLOAT32 vs INT32), and scaling factor.
Tag, trend, or alarm limit error: open Info → License or Configuration panels to inspect usage against your plan quota (Trial inherits Enterprise limits: 20,000 tags, 1,000 trends, and 2,000 alarms).
Hardware Token mismatch after server migration: request a license re-issuance providing the new host Hardware Token.
10. Docker Hub Update Center & System Backups (/updates)
Keep your DeviceHub instance updated from the web UI with full preservation of your license and plant data.
Open System → Updates (/updates) to check for new official releases published on Docker Hub (iothost/devicehub-api) and inspect release notes.
Before updating, the system automatically creates and verifies a full backup of your configuration, trend history, and license certificate.
All updates 100% preserve activated perpetual or commercial licenses; in standalone mode (without the update-manager sidecar) the UI clearly displays the host Docker commands to switch the container image.
11. Historical Trending (v4.0.0)
Log, aggregate, and visualize industrial time-series directly inside DeviceHub using high-performance local embedded storage.
Configure points under Configuration → Trends by selecting device, group, and tag, mode (INTERVAL, COV with deadband & heartbeat, or AVERAGE), scale factor (e.g. 0.001 for Wh → kWh), decimals, color, and tiered retention (14d raw, 90d 1m, 1y 15m, 3y 1h, 1d unlimited).
Analyze up to 6 simultaneous series under Monitoring → Trends with per-unit multi-Y axes, distinct geometric markers, floating hover tooltip, live real-time updates, alarm threshold overlays, and CSV, Excel (.xlsx), or PNG image export.
The shared Read Bus deduplicates concurrent polls of the same Modbus group across MQTT, Alarms, and Trends to protect RS-485 buses.
Official step-by-step video tutorials
Hands-on series covering Docker deployment, Modbus TCP polling, MQTT TLS, alarms, and license activation.