Display device name in notifications

Hi.

I have a simple problem. I want to get notification for devices update. For example when Hue update is available for my Hue devices. So I create this simple automation. Works fine, but I don’t see device name in the notification email. Why?

alias: Notifikace HUE aktualizaci
description: ''
trigger:
  - type: update
    platform: device
    device_id: e0501e13e342d88e3f07803a41e00fd0
    entity_id: binary_sensor.ovladachue_postel_lukas_update_available
    domain: binary_sensor
  - type: update
    platform: device
    device_id: 3dc5989c84adce77deaa5bd17c2cb6ad
    entity_id: binary_sensor.svetlo_postel_evicka_update_available
    domain: binary_sensor
  - type: update
    platform: device
    device_id: 808f27d44f2ddb170926c91c1b8ce502
    entity_id: binary_sensor.svetlo_postel_lukas_update_available
    domain: binary_sensor
condition: []
action:
  - service: notify.notify
    data:
      title: Dostupna aktualizace Hue
      message: >-
        Je k dispozici aktualizace nektereho Philips Hue zarizeni. {{
        device_name }}
mode: single

Im not a guru but doesn’t the template need to include the trigger?
try

{{ trigger.entity_id.name }} 

Good point. When I add {{ trigger.entity_id }} it displays entity ID. But when I add {{ trigger.entity_id.name }} or {{ trigger.entity_id.friendly_name }} it does not work.

how about {{ trigger.to_state.name }}

That’s it! Thank you so much.

Please could you post the whole automation so that I can see where I add {{ trigger.to_state.name }} ?
I have the same problem and I’m not very smart…
Thanks