v0.7.1 — Fix schedule-to-valve mapping for renamed valves (#3)
Fixed
-
Schedules shown under the wrong valve when valve names don't sort in valve-number order (#3). The card derived a valve's schedules by alphabetically sorting the device's
valve.*entity_ids and using the 1-based position — an assumption that only holds while valves keep their default names. After renaming valves in the Gardena app, schedules were permuted across zones.The card now reads the real valve number from py-smart-gardena's
service_idattribute ({device_uuid}:{valve_number}) via the backend, which is independent ofentity_idorder. The alphabetic heuristic is kept as a fallback for the kayloehmann backend and for pre-patch py-smart-gardena installs that don't exposeservice_id, so those paths are unchanged (no regression).Thanks to @k0taperk0t for the detailed report and root-cause analysis.
Install
HACS will offer the update automatically. For manual installs, download gardena_smart_system_card.js below and replace your existing copy (no configuration changes required).