Repository navigation
Release Notes 3.0
Version 3.0 unifies gateway devices under MiHomeLib.Devices and makes network reads and writes explicit throughout the miio-device and MQTT-gateway APIs. Applications upgrading from earlier versions need source changes. Migration guide · Wiki home
- Shared Zigbee device types work across supported Gateway2 and MQTT protocols. Device state is exposed through read-only properties and asynchronous events.
- Network-backed properties become
Get…andSet…methods with matching Async versions. MQTT gateway settings follow the same convention. - Namespaces follow project folders. Several protocol, transport and parsing implementation types become internal. Legacy helper and device base types are removed.
-
LastTimeMessageReceivedbecomesDateTime?in UTC. Source timestamps are available separately throughLastMessageSourceTimeUtc. - Event names and arguments are unified. Value-change events generally pass the previous value. Several concrete device types are sealed and inheritance relationships have changed.
- Expanded local functions for Xiaomi Robot Vacuum X20 Plus and Xiaomi Smart Air Purifier 4 Lite, including status snapshots and settings.
- Additional unified Zigbee, BLE and Mesh devices, including Aqara Opple switches, T1 relay, dual relay, BLE sensors and Mesh wall switch.
- Explicit confirmed power commands for XiaomiMiSmartPowerPlugCN and AqaraDualWirelessRelayCN over the built-in Lumi MQTT transport.
- Gateway2 write_ack recognition and error diagnostics with the device SID. ACK snapshots are excluded from state updates, and unknown ZNCZ02LM read statuses preserve its last recognized power state.
- MQTT reconnection, separate protocol reception and application delivery, bounded message queues and isolated callback failures.
- Discovery retains successful initial property reads when another property fails. Reports received during Zigbee initialization are delivered after client subscription.
- Improved miio retry safety, response correlation and packet validation. Nonrepeatable requests preserve an unknown outcome after a lost response.
- MQTT no-motion timers start before client callbacks. Selected BLE device descriptions show unknown values until the corresponding broadcasts arrive.
- Release publication tests the built NuGet package on .NET Framework 4.8.1, .NET 8 using the netstandard2.0 assembly, and .NET 10.
Physical reads were checked for X20 Plus and Air Purifier 4 Lite. MQTT power writes and device acknowledgements were checked on ZNCZ02LM and both LLKZMK11LM channels. Aqara T1 returned an accepted write response followed by an independently numbered state report. Gateway2 discovery and ZNCZ02LM switching were checked on firmware 1.4.1_176. Its write_ack could contain the preceding state and omitted a supplied request id. Gateway2 hardware observations
Gateway2 subdevice writes provide transport-submission completion. X20 Plus map retrieval through Xiaomi Cloud is outside this release. Some X20 Plus commands and model-specific event mappings still require user hardware validation. The multi-day application run and the Windows package execution check must be recorded during release stabilization. Validation checklist