Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Custom component to allow control of Eero networks in [Home Assistant](https://h
- Control network properties (ex. guest network, Eero Plus features, Eero Labs features)
- Pause access for profiles and/or clients
- Control content filters for profiles
- Device tracker entities for clients and profiles
- Device tracker entities for clients and profiles (wireless clients also report `band`, `channel`, and `channel_width` attributes)
- Sensors for various metrics
- Button entities to control features that require network restarts
- Select and time entities to control nightlight features for Eero Beacon devices
Expand Down
12 changes: 12 additions & 0 deletions custom_components/eero/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,16 @@ def extra_state_attributes(self) -> Mapping[str, Any] | None:
if manufacturer := self.resource.manufacturer:
attrs[ATTR_MANUFACTURER] = manufacturer
attrs["network_name"] = self.network.name
if self.resource.wireless:
frequency, frequency_unit = self.resource.interface_frequency
if frequency:
attrs["band"] = (
f"{frequency} {frequency_unit}".strip()
if frequency_unit
else str(frequency)
)
if self.resource.channel is not None:
attrs["channel"] = self.resource.channel
if channel_width := self.resource.channel_width_rx:
attrs["channel_width"] = channel_width
return attrs