Skip to content

Add bridge device support#379

Merged
sebr merged 1 commit intomainfrom
bridge-device
Apr 9, 2026
Merged

Add bridge device support#379
sebr merged 1 commit intomainfrom
bridge-device

Conversation

@sebr
Copy link
Copy Markdown
Owner

@sebr sebr commented Apr 9, 2026

Summary

  • Registers bridge (Wi-Fi Hub) devices in Home Assistant with a connectivity binary sensor showing online/offline status
  • Links child devices (sprinklers, flood sensors) to their bridge via via_device, creating a parent-child device hierarchy in the HA UI
  • Exposes MAC address on all device types via CONNECTION_NETWORK_MAC in DeviceInfo
  • Bridge devices are always included regardless of user device selection in config flow — they are not shown in the device picker since they are infrastructure, not controllable devices

Changes

  • binary_sensor.py: Added connectivity binary sensor for bridge devices
  • __init__.py: Added via_device linking, CONNECTION_NETWORK_MAC connections, gateway-to-bridge mapping
  • coordinator.py: Added gateway_to_bridge attribute
  • util.py: filter_configured_devices always includes bridge devices
  • strings.json: Added connectivity sensor translation
  • Tests for connectivity sensor, via_device linking, and bridge auto-inclusion

Fixes #338

…king

- Register bridge (Wi-Fi Hub) devices in Home Assistant with a connectivity
  binary sensor showing online/offline status
- Link child devices (sprinklers, flood sensors) to their bridge via
  via_device using device_gateway_topic mapping
- Expose MAC address on all devices via CONNECTION_NETWORK_MAC
- Always include bridge devices regardless of user device selection
- Exclude bridges from config flow device picker and device removal logic
@sebr sebr merged commit 9b709d4 into main Apr 9, 2026
4 checks passed
@sebr sebr deleted the bridge-device branch April 9, 2026 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement - Provide additional Hub & Flood Sensor “Device Information” as shown in the Orbit B-Hyve app

1 participant