You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Move Dyad devices from query_values to typed traits with async updates, and cover the features of the whole Dyad family.
Traits hold typed state, are updated from the device's pushes and notify listeners.
Each trait can refresh(), which only publishes the query. The library refreshes on start and when the device comes back; nothing waits for a matching response.
Commands are grouped into traits.
Capabilities live in roborock/dyad_features.py, in the style of the V1 device_features.py. A command or value is offered only where the Roborock app offers it.
Existing methods keep working until consumers have moved.
Tested on a Dyad F25 Ultra (roborock.wdv.a194).
Observed device behaviour (F25 Ultra)
Changes are pushed on their own, but nothing arrives on subscribe.
About 5 minutes after leaving the dock the device sends {"online": false} (message protocol 500) and stops answering.
On waking it sends {"online": true}, but not its state.
Plan
One small PR at a time. Larger steps may be split.
Activity