Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like
Feature request
I would like to propose adding MAC address discovery to the device registry entry for the Intex Spa.
What
When the integration sets up a config entry, it attempts to resolve the spa's IP address to a MAC address by reading the system ARP table (/proc/net/arp). If a valid MAC is found, it is stored in entry.data and registered as a CONNECTION_NETWORK_MAC connection in DeviceInfo.
This allows Home Assistant to:
- Uniquely identify the device by its MAC address (not just the integration UID)
- Improve device deduplication across restarts or IP changes
Why
Currently the device is only identified by the domain + UID. Adding a MAC address connection makes the device more robustly identifiable in the HA device registry.
Implementation
I have already implemented this in a dedicated branch:
https://github.com/Splint77/homeassistant-intex-spa/tree/feat/mac-address
Changes are minimal:
__init__.py: ARP lookup function + stores MAC in entry.data on first setup
entity.py: Adds CONNECTION_NETWORK_MAC to DeviceInfo if MAC is available
Happy to open a pull request if this is of interest!
Describe alternatives you've considered
n/a
Additional context
No response
Checklist
Is your feature request related to a problem? Please describe.
No response
Describe the solution you'd like
Feature request
I would like to propose adding MAC address discovery to the device registry entry for the Intex Spa.
What
When the integration sets up a config entry, it attempts to resolve the spa's IP address to a MAC address by reading the system ARP table (
/proc/net/arp). If a valid MAC is found, it is stored inentry.dataand registered as aCONNECTION_NETWORK_MACconnection inDeviceInfo.This allows Home Assistant to:
Why
Currently the device is only identified by the domain + UID. Adding a MAC address connection makes the device more robustly identifiable in the HA device registry.
Implementation
I have already implemented this in a dedicated branch:
https://github.com/Splint77/homeassistant-intex-spa/tree/feat/mac-address
Changes are minimal:
__init__.py: ARP lookup function + stores MAC inentry.dataon first setupentity.py: AddsCONNECTION_NETWORK_MACtoDeviceInfoif MAC is availableHappy to open a pull request if this is of interest!
Describe alternatives you've considered
n/a
Additional context
No response
Checklist