support_tier() reports dosing pumps (DoseV1) as "unsupported" #2

Closed
opened 2026-11-12 08:47:50 +00:00 by Gulaschcowboy · 1 comment
Contributor

Since #1, the library reads dosing pumps (DoseV1, Versa): container level, dose state and the daily target from the dose schedule. support_tier() still returns "unsupported" for them though, so the "Support tier" sensor in ha-mobius shows unsupported for a Versa that otherwise works fine.

Before I put together a PR, I'd like your take on two things:

  1. Name of the tier. Something like "dose", or "dose (read-only)" to make clear that there's no dose schedule writer yet?

  2. Schedule writes in ha-mobius. _live_group_members() in services.py rejects targets by a denylist ("pump (experimental)", "unsupported"). A new tier would pass it, and write_schedule_group would then take the non-light branch and call set_pump_schedule() on the dosing pump; with a group_mask set, lights sharing that mask would be added to the write too. (_resolve_tank_groups() in websocket_api.py already uses an allowlist, so the cards are fine.) I'd change services.py to an allowlist ("light", "pump") with a test that a dosing pump gets no schedule write.

If that sounds right, I'd send a small PR here (the tier, plus docs) and one in ha-mobius (the allowlist and test). The ha-mobius one needs the release with the new tier, though the allowlist part could go in first on its own.

Since #1, the library reads dosing pumps (`DoseV1`, Versa): container level, dose state and the daily target from the dose schedule. `support_tier()` still returns `"unsupported"` for them though, so the "Support tier" sensor in ha-mobius shows `unsupported` for a Versa that otherwise works fine. Before I put together a PR, I'd like your take on two things: 1. **Name of the tier.** Something like `"dose"`, or `"dose (read-only)"` to make clear that there's no dose schedule writer yet? 2. **Schedule writes in ha-mobius.** `_live_group_members()` in `services.py` rejects targets by a denylist (`"pump (experimental)"`, `"unsupported"`). A new tier would pass it, and `write_schedule_group` would then take the non-light branch and call `set_pump_schedule()` on the dosing pump; with a `group_mask` set, lights sharing that mask would be added to the write too. (`_resolve_tank_groups()` in `websocket_api.py` already uses an allowlist, so the cards are fine.) I'd change `services.py` to an allowlist (`"light"`, `"pump"`) with a test that a dosing pump gets no schedule write. If that sounds right, I'd send a small PR here (the tier, plus docs) and one in ha-mobius (the allowlist and test). The ha-mobius one needs the release with the new tier, though the allowlist part could go in first on its own.
Owner
  1. just call it dose. eventually we'll implement the write part.
  2. looks good to me 👌
1. just call it `dose`. eventually we'll implement the write part. 2. looks good to me 👌
r3pek closed this issue 2026-11-12 09:25:00 +00:00
Sign in to join this conversation.
No labels
No milestone
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
r3pek/python-mobius#2
No description provided.