How to recover device_id in Alexa Devices?

The actions available in Alexa Devices ( Alexa Devices - Home Assistant ) require specifying the device_id of the device to control… but how can I recover this device_id?

According to documentation, it’s something like

device_id: 037d79c1af96c67ba57ebcae560fb18e

Is it the same value I can get in the URL, opening the detail of a single device in Alexa Devices (http://homeassistant.local:8123/config/integrations/integration/alexa_devices ) (i.e. http://homeassistant.local:8123/config/devices/device/0713e954c3136f7c9394c095d4420c30 )
In this case, is maybe 0713e954c3136f7c9394c095d4420c30 the device_id?
Any other way to get it?

Yes.

You could use the Template editor tool to print out the device name and ID for you:

{% for d in integration_entities('alexa_devices')| map('device_id') | unique | list %}
{{- device_name(d)}}: {{d}}
{% endfor %}
2 Likes

it doesn’t work for me ‘alexa_devices’.

{% for d in integration_entities('alexa_devices')| map('device_id') | unique | list %}

but it works (‘alexa_media’) .

{% for d in integration_entities('alexa_media')| map('device_id') | unique | list %}