v1.14.6: Fix binary_sensor routing
Bug fixes
Binary sensor entities now appear correctly in Home Assistant
Two bugs prevented binary_sensor entities (including all STATUS.XML boolean fields) from ever reaching the binary sensor platform:
-
Missing routing branch — coordinator._process_entities had no elif for entity_type "binary_sensor". Those entities fell through to processed_data["sensors"] and were silently dropped when real sensor entities existed.
-
Singular/plural mismatch — binary_sensor.py called get_entities_by_type("binary_sensors") (plural) while every other platform and the coordinator's entity store use the singular "binary_sensor". The result was always an empty set.
After this fix, these STATUS.XML fields correctly appear as binary sensors in HA:
SCHLAZENI, STEPTUV, SHDOIGNORE, SHDOSTAV, SSTAVJEDNOTKY, SSTAVKOTLU, and all 20 circuit flags SOBEH0-SOBEH9 RUN/VIS.
Tests added
- tests/sample_data/STATUS.XML — real XML captured from the live controller (38 fields, exact NAME/VALUE attributes)
- tests/test_status_xml_parsing.py — 13 unit tests covering XML parsing, descriptor metadata, and the binary_sensor routing logic