• v0.13.0 6199f65dd0

    v0.13.0
    All checks were successful
    Release / release (push) Successful in 4m16s
    Stable

    r3pek released this 2026-11-15 23:38:15 +00:00 | 0 commits to main since this release

    • Requests on one connection go one at a time: a lock per connection is
      held for the write of a request's fragments and the wait for its reply,
      and relayed requests take their gateway's lock. Concurrent callers could
      interleave fragments (neither request then got a reply) and load the
      mesh relay with several requests at once.
    • A device that stops answering fails fast: the one-at-a-time fallback of
      the batched reads stops at the first request that gets no reply, instead
      of waiting for a timeout per attribute. Relayed timeouts raise the new
      RequestTimeout (a TimeoutError, still an IOError).
    • The fail-soft getters (get_device_info(), the diagnostic getters,
      get_vectra_info() and the other all-or-none reads, ...) read their
      attributes in one batch instead of one request each, and an instance
      reads the supported attributes once.
    • Dose schedule points with zero padding after the 9-byte primitive are
      decoded; when an active point can't be decoded, the daily target and the
      volume expected so far are None instead of a too-low value
      (decode_dose_schedule()).
    • refill_container() raises the read error itself when the container size
      can't be read, instead of reporting an unknown size.
    • The 1-byte Get/Set-attribute encoders raise ValueError for an index,
      count or length above 255 instead of sending its low byte; insolation
      tables are read in chunks that follow what came back and stop at index
      255.
    • A relayed CoAP error reply without an inner frame is reported by its
      response code, not logged as a malformed reply.
    • start_scene() raises ValueError for a scene id or duration that isn't
      a 0-65535 integer, instead of struct.error.
    • A failed write no longer leaves its request pending, connect() starts
      with an empty receive buffer, and futures come from the running loop.
    • get_device_summary() of a dosing pump that reports no container level
      says so in its support note (and has "dose": None), instead of
      claiming no parser is implemented.
    • Dosing pumps (DoseV1, Versa): get_full_poll_batch() returns the
      container level and dosing state as FullPollResult.dose (DoseInfo),
      with the daily target and the volume expected so far from the dose
      schedule. The schedule is cached by its checksum like the others; the
      container size, monitor and sensor type are static attributes.
    • get_dose_info(), set_container_volume() (also resets the remaining
      volume, like the app) and refill_container().
    • mobius.dose: dose schedule points (DoseSchedulePoint, built on the
      same point header as the light and pump points) with their 9-byte
      DosePrimitiveValue, decoded and encoded; a dose schedule writer is not
      implemented yet.
    • Attribute reference: the dosing pump attributes and their enums.
    • set_battery_backup_speed(), set_boosted_battery(),
      set_schedule_intensity() and set_advanced_features() raise
      ValueError for a True/False numeric value instead of writing it
      as 1 or 0.
    • support_tier() reports dosing pumps as "dose" instead of
      "unsupported". Their schedule is read only: code that writes schedules
      must not treat "dose" like a pump (the CLI's schedule-file load now
      refuses anything but light and pump). get_device_summary() adds the
      dosing pump's DoseInfo as "dose" instead of the "no parser
      implemented" note.
    Downloads