I’m using the official Apple TV integration in Home Assistant (e.g., Apple TV 4K Gen 3). Right now, Home Assistant displays both the firmware version and the MAC address under “Device Info,” but these values are not exposed as separate entities or attributes.
I would really like to display both the firmware version and the MAC address on my dashboard and/or use them in automations. However, these values are not provided as either entities or attributes.
Proposed Feature
Firmware version as a sensor (e.g. sensor.apple_tv_firmware_version)
MAC address as a sensor or attribute (e.g. sensor.apple_tv_mac_address)
That way, these details can be easily used on dashboards or automations.
Attempts So Far
I tried using Template Sensors, but the necessary attributes (firmware_version or mac_address) aren’t present in the media_player entity.
Other workarounds (like custom sensors) also rely on these values being exposed as attributes.
Benefits
Monitoring of firmware version and potential notifications or tracking for updates.
Possibly useful for network monitoring or identification of devices on the home network.
Thank you to the Home Assistant team for all their hard work. I hope these two data points can be exposed as separate entities in a future release.
You can already access these attributes, using device_attr() in a template. The only problem is I have’t found any documentation anywhere for which device attributes exist, short of looking in the source code of each integration. The attributes you are after are sw_version and connections.
I think connections gives you back all the MAC addresses of all the connection points (i.e. ethernet and wifi if you have one with both). I think identifiers gives you just the active one. It’s a bit of a pain to get items out of that array, as the array appears to just be a string, but this will work: