Repository navigation
BACnetSim is now built on sme-sim-common 1.x, the shared base of the
SME simulator series (web shell, standard HTTP routes, behaviors, templates, Excel workbook and CLI helpers).
Configs, Excel point lists and EDE files from 0.4.0 load unchanged; Excel exports are cell-identical to 0.4.0.
Changed (breaking)
- Python 3.11 or later is required (was 3.10). FastAPI, PyYAML, python-multipart and openpyxl now come with
sme-sim-common[xlsx]>=1.0,<2. - Excel point-list export moved to
GET /api/config/xlsx;GET /api/config/export?format=xlsxnow returns 400
(format=yaml|json|edeare unchanged). POST /api/devicesandPOST /api/devices/{id}/duplicatereturn{"ok": true, "name": <device id>, "device": {...}}
(duplicate returned{"device_id", "name"}).- Event log entries (
/api/state,/ws) carrylevelandmessage(wastext); the BACnet category stays inkind. - Error responses use the sme-sim-common body (
detailpluserror); Excel import row errors are listed inerrors.
Added
- CLI:
--http-portfor the web UI port (--portis still accepted),--browserto open the web UI in the
default browser (still off by default;--no-browser),--templates-dirfor user templates,--version, and
sme-bacnet-sim validate CONFIGto check a config file without starting the simulator (exit code 2 on errors). - HTTP API:
GET /api/version,POST /api/templates/reload,POST /api/templates/from-device/{id}(save a device
as a user template).
Changed
- Web UI uses the shared sme-sim-common shell (menus, About / Help, event log, dialogs, light / dark theme); the
brand blue accent, default port 8080 and the browser storage key are unchanged. - File → Import sends every file type (YAML, JSON, Excel
.xlsx, EDE.csv/.zip) toPOST /api/config/import. - Duplicating a device still uses the first free device ID after the source (skipping the router's device ID).
- Excel: the cell-limit warning uses the shared wording (
Devices row 3, column 'description': longer than 32767 characters (Excel cell limit), left out); with errors on several sheets, errors are listed sheet by sheet after
all sheets are read. - Docker image starts the web UI with
--http-port 8080. - Excel import:
Networkrows now override the running network / simulation settings key by key; keys that are
not listed or have an empty value keep their running value (they used to fall back to the defaults) (#8).
Fixed
- Device list subtitle (
device {id} · address …) and the missing Japanese / Chinese label for BBMD mode in the network dialog.