Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

sme-bacnet-sim

Latest version: v0.5.1

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
PyPI package Publisher: toshinsai
2 Stars
0 Forks
2 Versions
Python Repo language

Scan summary

sme-bacnet-sim was last scanned on 26 Nov 2026 at version 0.5.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 26 Nov 2026.
  • Findings: No rules fired in version 0.5.1.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.5.1 LATEST 26 Nov 2026 No rules fired
0.5.0 26 Nov 2026 No rules fired

No rules fired in 0.5.1

Findings

Findings for v0.5.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.5.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

A BACnet/IP device simulator with a live web UI. Simulate lighting controllers, air conditioners, AHUs, power meters, sensors, PV inverters — or any device you describe in YAML — and watch their values change in the browser while a real BACnet client (Yabe, Niagara, your own EMS…) reads and commands them.

  • Many devices on one port. A built-in BACnet router owns UDP 47808; every simulated device sits on a virtual network behind it (default network 100), so clients discover them all with one Who-Is.
  • Realistic behavior. Room temperature follows the set point when the AC is on, energy integrates power, lights report feedback and power, PV output follows a day curve and respects a curtailment limit.
  • Real BACnet semantics. Commandable outputs with a 16-level priority array and relinquish, out-of-service override, COV increments, Device / Network Port objects.
  • Configurable. Import / export YAML or JSON, edit any device as YAML in the browser, add devices from templates, or save back to the config file.
  • Live UI. Values stream over WebSocket, trend chart per point, event log of BACnet and UI writes.
  • English, Japanese and Simplified Chinese. The UI follows the browser language; switch it under View → Language.

Built on bacpypes3 (asyncio BACnet stack, supports BACnet/IP, IPv6 and BACnet/SC) and FastAPI. No front-end build step.

SME BACnetSim is free and MIT-licensed, developed by smart-edge (智届科技) — custom development is available, see Commercial support & custom development.

Screenshots

Quick start

python -m venv .venv
.venv\Scripts\pip install -r requirements.txt
.venv\Scripts\python -m sme_bacnet_sim --config configs/demo-building.yaml

Open http://127.0.0.1:8080/ . Options:

Option Meaning
-c, --config FILE YAML/JSON config (defaults to configs/demo-building.yaml)
--ip 192.168.1.10/24 NIC address for BACnet/IP (default: auto-detect, /24)
--bacnet-port 47808 BACnet/IP UDP port
--foreign-bbmd 192.168.2.1[:47808] Register as a foreign device with this BBMD (overrides config)
--foreign-ttl 300 Foreign device Time-to-Live in seconds (overrides config)
--host 0.0.0.0 --http-port 8080 Web UI bind address (default localhost only)
--browser Open the web UI in a browser on start (not opened by default; --no-browser is the default)
Connecting a BACnet client

The client sees the router (device 4194000) at <ip>:47808 and the simulated devices at addresses such as 100:1, 100:2 (network 100, MAC 1, 2…) routed through it. In Yabe: Add device → BACnet/IP over UDP, then Who-Is.

Same PC caveat: on Windows, a client on the same machine may not receive broadcast replies (Who-Is/I-Am) — unicast works. Run the client on another machine, bind the simulator to a different NIC than the client, or set network.mode: bbmd and register the client as a foreign device.

Client on another UDP port: Who-Is / I-Am broadcasts go to the simulator's port (47808 by default). A client bound to another port (e.g. 47809) does not receive the I-Am broadcasts and finds no devices. Either use the same port on both sides, or set network.mode: bbmd and register the client as a foreign device with the simulator (<simulator ip>:47808); the I-Am replies are then forwarded to the client.

Network settings in the web UI

Edit → BACnet network… (or a click on the BACnet/IP address in the status bar) changes the network adapter (listed by name and address/prefix, or Auto-detect), the UDP port, the IP-side and virtual network numbers, the router device ID and the mode (normal / BBMD / foreign device with BBMD address and TTL). Apply checks the settings (an address of this computer, a free UDP port, different network numbers, unique device IDs), rebinds BACnet/IP without restarting and writes the network: section back to the config file (other sections and unsaved edits are left as they are; comments inside network: are lost). Command-line options such as --ip / --bacnet-port still win at the next start. Clients have to discover the devices again after a change. Not supported: switching off Read-Property-Multiple or segmentation support (always on).

Docker
docker run --rm --network host -e TZ=Asia/Tokyo ghcr.io/smartedge-tech-dev/sme-bacnet-sim:<ver>

--network host (Linux) is needed for Who-Is / I-Am broadcasts. Without TZ the container clock is UTC, and schedules and the clock in the UI follow it (the image includes tzdata).

Foreign device registration (cross-subnet)

To reach clients on another subnet, the router port can register as a foreign device with an existing BBMD: network.foreign_device: {bbmd: "<ipv4>[:port]", ttl: <seconds>} or --foreign-bbmd / --foreign-ttl (the command line wins; TTL defaults to 300 s, port to 47808). The registration uses bacpypes3's foreign link layer: it is renewed every TTL, retried while unanswered, and cancelled (TTL 0) on stop or reload. Results (registered / NAK / no answer within 10 s / expired) are written to the event log and shown in the status bar as FD → <bbmd> (…); the snapshot API reports them in network.foreign_device.

Not supported: combining foreign_device with mode: bbmd, BBMD host names (IPv4 literals only), and reading or editing the BBMD's tables (Read-Broadcast-Distribution-Table, Read-Foreign-Device-Table and similar).

Configuration

network:
  ip: auto                # or "192.168.1.10/24"
  port: 47808
  network_number: 1       # IP-side network number
  virtual_network: 100    # network number of the simulated devices
  mode: normal            # or bbmd
  # foreign_device: {bbmd: "192.168.2.1:47808", ttl: 300}   # register with an external BBMD
  router: {device_id: 4194000, name: SME-BACnetSim-Router}

simulation:
  tick_seconds: 1.0
  time_scale: 1.0         # 60 = 1 simulated minute per second
  history_size: 600       # trend samples kept per point

devices:
  - device_id: 1002
    name: AC-1F-East
    template: split_ac             # optional
    params: {rated_kw: 2.8}        # template parameters
    objects:                       # add objects, or override template objects by name
      - {name: SetPoint, type: av, value: 24.0, commandable: true}
Objects
Key Notes
type ai ao av bi bo bv msi mso msv acc pc loop file prog tl sch cal nc ee (or full names such as analog-input, trend-log, schedule, calendar, notification-class, event-enrollment)
instance optional; auto-numbered per type
name, description name is also the variable name in expressions
units BACnet engineering units, e.g. degrees-celsius, kilowatts, percent
value initial value (binary: 0/1, multi-state: 1-based index)
states multi-state texts
active_text, inactive_text binary texts (quote "ON"/"OFF" — YAML reads them as booleans)
commandable for av/bv/msv; outputs are always commandable
min, max, cov_increment analog limits and COV increment
behavior how the value is simulated (below)
log_object, log_property, log_interval, logging_type, client_cov_increment, buffer_size, enabled trend logs only (below)
weekly, exceptions, default, targets, priority_for_writing, effective_period schedules only (below)
dates calendars only (below)
scale, prescale accumulators only (below)
scale_factor, input_object pulse converters only (below)
controlled_object, manipulated_object, setpoint, setpoint_object, proportional_constant, integral_constant, derivative_constant, bias, action, update_interval loops only (below)
file_type, access, content, path, read_only, program_state, instance_of, program_location files and programs only (below)
monitored_object, event_type, event_parameters, notification_class, event_enable, notify_type, time_delay, time_delay_normal event enrollments only (below)
Accumulators, pulse converters and loops
- {type: acc, name: EnergyPulses, units: kilowatt-hours, scale: 0.01, max: 99999999,
   behavior: {type: pulse, rate: "ActivePower * 100 / 3600"}}
- {type: pc, name: EnergyFromPulses, input_object: EnergyPulses, scale_factor: 0.01, units: kilowatt-hours}
- type: loop
  name: SupplyTempLoop
  controlled_object: SupplyTemp      # controlled-variable-reference (present-value)
  manipulated_object: CoolValve      # manipulated-variable-reference (present-value)
  setpoint_object: SupplyTempSP      # or a fixed setpoint: 16
  proportional_constant: 8
  integral_constant: 0.2
  min: 0                             # minimum-output
  max: 100                           # maximum-output
  units: percent                     # output-units
  priority_for_writing: 10

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases sme-bacnet-sim

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229