support_tier() reports dosing pumps (DoseV1) as "unsupported" #2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 showsunsupportedfor a Versa that otherwise works fine.Before I put together a PR, I'd like your take on two things:
Name of the tier. Something like
"dose", or"dose (read-only)"to make clear that there's no dose schedule writer yet?Schedule writes in ha-mobius.
_live_group_members()inservices.pyrejects targets by a denylist ("pump (experimental)","unsupported"). A new tier would pass it, andwrite_schedule_groupwould then take the non-light branch and callset_pump_schedule()on the dosing pump; with agroup_maskset, lights sharing that mask would be added to the write too. (_resolve_tank_groups()inwebsocket_api.pyalready uses an allowlist, so the cards are fine.) I'd changeservices.pyto 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.
dose. eventually we'll implement the write part.