How to get attribute values from Service Info?

The AdGuard Home integration has Version as an attribute, but it is not available as a sensor. I have it highlighted below. Any idea how I would access it?

It might be the device’s model attribute.

Get the value of the device’s device_id. One way to do this is to go to the web page that displays your second screenshot and copy the long alphanumeric string in its URL.

http://homeassistant.local:8123/config/devices/device/a4f02a140c21d2847218d37ab1a8e908
                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                                |
               COPY THIS PART -----------------------------------

Go to the Template Editor (Developer Tools → Templates) and enter the following template. Replace the example’s device_id value with the one you copied from your URL.

{{ device_attr('a4f02a140c21d2847218d37ab1a8e908', 'model') }}

NOTE

If it doesn’t report what you want then it may be in some other device attribute. Use the device_attr() function with other device attributes (such as model_id, serial_number, sw_version, etc) until you get the desired value,

1 Like

Thank you @123! This was the solution:

{{ device_attr('a4f02a140c21d2847218d37ab1a8e908', 'sw_version') }}

1 Like