Skip to content

0.12.0

Choose a tag to compare

@balloobbot balloobbot released this 08 Oct 15:41

Generic device collections

Create DeviceCollection(connection) without model classes to track every device exposed by the connection, including devices without a known catalog identity. Collections with registered models continue to select matching devices. Pass an explicit empty model list to select none.

Stored LoRaWAN status

Device stores incoming status reports before calling the model's handle_event(). Read latest_status, battery_level, external_power_source, and downlink_margin without calling a superclass handler. Vendor-specific battery readings remain separate from LoRaWAN MAC status.

Common status and model updates notify listeners after the event has been handled. The CLI includes the common status properties in its output.

Device library examples

The examples add SenseCAP S2102 illuminance, Dragino LHT65 telemetry, and Milesight TS201 and UC51x telemetry with official catalog identities. SenseCAP S2101 and S2102 accept FPorts 1 and 2. UC51x support reports state without sending valve commands.

Captured S2101, S2102, and TS201 payloads are included as offline regression fixtures. These device libraries are examples; the installed package remains the shared connection library.

Documentation

Each event class now has its own field table. The modelling and testing guides cover generic collections, common status, and captured payload fixtures.