H5054 Water-Leak Detector Support (issue #62)
Adds a Water Leak moisture binary sensor for standalone Govee H5054 water detectors that appear in the developer device list.
What's new
- Capability-based detection of the
bodyAppearedEventevent instance — the generic event Govee's developer API exposes for H5054 detectors. Not SKU-locked. - New
binary_sensor.<name>_water_leak(device classmoisture) per detected device. - Leak trip parsed from the REST device-state poll and, best-effort, from MQTT pushes.
Known limitation
The exact MQTT flat-key for a live trip is not yet confirmed (no captured trip payload). Several plausible keys are accepted, and any unrecognized leak-shaped push is logged at debug so the real key can be added. If your H5054 doesn't flip on a real leak, enable custom_components.govee: debug, trip a detector, and report the logged payload keys on issue #62.
Internal
- Test-suite fix: shadow pytest-homeassistant-custom-component's
enable_event_loop_debugautouse fixture (broken under pytest-asyncio ≥1.0 for synchronous unit tests).